diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-25 20:25:14 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-25 20:25:14 +0200 |
commit | ae8deff1315f8535ebed4ae4a22d1dd7e808f3d0 (patch) | |
tree | 0b3bceea982c0b2d435322eda6922a34d83431ba /src/core | |
parent | Merge remote-tracking branch 'upstream/master' (diff) | |
download | re3-ae8deff1315f8535ebed4ae4a22d1dd7e808f3d0.tar re3-ae8deff1315f8535ebed4ae4a22d1dd7e808f3d0.tar.gz re3-ae8deff1315f8535ebed4ae4a22d1dd7e808f3d0.tar.bz2 re3-ae8deff1315f8535ebed4ae4a22d1dd7e808f3d0.tar.lz re3-ae8deff1315f8535ebed4ae4a22d1dd7e808f3d0.tar.xz re3-ae8deff1315f8535ebed4ae4a22d1dd7e808f3d0.tar.zst re3-ae8deff1315f8535ebed4ae4a22d1dd7e808f3d0.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/Pad.cpp | 44 | ||||
-rw-r--r-- | src/core/Pad.h | 4 | ||||
-rw-r--r-- | src/core/config.h | 2 |
3 files changed, 50 insertions, 0 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp index 8a3fc7cb..44b22d6d 100644 --- a/src/core/Pad.cpp +++ b/src/core/Pad.cpp @@ -291,6 +291,38 @@ void KangarooCheat() } #endif +#ifdef ALLCARSHELI_CHEAT +void AllCarsHeliCheat(void) +{ + wchar* string; + if (bAllCarCheat) { + string = TheText.Get("CHEATOF"); + bAllCarCheat = false; + } + else { + string = TheText.Get("CHEAT1"); + bAllCarCheat = true; + } + CHud::SetHelpMessage(string, true); +} +#endif + +#ifdef ALT_DODO_CHEAT +void AltDodoCheat(void) +{ + wchar* string; + if (CVehicle::bAltDodoCheat) { + string = TheText.Get("CHEATOF"); + CVehicle::bAltDodoCheat = false; + } + else { + string = TheText.Get("CHEAT1"); + CVehicle::bAltDodoCheat = true; + } + CHud::SetHelpMessage(string, true); +} +#endif + void CControllerState::Clear(void) { @@ -861,6 +893,18 @@ void CPad::AddToPCCheatString(char c) if (!_CHEATCMP("GUBEDDEP")) CPed::SwitchDebugDisplay(); #endif + +#ifdef ALLCARSHELI_CHEAT + // "CARSAREHELI" + if (!_CHEATCMP("ILEHERASRAC")) + AllCarsHeliCheat(); +#endif + +#ifdef ALT_DODO_CHEAT + // "IWANTTOMASTERDODO" + if (!_CHEATCMP("ODODRETSAMOTTNAWI")) + AltDodoCheat(); +#endif #undef _CHEATCMP } diff --git a/src/core/Pad.h b/src/core/Pad.h index b3b0849b..b8228444 100644 --- a/src/core/Pad.h +++ b/src/core/Pad.h @@ -450,3 +450,7 @@ public: VALIDATE_SIZE(CPad, 0xFC); extern CPad Pads[MAX_PADS]; + +#ifdef ALLCARSHELI_CHEAT +extern bool bAllCarCheat; +#endif diff --git a/src/core/config.h b/src/core/config.h index 84712af3..a6876ab0 100644 --- a/src/core/config.h +++ b/src/core/config.h @@ -202,6 +202,8 @@ enum Config { // Pad #define XINPUT #define KANGAROO_CHEAT +#define ALLCARSHELI_CHEAT +#define ALT_DODO_CHEAT #define REGISTER_START_BUTTON // Hud, frontend and radar |