diff options
author | Roman Masanin <36927roma@gmail.com> | 2020-09-26 20:38:37 +0200 |
---|---|---|
committer | Roman Masanin <36927roma@gmail.com> | 2020-09-26 20:38:37 +0200 |
commit | bb2e601e13bfdfae697cd0188604bb4481769285 (patch) | |
tree | 253fdf6bf532ffd362ad5fdeaac7dfddb43f1afe /src/core/Pad.cpp | |
parent | return bridge, crane and fix structures in fluff.h (diff) | |
parent | Fix coronas reflections (diff) | |
download | re3-bb2e601e13bfdfae697cd0188604bb4481769285.tar re3-bb2e601e13bfdfae697cd0188604bb4481769285.tar.gz re3-bb2e601e13bfdfae697cd0188604bb4481769285.tar.bz2 re3-bb2e601e13bfdfae697cd0188604bb4481769285.tar.lz re3-bb2e601e13bfdfae697cd0188604bb4481769285.tar.xz re3-bb2e601e13bfdfae697cd0188604bb4481769285.tar.zst re3-bb2e601e13bfdfae697cd0188604bb4481769285.zip |
Diffstat (limited to 'src/core/Pad.cpp')
-rw-r--r-- | src/core/Pad.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp index 193ca1c5..03d209cd 100644 --- a/src/core/Pad.cpp +++ b/src/core/Pad.cpp @@ -89,6 +89,10 @@ bool CPad::IsAffectedByController = false; _TODO("gbFastTime"); extern bool gbFastTime; +#ifdef WALLCLIMB_CHEAT +extern bool gGravityCheat; +#endif + void WeaponCheat1() { CHud::SetHelpMessage(TheText.Get("CHEAT2"), true); @@ -554,6 +558,22 @@ void AltDodoCheat(void) } #endif +#ifdef WALLCLIMB_CHEAT +void WallClimbingCheat(void) +{ + wchar* string; + if (gGravityCheat) { + string = TheText.Get("CHEATOF"); + gGravityCheat = false; + } + else { + string = TheText.Get("CHEAT1"); + gGravityCheat = true; + } + CHud::SetHelpMessage(string, true); +} +#endif + void FlyingFishCheat(void) { CHud::SetHelpMessage(TheText.Get("CHEAT1"), true); @@ -1430,6 +1450,12 @@ void CPad::AddToPCCheatString(char c) AltDodoCheat(); #endif +#ifdef WALLCLIMB_CHEAT + // "SPIDERCAR" + if (!_CHEATCMP("RACREDIPS")) + WallClimbingCheat(); +#endif + #if !defined(PC_WATER) && defined(WATER_CHEATS) // SEABEDCHEAT if (!_CHEATCMP("TAEHCDEBAESON")) |