Skip to content

Commit

Permalink
feat(netsync/nodes): update some data nodes (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahcenezdh authored Apr 30, 2024
1 parent b13929c commit f2f73a8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class CDynamicEntityGameStateDataNode : CSyncDataNodeInfrequent
{
public:
uint32_t m_interior_index; // 0x00C0
bool unk_00C4; // 0x00C4
bool unk_00C5; // 0x00C5
bool m_loads_collisions; // 0x00C4
bool m_retained; // 0x00C5
uint32_t m_decor_count; // 0x00C8
CDecorator m_decors[10]; // 0x00CC
char pad[8]; // TODO!
Expand Down
8 changes: 4 additions & 4 deletions netsync/nodes/heli/CHeliHealthDataNode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ class CHeliHealthDataNode : CPhysicalHealthDataNode // intentionally private sin
uint32_t m_rear_rotor_health;
bool m_can_tail_boom_break_off;
bool m_is_tail_boom_broken;
bool m_unk;
bool m_has_custom_health;
bool m_disable_explode_from_body_damage;
uint32_t m_body_health;
uint32_t m_petrol_tank_health;
uint32_t m_engine_health;
float m_unk_deformation_level;
float m_unk2_deformation_level;
float m_unk3_deformation_level;
float m_main_rotor_damage_scale;
float m_rear_rotor_damage_scale;
float m_tail_boom_damage_scale;
};
static_assert(sizeof(CHeliHealthDataNode) == 0x118);
#pragma pack(pop)
4 changes: 2 additions & 2 deletions netsync/nodes/ped/CPedInventoryDataNode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class CPedInventoryDataNode
uint32_t m_ammos[65];
uint32_t m_ammo_quantities[65];
uint32_t m_num_ammos;
uint8_t unk_1680[105];
uint8_t unk_16E9[105];
uint8_t m_item_slot_tint[105];
uint8_t m_item_slot_num_components[105];
char pad_1680[1260];
bool m_infinite_ammos[65];
bool m_ammo_all_infinite;
Expand Down
4 changes: 2 additions & 2 deletions netsync/nodes/physical/CPhysicalGameStateDataNode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class CPhysicalGameStateDataNode : CSyncDataNodeInfrequent
bool m_flag3; // 0xC2
bool m_flag4; // 0xC3
char m_pad; // 0xC4
uint32_t m_val1; // 0xC8
int16_t m_unk204; // 0xCC
uint32_t m_alpha_type; // 0xC8
int16_t m_custom_fade_duration; // 0xCC
bool m_unk5; // 0xCE
}; // 0x00CC
static_assert(sizeof(CPhysicalGameStateDataNode) == 0xD0);
Expand Down
4 changes: 2 additions & 2 deletions netsync/nodes/physical/CPhysicalHealthDataNode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
#pragma pack(push, 8)
struct CPhysicalHealthDataNode : CSyncDataNodeInfrequent
{
bool unk_00C0; //0x00C0
bool m_has_max_health; //0x00C0
bool m_has_max_health_changed; //0x00C1
uint32_t m_max_health; //0x00C4
uint32_t m_current_health; //0x00C8
uint16_t m_weapon_damage_entity; //0x00CC
uint32_t m_weapon_damage_hash; //0x00D0
uint64_t unk_00D8; //0x00D8
uint64_t m_last_damaged_material_id; //0x00D8
};
static_assert(sizeof(CPhysicalHealthDataNode) == 0xE0);
#pragma pack(pop)

0 comments on commit f2f73a8

Please sign in to comment.