summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-03 17:01:17 +0100
committerGitHub <noreply@github.com>2021-01-03 17:01:17 +0100
commit65796459343a01ddd17170104599ae340b90bb1d (patch)
treed16a5bc09e9cebd006085f30a27dfb3567927ee7 /src/peds
parentMerge pull request #921 from TheOfficialFloW/patch-2 (diff)
parentPad2 fix (diff)
downloadre3-65796459343a01ddd17170104599ae340b90bb1d.tar
re3-65796459343a01ddd17170104599ae340b90bb1d.tar.gz
re3-65796459343a01ddd17170104599ae340b90bb1d.tar.bz2
re3-65796459343a01ddd17170104599ae340b90bb1d.tar.lz
re3-65796459343a01ddd17170104599ae340b90bb1d.tar.xz
re3-65796459343a01ddd17170104599ae340b90bb1d.tar.zst
re3-65796459343a01ddd17170104599ae340b90bb1d.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/PlayerPed.cpp9
-rw-r--r--src/peds/PlayerPed.h3
2 files changed, 12 insertions, 0 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp
index a3fc608e..4103d3f7 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 09bd1377..1b7158b5 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();