diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-09-11 17:46:16 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-09-11 17:46:16 +0200 |
commit | e5faeea2e51da5e6ea9ef18b3358c82d69d1ca4b (patch) | |
tree | b6f2c470ea7846dc626c20bcbb3b821143fb72f1 /src/core | |
parent | Merge remote-tracking branch 'upstream/miami' into miami (diff) | |
download | re3-e5faeea2e51da5e6ea9ef18b3358c82d69d1ca4b.tar re3-e5faeea2e51da5e6ea9ef18b3358c82d69d1ca4b.tar.gz re3-e5faeea2e51da5e6ea9ef18b3358c82d69d1ca4b.tar.bz2 re3-e5faeea2e51da5e6ea9ef18b3358c82d69d1ca4b.tar.lz re3-e5faeea2e51da5e6ea9ef18b3358c82d69d1ca4b.tar.xz re3-e5faeea2e51da5e6ea9ef18b3358c82d69d1ca4b.tar.zst re3-e5faeea2e51da5e6ea9ef18b3358c82d69d1ca4b.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/Pad.cpp | 26 | ||||
-rw-r--r-- | src/core/config.h | 1 |
2 files changed, 27 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")) diff --git a/src/core/config.h b/src/core/config.h index 276ddefd..82044f75 100644 --- a/src/core/config.h +++ b/src/core/config.h @@ -252,6 +252,7 @@ enum Config { #define KANGAROO_CHEAT #define ALLCARSHELI_CHEAT #define ALT_DODO_CHEAT +#define WALLCLIMB_CHEAT #define REGISTER_START_BUTTON //#define BIND_VEHICLE_FIREWEAPON // Adds ability to rebind fire key for 'in vehicle' controls |