summaryrefslogtreecommitdiff
path: root/src/strife/deh_cheat.c
diff options
context:
space:
mode:
authorJames Haley2011-02-25 15:12:13 +0000
committerJames Haley2011-02-25 15:12:13 +0000
commit1b7d9ea6f72b2fdaae747f0d453b8bca214fa255 (patch)
tree749ff85e3b0acc3ab80e64ff0857850874d278eb /src/strife/deh_cheat.c
parent08660bbbd6d78a8c9cb2323f2db890ba8aae0557 (diff)
downloadchocolate-doom-1b7d9ea6f72b2fdaae747f0d453b8bca214fa255.tar.gz
chocolate-doom-1b7d9ea6f72b2fdaae747f0d453b8bca214fa255.tar.bz2
chocolate-doom-1b7d9ea6f72b2fdaae747f0d453b8bca214fa255.zip
Found the last difference causing the IWAD to desync - players
experience a small amount of friction while falling (65520/65536). Also added all cheat codes. Subversion-branch: /branches/strife-branch Subversion-revision: 2278
Diffstat (limited to 'src/strife/deh_cheat.c')
-rw-r--r--src/strife/deh_cheat.c36
1 files changed, 19 insertions, 17 deletions
diff --git a/src/strife/deh_cheat.c b/src/strife/deh_cheat.c
index c693a2df..9d3d453d 100644
--- a/src/strife/deh_cheat.c
+++ b/src/strife/deh_cheat.c
@@ -43,23 +43,25 @@ typedef struct
static deh_cheat_t allcheats[] =
{
+ // haleyjd 20110224: filled in all cheats
{"Change music", &cheat_mus },
{"Level Warp", &cheat_clev },
- {"Stealth Boots", NULL }, // STRIFE-TODO
- {"Sigil piece", NULL }, // STRIFE-TODO
- {"FPS", NULL }, // STRIFE-TODO
- {"TeleportMapSpot", NULL }, // STRIFE-TODO
- {"Gold&StatTokens", NULL }, // STRIFE-TODO
+ {"Stealth Boots", &cheat_stealth },
+ {"Sigil piece", &cheat_lego },
+ {"FPS", &cheat_mypos },
+ {"TeleportMapSpot", &cheat_scoot },
+ {"Gold&StatTokens", &cheat_midas },
{"God mode", &cheat_god },
- {"Keys", NULL }, // STRIFE-TODO
- {"Weapons & Ammo", NULL }, // STRIFE-TODO
- {"Massacre", NULL }, // STRIFE-TODO
+ {"Keys", &cheat_keys },
+ {"Weapons & Ammo", &cheat_ammo },
+ {"Massacre", &cheat_nuke },
{"No Clipping", &cheat_noclip },
- {"Berserk", &cheat_powerup[1] },
- {"Invisibility", &cheat_powerup[2] },
- {"Enviro Suit", &cheat_powerup[3] },
- {"Health", NULL }, // STRIFE-TODO
- {"Backpack", NULL }, // STRIFE-TODO
+ {"Berserk", &cheat_powerup[0] },
+ {"Invisibility", &cheat_powerup[1] },
+ {"Enviro Suit", &cheat_powerup[2] },
+ {"Health", &cheat_powerup[3] },
+ {"Backpack", &cheat_powerup[4] },
+ // STRIFE-FIXME/TODO: Does SeHackEd not support PUMPUP{S,T,nil}, or "DOTS" ?
};
static deh_cheat_t *FindCheatByName(char *name)
@@ -122,10 +124,10 @@ static void DEH_CheatParseLine(deh_context_t *context, char *line, void *tag)
break;
}
- if (deh_apply_cheats)
- {
- cheat->seq->sequence[i] = unsvalue[i];
- }
+ if (deh_apply_cheats)
+ {
+ cheat->seq->sequence[i] = unsvalue[i];
+ }
++i;
// Absolute limit - don't exceed