diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-05-27 23:15:37 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-05-27 23:15:37 +0200 |
commit | 895580c724d2d21932dbaec5308a6d15458c8142 (patch) | |
tree | 2ca4d93681198bf844ba3e817e165c7312eac437 /src/core | |
parent | Merge pull request #2 from GTAmodding/miami (diff) | |
download | re3-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')
-rw-r--r-- | src/core/Pad.cpp | 26 | ||||
-rw-r--r-- | src/core/config.h | 3 |
2 files changed, 28 insertions, 1 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 } diff --git a/src/core/config.h b/src/core/config.h index 8a327000..c90d3cbf 100644 --- a/src/core/config.h +++ b/src/core/config.h @@ -205,7 +205,8 @@ enum Config { #define RELOADABLES // some debug menu options to reload TXD files #endif -//#define PC_WATER +#define PC_WATER +#define WATER_CHEATS // Particle #define PC_PARTICLE |