2021-12-07 02:36:09 +08:00
|
|
|
#pragma once
|
2022-06-01 13:49:36 +08:00
|
|
|
|
2022-08-28 16:40:56 +08:00
|
|
|
#include "../rage/rlGamerInfo.hpp"
|
2021-12-07 02:36:09 +08:00
|
|
|
|
2022-06-01 13:49:36 +08:00
|
|
|
#include <cstdint>
|
|
|
|
|
2022-03-02 09:12:36 +08:00
|
|
|
enum class eGameState : int32_t
|
2022-01-28 07:36:05 +08:00
|
|
|
{
|
2023-06-15 04:16:19 +08:00
|
|
|
Invalid = -1,
|
|
|
|
Playing,
|
|
|
|
Died,
|
|
|
|
Arrested,
|
|
|
|
FailedMission,
|
|
|
|
LeftGame,
|
|
|
|
Respawn,
|
|
|
|
InMPCutscene
|
2022-01-28 07:36:05 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#pragma pack(push, 4)
|
2021-02-09 05:44:51 +08:00
|
|
|
class CPlayerInfo
|
|
|
|
{
|
|
|
|
public:
|
2023-06-15 04:16:19 +08:00
|
|
|
char pad_0000[32]; //0x0000
|
|
|
|
class rage::rlGamerInfo m_net_player_data; //0x0020
|
|
|
|
char pad_0110[184]; //0x0110
|
|
|
|
float m_swim_speed; //0x01C8
|
|
|
|
char pad_01CC[20]; //0x01CC
|
|
|
|
uint32_t m_water_proof; //0x01E0
|
|
|
|
char pad_01E4[76]; //0x01E4
|
|
|
|
eGameState m_game_state; //0x0230
|
|
|
|
char pad_0234[12]; //0x0234
|
|
|
|
class CPed* m_ped; //0x0240
|
|
|
|
char pad_0248[40]; //0x0248
|
|
|
|
uint32_t m_frame_flags; //0x0270
|
|
|
|
char pad_0274[52]; //0x0274
|
|
|
|
uint32_t m_player_controls; //0x02A8
|
2024-07-05 00:39:38 +08:00
|
|
|
char pad_02AC[1264]; //0x02AC
|
|
|
|
float m_wanted_can_change; //0x079C
|
|
|
|
char pad_07A0[304]; //0x07A0
|
|
|
|
uint32_t m_npc_ignore; //0x08D0
|
|
|
|
char pad_08D4[12]; //0x08D4
|
|
|
|
bool m_is_wanted; //0x08E0
|
|
|
|
char pad_08E1[7]; //0x08E1
|
|
|
|
uint32_t m_wanted_level; //0x08E8
|
|
|
|
uint32_t m_wanted_level_display; //0x08EC
|
|
|
|
char pad_08F0[1120]; //0x08F0
|
|
|
|
float m_run_speed; //0x0D50
|
|
|
|
float m_stamina; //0x0D54
|
|
|
|
float m_stamina_regen; //0x0D58
|
|
|
|
char pad_0D5C[16]; //0x0D5C
|
|
|
|
float m_weapon_damage_mult; //0x0D6C
|
|
|
|
float m_weapon_defence_mult; //0x0D70
|
|
|
|
char pad_0D74[4]; //0x0D74
|
|
|
|
float m_melee_weapon_damage_mult; //0x0D78
|
|
|
|
float m_melee_damage_mult; //0x0D7C
|
|
|
|
float m_melee_defence_mult; //0x0D80
|
|
|
|
char pad_0D84[8]; //0x0D84
|
|
|
|
float m_melee_weapon_defence_mult; //0x0D8C
|
|
|
|
}; //Size: 0x0D90
|
|
|
|
static_assert(sizeof(CPlayerInfo) == 0xD90);
|
2021-12-07 02:36:09 +08:00
|
|
|
#pragma pack(pop)
|