From cbe3f178b8c314a6b66c04f26906b06153e59c3a Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 3 Oct 2005 11:02:08 +0000 Subject: Add a weaponinfo_t mapping Subversion-branch: /trunk/chocolate-doom Subversion-revision: 156 --- src/deh_weapon.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3