From 92cc1cf3af5c5454eddd464e42c495d3739a1cce Mon Sep 17 00:00:00 2001 From: _AG Date: Sat, 15 Jun 2019 01:34:19 +0200 Subject: New updates for Hud.cpp and more. --- src/entities/PlayerPed.h | 39 +++++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) (limited to 'src/entities/PlayerPed.h') diff --git a/src/entities/PlayerPed.h b/src/entities/PlayerPed.h index 35128f46..6721f975 100644 --- a/src/entities/PlayerPed.h +++ b/src/entities/PlayerPed.h @@ -1,11 +1,42 @@ #pragma once #include "Ped.h" +#include "Wanted.h" -class CPlayerPed : public CPed -{ +class CPlayerPed : public CPed { public: - // 0x53C - uint8 stuff[180]; + CWanted *m_pWanted; + CCopPed *m_pArrestingCop; + Float m_fMoveSpeed; + Float m_fCurrentStamina; + Float m_fMaxStamina; + Float m_fStaminaProgress; + Bool m_bWeaponSlot; + Bool m_bSpeedTimerFlag; + Bool m_bShouldEvade; + int8 field_1367; + int32 m_nSpeedTimer; + int32 m_nShotDelay; + Float field_1376; + int8 field_1380; + int8 field_1381; + int8 field_1382; + int8 field_1383; + CEntity *m_pEvadingFrom; + int32 m_nTargettableObjects[4]; + Bool m_bAdrenalineActive; + Bool m_bHasLockOnTarget; + int8 field_1406; + int8 field_1407; + Bool m_bAdrenalineTime; + Bool m_bCanBeDamaged; + int8 field_1413; + int8 field_1414; + int8 field_1415; + CVector field_1416[6]; + int32 field_1488[6]; + Float field_1512; + Float m_fFPSMoveHeading; }; + static_assert(sizeof(CPlayerPed) == 0x5F0, "CPlayerPed: error"); -- cgit v1.2.3 From 0add48abf589330ae6fe11e304c111d9f52ce009 Mon Sep 17 00:00:00 2001 From: aap Date: Mon, 17 Jun 2019 00:16:38 +0200 Subject: got rid of upper case types --- src/entities/PlayerPed.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/entities/PlayerPed.h') diff --git a/src/entities/PlayerPed.h b/src/entities/PlayerPed.h index 6721f975..ee4f57b3 100644 --- a/src/entities/PlayerPed.h +++ b/src/entities/PlayerPed.h @@ -7,36 +7,36 @@ class CPlayerPed : public CPed { public: CWanted *m_pWanted; CCopPed *m_pArrestingCop; - Float m_fMoveSpeed; - Float m_fCurrentStamina; - Float m_fMaxStamina; - Float m_fStaminaProgress; - Bool m_bWeaponSlot; - Bool m_bSpeedTimerFlag; - Bool m_bShouldEvade; + float m_fMoveSpeed; + float m_fCurrentStamina; + float m_fMaxStamina; + float m_fStaminaProgress; + bool m_bWeaponSlot; + bool m_bSpeedTimerFlag; + bool m_bShouldEvade; int8 field_1367; int32 m_nSpeedTimer; int32 m_nShotDelay; - Float field_1376; + float field_1376; int8 field_1380; int8 field_1381; int8 field_1382; int8 field_1383; CEntity *m_pEvadingFrom; int32 m_nTargettableObjects[4]; - Bool m_bAdrenalineActive; - Bool m_bHasLockOnTarget; + bool m_bAdrenalineActive; + bool m_bHasLockOnTarget; int8 field_1406; int8 field_1407; - Bool m_bAdrenalineTime; - Bool m_bCanBeDamaged; + bool m_bAdrenalineTime; + bool m_bCanBeDamaged; int8 field_1413; int8 field_1414; int8 field_1415; CVector field_1416[6]; int32 field_1488[6]; - Float field_1512; - Float m_fFPSMoveHeading; + float field_1512; + float m_fFPSMoveHeading; }; static_assert(sizeof(CPlayerPed) == 0x5F0, "CPlayerPed: error"); -- cgit v1.2.3 From f299e9ebd51cc26d30a40ee5edff7ddf2968b2ec Mon Sep 17 00:00:00 2001 From: _AG Date: Mon, 17 Jun 2019 02:10:55 +0200 Subject: Update HUD stuff, bug and format fixes. Added environment variables to premake5.lua. Update README.md --- src/entities/PlayerPed.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/entities/PlayerPed.h') diff --git a/src/entities/PlayerPed.h b/src/entities/PlayerPed.h index ee4f57b3..a41135e9 100644 --- a/src/entities/PlayerPed.h +++ b/src/entities/PlayerPed.h @@ -3,7 +3,8 @@ #include "Ped.h" #include "Wanted.h" -class CPlayerPed : public CPed { +class CPlayerPed : public CPed +{ public: CWanted *m_pWanted; CCopPed *m_pArrestingCop; -- cgit v1.2.3