summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.cpp
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-05-27 23:15:37 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2020-05-27 23:15:37 +0200
commit895580c724d2d21932dbaec5308a6d15458c8142 (patch)
tree2ca4d93681198bf844ba3e817e165c7312eac437 /src/core/Pad.cpp
parentMerge pull request #2 from GTAmodding/miami (diff)
downloadre3-895580c724d2d21932dbaec5308a6d15458c8142.tar
re3-895580c724d2d21932dbaec5308a6d15458c8142.tar.gz
re3-895580c724d2d21932dbaec5308a6d15458c8142.tar.bz2
re3-895580c724d2d21932dbaec5308a6d15458c8142.tar.lz
re3-895580c724d2d21932dbaec5308a6d15458c8142.tar.xz
re3-895580c724d2d21932dbaec5308a6d15458c8142.tar.zst
re3-895580c724d2d21932dbaec5308a6d15458c8142.zip
Diffstat (limited to 'src/core/Pad.cpp')
-rw-r--r--src/core/Pad.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp
index 69f340dd..c52c7c36 100644
--- a/src/core/Pad.cpp
+++ b/src/core/Pad.cpp
@@ -35,6 +35,7 @@
#include "Streaming.h"
#include "PathFind.h"
#include "Wanted.h"
+#include "WaterLevel.h"
#include "General.h"
CPad Pads[MAX_PADS];
@@ -306,6 +307,21 @@ void PinkCarsCheat()
gbBlackCars = false;
gbPinkCars = true;
}
+
+void NoSeaBedCheat(void)
+{
+ CHud::SetHelpMessage(TheText.Get("CHEAT1"), true);
+ CWaterLevel::m_bRenderSeaBed = !CWaterLevel::m_bRenderSeaBed;
+}
+
+void RenderWaterLayersCheat(void)
+{
+ CHud::SetHelpMessage(TheText.Get("CHEAT1"), true);
+ if ( ++CWaterLevel::m_nRenderWaterLayers > 5 )
+ CWaterLevel::m_nRenderWaterLayers = 0;
+}
+
+
//////////////////////////////////////////////////////////////////////////
#ifdef KANGAROO_CHEAT
@@ -1051,6 +1067,16 @@ void CPad::AddToPCCheatString(char c)
if (!_CHEATCMP("ODODRETSAMOTTNAWI"))
AltDodoCheat();
#endif
+
+#if !defined(PC_WATER) && defined(WATER_CHEATS)
+ // SEABEDCHEAT
+ if (!_CHEATCMP("TAEHCDEBAESON"))
+ NoSeaBedCheat();
+
+ // WATERLAYERSCHEAT
+ if (!_CHEATCMP("TAEHCSREYALRETAW"))
+ RenderWaterLayersCheat();
+#endif
#undef _CHEATCMP
}