feat(CPlayerInfo): Fixed offsets and added some properties

This commit is contained in:
Yimura 2021-07-26 12:04:30 +02:00
parent ef48482c55
commit 1538656a43

View File

@ -1,45 +1,53 @@
// #include "CPed.h" // not included to prevent circular inclusion
class CPed; // make the compiler happy
class CPlayerInfo
{
public:
char pad_0000[52]; //0x0000
uint32_t m_internal_ip; //0x0034
uint16_t m_internal_port; //0x0038
char pad_003A[2]; //0x003A
uint32_t m_relay_ip; //0x003C
uint16_t m_relay_port; //0x0040
char pad_0042[2]; //0x0042
uint32_t m_external_ip; //0x0044
uint16_t m_external_port; //0x0048
char pad_004A[38]; //0x004A
uint64_t m_rockstar_id; //0x0070
char pad_0078[12]; //0x0078
char m_name[20]; //0x0084
char pad_0098[180]; //0x0098
float m_swim_speed; //0x014C
float m_run_speed; //0x0150
char pad_0154[81]; //0x0154
bool m_is_rockstar_dev; //0x01A5
char pad_01A6[1]; //0x01A6
bool m_is_cheater; //0x01A7
char pad_01A8[11]; //0x01A8
bool m_is_online; //0x01B3
char pad_01B4[20]; //0x01B4
class CPed *m_ped; //0x01C8
char pad_01D0[40]; //0x01D0
uint32_t m_frame_flags; //0x01F8
char pad_01FC[28]; //0x01FC
uint32_t m_player_controls; //0x0218
char pad_021C[1604]; //0x021C
bool m_is_wanted; //0x0860
char pad_0861[3]; //0x0861
int8_t m_wanted_level_display; //0x0864
char pad_0865[3]; //0x0865
int8_t m_wanted_level; //0x0868
char pad_0869[1131]; //0x0869
float m_stamina; //0x0CD4
float m_max_stamina; //0x0CD8
}; //Size: 0x0CDC
static_assert(sizeof(CPlayerInfo) == 0xCDC);
char pad_0000[84]; //0x0000
uint32_t m_internal_ip; //0x0054
uint16_t m_internal_port; //0x0058
char pad_005A[2]; //0x005A
uint32_t m_relay_ip; //0x005C
uint16_t m_relay_port; //0x0060
char pad_0062[2]; //0x0062
uint32_t m_external_ip; //0x0064
uint16_t m_external_port; //0x0068
char pad_006A[38]; //0x006A
uint64_t m_rockstar_id; //0x0090
char pad_0098[12]; //0x0098
char m_name[20]; //0x00A4
char pad_00B8[184]; //0x00B8
float m_swim_speed; //0x0170
char pad_0174[20]; //0x0174
uint32_t m_water_proof; //0x0188
char pad_018C[57]; //0x018C
bool m_is_rockstar_dev; //0x01C5
char pad_01C6[1]; //0x01C6
bool m_is_cheater; //0x01C7
char pad_01C8[11]; //0x01C8
bool m_is_online; //0x01D3
char pad_01D4[20]; //0x01D4
class CPed *m_ped; //0x01E8
char pad_01F0[41]; //0x01F0
uint32_t m_frame_flags; //0x0219
char pad_021D[28]; //0x021D
uint32_t m_player_controls; //0x0239
char pad_023D[1279]; //0x023D
float m_wanted_can_change; //0x073C
char pad_0740[304]; //0x0740
uint32_t m_npc_ignore; //0x0870
char pad_0874[20]; //0x0874
uint32_t m_wanted_level; //0x0888
char pad_088C[1124]; //0x088C
float m_run_speed; //0x0CF0
float m_stamina; //0x0CF4
float m_stamina_max; //0x0CF8
char pad_0CFC[16]; //0x0CFC
float m_weapon_damage_mult; //0x0D0C
float m_weapon_defence_mult; //0x0D10
char pad_0D14[4]; //0x0D14
float m_melee_weapon_damage_mult; //0x0D18
float m_melee_damage_mult; //0x0D1C
float m_melee_defence_mult; //0x0D20
char pad_0D24[8]; //0x0D24
float m_melee_weapon_defence_mult; //0x0D2C
}; //Size: 0x0D30
static_assert(sizeof(CPlayerInfo) == 0xD30);