diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-01-02 10:38:54 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-01-02 12:32:25 +0100 |
commit | 42e4a068bb1cd363c3ed308e10c2747a6035e2de (patch) | |
tree | 7e9ce483e3a9eab7d23ec4c4e6476f22ecfa761e /src/peds | |
parent | Partial controller buttons support (diff) | |
download | re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.gz re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.bz2 re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.lz re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.xz re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.zst re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.zip |
Diffstat (limited to 'src/peds')
-rw-r--r-- | src/peds/PlayerPed.cpp | 9 | ||||
-rw-r--r-- | src/peds/PlayerPed.h | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp index 8220b370..dc602e13 100644 --- a/src/peds/PlayerPed.cpp +++ b/src/peds/PlayerPed.cpp @@ -22,10 +22,14 @@ #include "Script.h" #include "Replay.h" #include "PedPlacement.h" +#include "VarConsole.h" #define PAD_MOVE_TO_GAME_WORLD_MOVE 60.0f bool CPlayerPed::bDontAllowWeaponChange; +#ifndef MASTER +bool CPlayerPed::bDebugPlayerInfo; +#endif const uint32 CPlayerPed::nSaveStructSize = #ifdef COMPATIBLE_SAVES @@ -182,6 +186,11 @@ CPlayerPed::SetupPlayerPed(int32 index) CWorld::Add(player); player->m_wepAccuracy = 100; + +#ifndef MASTER + VarConsole.Add("Debug PlayerPed", &CPlayerPed::bDebugPlayerInfo, true); + VarConsole.Add("Tweak Vehicle Handling", &CVehicle::m_bDisplayHandlingInfo, true); +#endif } // --MIAMI: Done diff --git a/src/peds/PlayerPed.h b/src/peds/PlayerPed.h index 3c58f7f5..aec993a5 100644 --- a/src/peds/PlayerPed.h +++ b/src/peds/PlayerPed.h @@ -46,6 +46,9 @@ public: unsigned int m_nLastBusFareCollected; static bool bDontAllowWeaponChange; +#ifndef MASTER + static bool bDebugPlayerInfo; +#endif CPlayerPed(); ~CPlayerPed(); |