diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-07-01 21:46:44 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-07-02 05:01:26 +0200 |
commit | 27838ae0b2a11d505d669fe4cad6d0372cb650e1 (patch) | |
tree | 477b9853bea245d9cbdaa8700e02ff980abe79d5 /src/Pad.cpp | |
parent | CPed fixes (diff) | |
download | re3-27838ae0b2a11d505d669fe4cad6d0372cb650e1.tar re3-27838ae0b2a11d505d669fe4cad6d0372cb650e1.tar.gz re3-27838ae0b2a11d505d669fe4cad6d0372cb650e1.tar.bz2 re3-27838ae0b2a11d505d669fe4cad6d0372cb650e1.tar.lz re3-27838ae0b2a11d505d669fe4cad6d0372cb650e1.tar.xz re3-27838ae0b2a11d505d669fe4cad6d0372cb650e1.tar.zst re3-27838ae0b2a11d505d669fe4cad6d0372cb650e1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Pad.cpp | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/src/Pad.cpp b/src/Pad.cpp index 13b9b589..002e7180 100644 --- a/src/Pad.cpp +++ b/src/Pad.cpp @@ -14,6 +14,7 @@ #include "Game.h" #include "CutsceneMgr.h" #include "Font.h" +#include "Hud.h" #include "Text.h" #include "Timer.h" #include "World.h" @@ -24,7 +25,6 @@ #include "Weather.h" #include "win.h" - CPad *Pads = (CPad*)0x6F0360; // [2] CMousePointerStateHelper &MousePointerStateHelper = *(CMousePointerStateHelper*)0x95CC8C; @@ -70,6 +70,28 @@ WRAPPER void StrongGripCheat() { EAXJMP(0x491670); } WRAPPER void NastyLimbsCheat() { EAXJMP(0x4916A0); } ////////////////////////////////////////////////////////////////////////// +#ifdef KANGAROO_CHEAT +void KangarooCheat() +{ + wchar *string; + CPed *playerPed = FindPlayerPed(); + int m_fMass; + + if (playerPed->m_ped_flagI80) { + string = TheText.Get("CHEATOF"); + m_fMass = 70.0f; + } else { + string = TheText.Get("CHEAT1"); + m_fMass = 15.0f; + } + CHud::SetHelpMessage(string, 1); + playerPed->m_ped_flagI80 = !playerPed->m_ped_flagI80; + + playerPed->m_fMass = m_fMass; + playerPed->m_fAirResistance = 0.4f / m_fMass; +} +#endif + void CControllerState::Clear(void) { @@ -509,6 +531,12 @@ void CPad::AddToPCCheatString(char c) // "NASTYLIMBSCHEAT" if ( !_CHEATCMP("TAEHCSBMILYTSAN") ) NastyLimbsCheat(); + +#ifdef KANGAROO_CHEAT + // "KANGAROO" + if (!_CHEATCMP("OORAGNAK")) + KangarooCheat(); +#endif #undef _CHEATCMP } |