From 86def1ea1d0fc71a5eafe14808e052d89c2ce910 Mon Sep 17 00:00:00 2001 From: Aure7138 <100095051+Aure7138@users.noreply.github.com> Date: Sun, 30 Oct 2022 03:19:58 +0800 Subject: [PATCH] add CPed seatbelt (#49) --- datanodes/player/CPlayerGameStateDataNode.hpp | 2 +- ped/CPed.hpp | 22 ++++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/datanodes/player/CPlayerGameStateDataNode.hpp b/datanodes/player/CPlayerGameStateDataNode.hpp index fefbfbb..25acdee 100644 --- a/datanodes/player/CPlayerGameStateDataNode.hpp +++ b/datanodes/player/CPlayerGameStateDataNode.hpp @@ -28,7 +28,7 @@ public: bool m_is_invincible; //0x00D5 bool unk_00D6; //0x00D6 bool unk_00D7; //0x00D7 - bool unk_00D8; //0x00D8 + bool m_seatbelt; //0x00D8 bool unk_00D9; //0x00D9 bool m_bullet_proof; //0x00DA bool m_fire_proof; //0x00DB diff --git a/ped/CPed.hpp b/ped/CPed.hpp index 7e49792..ed330a1 100644 --- a/ped/CPed.hpp +++ b/ped/CPed.hpp @@ -17,16 +17,18 @@ class CPed : public rage::CPhysical { public: char gap30C[20]; - rage::fvector3 m_velocity; //0x0320 - char pad_032C[2564]; //0x032C - class CVehicle *m_vehicle; //0x0D30 - char pad_0D38[912]; //0x0D38 - class CPlayerInfo *m_player_info; //0x10C8 - class CPedInventory* m_inventory; //0x10D0 - class CPedWeaponManager *m_weapon_manager; //0x10D8 - char pad_10E0[907]; //0x10E0 - uint8_t m_ped_task_flag; //0x146B - char pad_146C[192]; //0x146C + rage::fvector3 m_velocity; //0x0300 + char pad_032C[2564]; //0x030C + class CVehicle *m_vehicle; //0x0D10 + char pad_0D38[912]; //0x0D18 + 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[14]; //0x143D + uint8_t m_ped_task_flag; //0x144B + char pad_146C[192]; //0x144C float m_armor; //0x150C }; //Size: 0x1510 static_assert(sizeof(CPed) == 0x1510);