summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-08-16 17:39:11 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-08-16 17:39:11 +0200
commitd303c33c2e03edc4c4980a06afe81004f1ae430f (patch)
tree929e6c782ffc7f34f050e42200b5dbdede661269 /src/core/Pad.cpp
parentsync with upstream (diff)
downloadre3-d303c33c2e03edc4c4980a06afe81004f1ae430f.tar
re3-d303c33c2e03edc4c4980a06afe81004f1ae430f.tar.gz
re3-d303c33c2e03edc4c4980a06afe81004f1ae430f.tar.bz2
re3-d303c33c2e03edc4c4980a06afe81004f1ae430f.tar.lz
re3-d303c33c2e03edc4c4980a06afe81004f1ae430f.tar.xz
re3-d303c33c2e03edc4c4980a06afe81004f1ae430f.tar.zst
re3-d303c33c2e03edc4c4980a06afe81004f1ae430f.zip
Diffstat (limited to 'src/core/Pad.cpp')
-rw-r--r--src/core/Pad.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp
index 6d6c30e4..2c5c4c02 100644
--- a/src/core/Pad.cpp
+++ b/src/core/Pad.cpp
@@ -42,6 +42,7 @@
#include "Gangs.h"
#include "platform.h"
#include "Stats.h"
+#include "CarCtrl.h"
#ifdef GTA_PS2
#include "eetypes.h"
@@ -437,6 +438,12 @@ void PinkCarsCheat()
gbPinkCars = true;
}
+void MadCarsCheat()
+{
+ CHud::SetHelpMessage(TheText.Get("CHEAT1"), true);
+ CCarCtrl::bMadDriversCheat = true;
+}
+
void NoSeaBedCheat(void)
{
CHud::SetHelpMessage(TheText.Get("CHEAT1"), true);
@@ -1223,6 +1230,7 @@ void CPad::AddToPCCheatString(char c)
// "MIAMITRAFFIC"
else if (!Cheat_strncmp(KeyBoardCheatString, "FNMGNmWPNLVU")) {
KeyBoardCheatString[0] = ' ';
+ MadCarsCheat();
}
// "AHAIRDRESSERSCAR"
else if (!Cheat_strncmp(KeyBoardCheatString, "UFJT_`VZF]QZPaUG")) {
@@ -3087,7 +3095,7 @@ void CPad::ResetCheats(void)
CVehicle::bCheat8 = false;
gbBlackCars = false;
gbPinkCars = false;
-
+ CCarCtrl::bMadDriversCheat = false;
gbFastTime = false;
CTimer::SetTimeScale(1.0f);
}