update cped (#182)

This commit is contained in:
tyackman 2024-07-08 12:45:31 -05:00 committed by GitHub
parent 8602d4cf19
commit f2deb5e811

View File

@ -48,11 +48,11 @@ public:
void* m_seat_info; //0x1530
char pad_1538[220]; //0x1538
uint16_t m_cash; //0x1614
char pad_1616[842]; //0x1616
uint8_t fired_sticky_bombs; //0x1960 reverse from 1.66 2824 function E8 ? ? ? 48 8B F8 EB 5F add(1).rip(), function string: WM_MAX_STICKY
uint8_t fired_unk_0; //0x1961
uint8_t fired_flares; //0x1962
uint8_t fired_unk_1; //0x1963
char pad_1616[846]; //0x1616
uint8_t fired_sticky_bombs; //0x1964 reverse from 1.69 3258 function E8 ? ? ? ? 48 8B F8 EB ? 48 8B 47 add(1).rip(), function string: WM_MAX_STICKY
uint8_t fired_unk_0; //0x1965
uint8_t fired_flares; //0x1966
uint8_t fired_unk_1; //0x1967
float get_speed() { return sqrt(m_velocity.x * m_velocity.x + m_velocity.y * m_velocity.y + m_velocity.z * m_velocity.z); }
@ -70,6 +70,6 @@ public:
bool has_seatbelt() { return m_seatbelt & 0x3; }
void forced_aim(bool toggle) { m_forced_aim ^= (m_forced_aim ^ -(char)toggle) & 0x20; }
}; //Size: 0x1964
static_assert(sizeof(CPed) == 0x1964);
}; //Size: 0x1968
static_assert(sizeof(CPed) == 0x1968);
#pragma pack(pop)