Temp-Classes/ped/CPed.hpp
Aure7138 12919a46ff feat: CPlayerInfo, CVehicle & CPed (#58)
* Added get_position() helper to CNavigation
* Updated CPed class:
  * m_fatigued_health_threshold
  * m_injured_health_threshold
  * m_dying_health_threshold
  * m_hurt_health_threshold
* Updated CPlayerInfo class:
  * m_wanted_level_difficulty
  * m_wanted_level_multiplier
* Updated CVehicle class:
  * m_dirt_level
  * m_max_passengers
  * m_num_of_passengers
  * m_door_lock_status
2022-11-08 21:02:11 +00:00

54 lines
1.5 KiB
C++

#pragma once
#include "../vehicle/CVehicle.hpp"
#include "../player/CPlayerInfo.hpp"
#include "CPedModelInfo.hpp"
#include "CPedWeaponManager.hpp"
#include "CPedInventory.hpp"
#include "../entities/fwEntity.hpp"
#include "../rage/vector.hpp"
#include "CPedOxygenInfo.hpp"
#include "CPedBoneInfo.hpp"
#include <cstdint>
#pragma pack(push, 1)
class CPed : public rage::CPhysical
{
public:
char gap2EC[20];
rage::fvector3 m_velocity; //0x0300
char pad_030C[260]; //0x030C
class CPedBoneInfo m_bone_info; //0x0410
char pad_04A0[2160]; //0x04A0
class CVehicle *m_vehicle; //0x0D10
char pad_0D18[896]; //0x0D18
uint32_t m_ped_type; //0x1098
char pad_109C[4]; //0x109C
class CPedOxygenInfo* m_oxygen_info; //0x10A0
class CPlayerInfo *m_player_info; //0x10A8
class CPedInventory* m_inventory; //0x10B0
class CPedWeaponManager *m_weapon_manager; //0x10B8
char pad_10C0[892]; //0x10C0
uint8_t m_seatbelt; //0x143C
char pad_143D[13]; //0x143D
uint8_t m_can_switch_weapon; //0x144A
uint8_t m_ped_task_flag; //0x144B
char pad_144C[4]; //0x144C
uint8_t m_forced_aim; //0x1450 m_forced_aim ^= (m_forced_aim ^ -(char)toggle) & 0x20;
char pad_1451[187]; //0x1451
float m_armor; //0x150C
float unk_health_threshold; //0x1510
float m_fatigued_health_threshold; //0x1514
float m_injured_health_threshold; //0x1518
float m_dying_health_threshold; //0x151C
float m_hurt_health_threshold; //0x1520
char pad_1524[240]; //0x1524
uint16_t m_cash; //0x1614
}; //Size: 0x1616
static_assert(sizeof(CPed) == 0x1616);
#pragma pack(pop)