summaryrefslogtreecommitdiff
path: root/src/st_stuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/st_stuff.c')
-rw-r--r--src/st_stuff.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/st_stuff.c b/src/st_stuff.c
index d0031502..353a44ac 100644
--- a/src/st_stuff.c
+++ b/src/st_stuff.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: st_stuff.c 208 2005-10-17 21:02:57Z fraggle $
+// $Id: st_stuff.c 209 2005-10-17 21:09:01Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,10 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.9 2005/10/17 21:09:01 fraggle
+// Dehacked Misc support: Controls for the armor and armor class set when
+// using the ammo cheats.
+//
// Revision 1.8 2005/10/17 21:02:57 fraggle
// Dehacked Misc support: Max soulsphere, Soulsphere+Megasphere health bonus
// values, God mode health value
@@ -56,7 +60,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: st_stuff.c 208 2005-10-17 21:02:57Z fraggle $";
+rcsid[] = "$Id: st_stuff.c 209 2005-10-17 21:09:01Z fraggle $";
#include <stdio.h>
@@ -522,8 +526,8 @@ ST_Responder (event_t* ev)
// 'fa' cheat for killer fucking arsenal
else if (cht_CheckCheat(&cheat_ammonokey, ev->data1))
{
- plyr->armorpoints = 200;
- plyr->armortype = 2;
+ plyr->armorpoints = deh_idfa_armor;
+ plyr->armortype = deh_idfa_armor_class;
for (i=0;i<NUMWEAPONS;i++)
plyr->weaponowned[i] = true;
@@ -536,8 +540,8 @@ ST_Responder (event_t* ev)
// 'kfa' cheat for key full ammo
else if (cht_CheckCheat(&cheat_ammo, ev->data1))
{
- plyr->armorpoints = 200;
- plyr->armortype = 2;
+ plyr->armorpoints = deh_idkfa_armor;
+ plyr->armortype = deh_idkfa_armor_class;
for (i=0;i<NUMWEAPONS;i++)
plyr->weaponowned[i] = true;