feat(CPed): Added posbase & renamed pos to camera

This commit is contained in:
Yimura 2021-10-15 01:38:31 +02:00
parent 8d620fe28e
commit dae0a5977e
2 changed files with 13 additions and 3 deletions

9
CPed.h
View File

@ -2,6 +2,7 @@
#include "CPedModelInfo.h" #include "CPedModelInfo.h"
#include "CPedWeaponManager.h" #include "CPedWeaponManager.h"
#include "CPlayerInfo.h" #include "CPlayerInfo.h"
#include "pgBase.h"
class CPed class CPed
{ {
@ -13,8 +14,10 @@ public:
uint8_t m_invisible; //0x002C uint8_t m_invisible; //0x002C
char pad_002D[1]; //0x002D char pad_002D[1]; //0x002D
uint8_t m_freeze_momentum; //0x002E uint8_t m_freeze_momentum; //0x002E
char pad_002F[97]; //0x002F char pad_002F[1]; //0x002F
Vector3 m_position; //0x0090 class pgBase *m_posbase; //0x0030
char pad_0038[88]; //0x0038
rage::vector3 m_camera; //0x0090
char pad_009C[237]; //0x009C char pad_009C[237]; //0x009C
uint8_t m_godmode; //0x0189 uint8_t m_godmode; //0x0189
char pad_018A[2]; //0x018A char pad_018A[2]; //0x018A
@ -24,7 +27,7 @@ public:
char pad_0284[28]; //0x0284 char pad_0284[28]; //0x0284
float m_maxhealth; //0x02A0 float m_maxhealth; //0x02A0
char pad_02A4[124]; //0x02A4 char pad_02A4[124]; //0x02A4
Vector3 m_velocity; //0x0320 rage::vector3 m_velocity; //0x0320
char pad_032C[2564]; //0x032C char pad_032C[2564]; //0x032C
class CAutomobile *m_vehicle; //0x0D30 class CAutomobile *m_vehicle; //0x0D30
char pad_0D38[912]; //0x0D38 char pad_0D38[912]; //0x0D38

7
pgBase.h Normal file
View File

@ -0,0 +1,7 @@
class pgBase
{
public:
char pad_0000[80]; //0x0000
rage::vector3 m_pos; //0x0050
}; //Size: 0x005C
static_assert(sizeof(pgBase) == 0x5C);