summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2005-10-03 11:02:08 +0000
committerSimon Howard2005-10-03 11:02:08 +0000
commitcbe3f178b8c314a6b66c04f26906b06153e59c3a (patch)
tree9ac2290be712986bacd9b350e64da78585235aea
parentaff12461949e9ffc29faed9f238c9a74412be2fa (diff)
downloadchocolate-doom-cbe3f178b8c314a6b66c04f26906b06153e59c3a.tar.gz
chocolate-doom-cbe3f178b8c314a6b66c04f26906b06153e59c3a.tar.bz2
chocolate-doom-cbe3f178b8c314a6b66c04f26906b06153e59c3a.zip
Add a weaponinfo_t mapping
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 156
-rw-r--r--src/deh_weapon.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/deh_weapon.c b/src/deh_weapon.c
index 682b865c..7cc3eb5c 100644
--- a/src/deh_weapon.c
+++ b/src/deh_weapon.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: deh_weapon.c 153 2005-10-02 23:49:01Z fraggle $
+// $Id: deh_weapon.c 156 2005-10-03 11:02:08Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -21,6 +21,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.2 2005/10/03 11:02:08 fraggle
+// Add a weaponinfo_t mapping
+//
// Revision 1.1 2005/10/02 23:49:01 fraggle
// The beginnings of dehacked support
//
@@ -33,7 +36,20 @@
#include "doomdef.h"
#include "doomtype.h"
+
+#include "d_items.h"
+
#include "deh_defs.h"
+#include "deh_mapping.h"
+
+DEH_BEGIN_MAPPING(weapon_mapping, weaponinfo_t)
+ DEH_MAPPING("Ammo type", ammo)
+ DEH_MAPPING("Deselect frame", upstate)
+ DEH_MAPPING("Select frame", downstate)
+ DEH_MAPPING("Bobbing frame", readystate)
+ DEH_MAPPING("Shooting frame", atkstate)
+ DEH_MAPPING("Firing frame", flashstate)
+DEH_END_MAPPING
static void *DEH_WeaponStart(deh_context_t *context, char *line)
{