1
0
mirror of https://github.com/Mauler125/r5sdk.git synced 2025-02-09 19:15:03 +01:00

CBaseEntity::m_rgflCoordinateFrame is a matrix3x4_t

Change type and add static assert to prevent mistakes made by accidentally making the struct bigger (which will create many bugs).
This commit is contained in:
Amos 2023-08-18 00:44:52 +02:00
parent bacfff184c
commit 6e292359d9

@ -148,7 +148,7 @@ protected:
Vector3D m_vecAbsVelocity;
Vector3D m_vecAngVelocity;
char gap_3f4[12];
float m_rgflCoordinateFrame[12];
matrix3x4_t m_rgflCoordinateFrame;
float m_flFriction;
float m_flLocalTime;
float m_flVPhysicsUpdateLocalTime;
@ -255,6 +255,7 @@ protected:
char m_realmsTransmitMaskCached[16];
int m_realmsTransmitMaskCachedSerialNumber;
};
static_assert(sizeof(CBaseEntity) == 2824);
inline CMemory p_CBaseEntity__GetBaseEntity;
inline CBaseEntity*(*v_CBaseEntity__GetBaseEntity)(CBaseEntity* thisp);