mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-07 15:31:11 +00:00
- changed SW's cheat prefix from 'sw' to 'lw' (i.e. Lo Wang) so that the cheats do not start with two movement keys.
This commit is contained in:
parent
94beac937d
commit
e22d9b21e4
2 changed files with 24 additions and 27 deletions
|
@ -4169,10 +4169,7 @@ void renderPrepareMirror(int32_t dax, int32_t day, int32_t daz, fix16_t daang, f
|
||||||
|
|
||||||
inpreparemirror = 1;
|
inpreparemirror = 1;
|
||||||
|
|
||||||
#ifdef USE_OPENGL
|
|
||||||
if (videoGetRenderMode() == REND_POLYMOST)
|
|
||||||
polymost_prepareMirror(dax, day, daz, daang, dahoriz, dawall);
|
polymost_prepareMirror(dax, day, daz, daang, dahoriz, dawall);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ bool MapCheat(cheatseq_t* c)
|
||||||
if (!(pp=checkCheat(c))) return false;
|
if (!(pp=checkCheat(c))) return false;
|
||||||
mapcheat = !mapcheat;
|
mapcheat = !mapcheat;
|
||||||
// Need to do this differently. The code here was completely broken.
|
// Need to do this differently. The code here was completely broken.
|
||||||
PutStringInfo(pp, GStrings(mapcheat ? "TXTS_AMON" : "TXTS_AMOFF"));
|
PutStringInfo(pp, GStrings(mapcheat ? "TXT_AMON" : "TXT_AMOFF"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -355,7 +355,7 @@ bool KeyCheat(cheatseq_t* c)
|
||||||
PLAYERp p;
|
PLAYERp p;
|
||||||
short pnum;
|
short pnum;
|
||||||
const char *cp = (char*)c->Args;
|
const char *cp = (char*)c->Args;
|
||||||
const char *str = "TXTS_GIVEKEY";
|
const char *str = "TXT_GIVEKEY";
|
||||||
int keynum = 0;
|
int keynum = 0;
|
||||||
|
|
||||||
keynum = atol(cp);
|
keynum = atol(cp);
|
||||||
|
@ -368,12 +368,12 @@ bool KeyCheat(cheatseq_t* c)
|
||||||
if (p->HasKey[keynum-1] == FALSE)
|
if (p->HasKey[keynum-1] == FALSE)
|
||||||
{
|
{
|
||||||
p->HasKey[keynum-1] = TRUE; // cards: 0=red 1=blue 2=green 3=yellow | keys: 4=gold 5=silver 6=bronze 7=red
|
p->HasKey[keynum-1] = TRUE; // cards: 0=red 1=blue 2=green 3=yellow | keys: 4=gold 5=silver 6=bronze 7=red
|
||||||
str = "TXTS_KEYGIVEN";
|
str = "TXT_KEYGIVEN";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
p->HasKey[keynum-1] = FALSE;
|
p->HasKey[keynum-1] = FALSE;
|
||||||
str = "TXTS_KEYREMOVED";
|
str = "TXT_KEYREMOVED";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -388,7 +388,7 @@ bool KeysCheat(cheatseq_t* c)
|
||||||
// Get KEYS
|
// Get KEYS
|
||||||
PLAYERp p;
|
PLAYERp p;
|
||||||
short pnum;
|
short pnum;
|
||||||
const char* str = "TXTS_GIVEKEY";
|
const char* str = "TXT_GIVEKEY";
|
||||||
int keynum = 0;
|
int keynum = 0;
|
||||||
|
|
||||||
TRAVERSE_CONNECT(pnum)
|
TRAVERSE_CONNECT(pnum)
|
||||||
|
@ -406,25 +406,25 @@ bool EveryCheatToggle(cheatseq_t* c)
|
||||||
return WeaponCheat(c) && GodCheat(c) && ItemCheat(c);
|
return WeaponCheat(c) && GodCheat(c) && ItemCheat(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The prefix was changed from 'sw' to 'lw' so that it doesn't contain two keys of the WASD control scheme, which interferes with input control.
|
||||||
static cheatseq_t swcheats[] = {
|
static cheatseq_t swcheats[] = {
|
||||||
{"swgod", GodCheat, 0},
|
{"lwgod", GodCheat, 0},
|
||||||
{"swchan", GodCheat, 0},
|
{"lwchan", GodCheat, 0},
|
||||||
{"swgimme", ItemCheat, 0},
|
{"lwgimme", ItemCheat, 0},
|
||||||
{"swmedic", HealCheat, 0},
|
{"lwmedic", HealCheat, 0},
|
||||||
{"swkey#", KeyCheat, 0},
|
{"lwkey#", KeyCheat, 0},
|
||||||
{"swkeys", KeysCheat, 0},
|
{"lwkeys", KeysCheat, 0},
|
||||||
{"swammo", AmmoCheat, 0},
|
{"lwammo", AmmoCheat, 0},
|
||||||
{"swarmor", ArmorCheat, 0},
|
{"lwarmor", ArmorCheat, 0},
|
||||||
{"switems", ItemCheat, 0},
|
{"lwitems", ItemCheat, 0},
|
||||||
{"swguns", WeaponCheat, 0},
|
{"lwguns", WeaponCheat, 0},
|
||||||
{"swtrek##", WarpCheat, 0},
|
{"lwtrek##", WarpCheat, 0},
|
||||||
{"swgreed", EveryCheatToggle, 0},
|
{"lwgreed", EveryCheatToggle, 0},
|
||||||
{"swghost", ClipCheat, 0},
|
{"lwghost", ClipCheat, 0},
|
||||||
{"swstart", RestartCheat, 0},
|
{"lwstart", RestartCheat, 0},
|
||||||
{"swloc", LocCheat, 0},
|
{"lwloc", LocCheat, 0},
|
||||||
{"swmap", MapCheat, 0},
|
{"lwmap", MapCheat, 0},
|
||||||
{"swroom", RoomCheat, true}, // Room above room dbug
|
{"lwroom", RoomCheat, true}, // Room above room dbug
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue