summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-10-08 00:29:35 +0200
committerGitHub <noreply@github.com>2020-10-08 00:29:35 +0200
commitfa373c7fdb362ffe1749cbc3de5376a97beb2f87 (patch)
tree0ed0c91aed4a945acf66a61dc349f2140b49e616 /src/core
parentPad, BulletInfo, ProjectileInfo, fixes (diff)
parentMerge pull request #735 from theR4K/miami (diff)
downloadre3-fa373c7fdb362ffe1749cbc3de5376a97beb2f87.tar
re3-fa373c7fdb362ffe1749cbc3de5376a97beb2f87.tar.gz
re3-fa373c7fdb362ffe1749cbc3de5376a97beb2f87.tar.bz2
re3-fa373c7fdb362ffe1749cbc3de5376a97beb2f87.tar.lz
re3-fa373c7fdb362ffe1749cbc3de5376a97beb2f87.tar.xz
re3-fa373c7fdb362ffe1749cbc3de5376a97beb2f87.tar.zst
re3-fa373c7fdb362ffe1749cbc3de5376a97beb2f87.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/Pad.cpp29
-rw-r--r--src/core/config.h2
2 files changed, 8 insertions, 23 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp
index 785927ce..aa6e5cc8 100644
--- a/src/core/Pad.cpp
+++ b/src/core/Pad.cpp
@@ -504,7 +504,11 @@ void OnlyRenderWheelsCheat()
void ChittyChittyBangBangCheat()
{
+#ifdef BETTER_ALLCARSAREDODO_CHEAT
+ CHud::SetHelpMessage(TheText.Get(!CVehicle::bAllDodosCheat ? "CHEAT1" : "CHEATOF"), true);
+#else
CHud::SetHelpMessage(TheText.Get("CHEAT1"), true);
+#endif
CVehicle::bAllDodosCheat = !CVehicle::bAllDodosCheat;
CStats::CheatedCount += 1000;
CPad::bHasPlayerCheated = true;
@@ -629,22 +633,6 @@ void AllCarsHeliCheat(void)
}
#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
-
#ifdef WALLCLIMB_CHEAT
void WallClimbingCheat(void)
{
@@ -1546,12 +1534,6 @@ void CPad::AddToPCCheatString(char c)
AllCarsHeliCheat();
#endif
-#ifdef ALT_DODO_CHEAT
- // "IWANTTOMASTERDODO"
- if (!_CHEATCMP("ODODRETSAMOTTNAWI"))
- AltDodoCheat();
-#endif
-
#ifdef WALLCLIMB_CHEAT
// "SPIDERCAR"
if (!_CHEATCMP("RACREDIPS"))
@@ -3365,6 +3347,9 @@ void CPad::ResetCheats(void)
CVehicle::bCheat8 = false;
CVehicle::bCheat9 = false;
CVehicle::bCheat10 = false;
+#ifdef RESTORE_ALLCARSHELI_CHEAT
+ bAllCarCheat = false;
+#endif
gbBlackCars = false;
gbPinkCars = false;
diff --git a/src/core/config.h b/src/core/config.h
index 327230d0..475a63f8 100644
--- a/src/core/config.h
+++ b/src/core/config.h
@@ -251,7 +251,7 @@ enum Config {
#define DETECT_PAD_INPUT_SWITCH // Adds automatic switch of pad related stuff between controller and kb/m
#define KANGAROO_CHEAT
#define RESTORE_ALLCARSHELI_CHEAT
-#define ALT_DODO_CHEAT
+#define BETTER_ALLCARSAREDODO_CHEAT
#define WALLCLIMB_CHEAT
#define REGISTER_START_BUTTON
//#define BIND_VEHICLE_FIREWEAPON // Adds ability to rebind fire key for 'in vehicle' controls