add oxygen_time && water_collision (#52)

This commit is contained in:
Aure7138 2022-11-01 06:06:42 +08:00 committed by GitHub
parent 2692d9aa0e
commit 667fbbb72e
3 changed files with 16 additions and 3 deletions

View File

@ -10,7 +10,9 @@ namespace rage
public:
char pad_0000[32]; //0x0000
class phBoundComposite* m_bound_composite; //0x0020
}; //Size: 0x0028
static_assert(sizeof(phArchetypeDamp) == 0x28);
char pad_0028[44]; //0x0028
float m_water_collision; //0x0054
}; //Size: 0x0058
static_assert(sizeof(phArchetypeDamp) == 0x58);
}

View File

@ -8,6 +8,7 @@
#include "CPedInventory.hpp"
#include "../entities/fwEntity.hpp"
#include "../rage/vector.hpp"
#include "CPedOxygenInfo.hpp"
#include <cstdint>
@ -20,7 +21,8 @@ public:
rage::fvector3 m_velocity; //0x0300
char pad_032C[2564]; //0x030C
class CVehicle *m_vehicle; //0x0D10
char pad_0D38[912]; //0x0D18
char pad_0D38[904]; //0x0D18
class CPedOxygenInfo* m_oxygen_info; //0x10A0
class CPlayerInfo *m_player_info; //0x10A8
class CPedInventory* m_inventory; //0x10B0
class CPedWeaponManager *m_weapon_manager; //0x10B8

9
ped/CPedOxygenInfo.hpp Normal file
View File

@ -0,0 +1,9 @@
#pragma once
class CPedOxygenInfo
{
public:
char pad_0000[632]; //0x0000
float m_oxygen_time; //0x0278
}; //Size: 0x027C
static_assert(sizeof(CPedOxygenInfo) == 0x27C);