GTAV-Classes/netsync/nodes/heli/CHeliHealthDataNode.hpp

25 lines
786 B
C++
Raw Normal View History

2024-09-24 21:24:45 -04:00
#pragma once
#include <cstdint>
#include "netsync/CProjectBaseSyncDataNode.hpp"
#include "netsync/nodes/physical/CPhysicalHealthDataNode.hpp"
#pragma pack(push, 8)
class CHeliHealthDataNode : CPhysicalHealthDataNode // intentionally private since the physical health node fields aren't serialized
{
public:
char m_pad[0x10]; // 0xF0
uint32_t m_main_rotor_health;
uint32_t m_rear_rotor_health;
bool m_can_tail_boom_break_off;
bool m_is_tail_boom_broken;
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_main_rotor_damage_scale;
float m_rear_rotor_damage_scale;
float m_tail_boom_damage_scale;
};
static_assert(sizeof(CHeliHealthDataNode) == 0x118);
#pragma pack(pop)