Merge pull request #172 from diamante0018/some-fixes-structs
[Structs] Fix gentity_s fields type
This commit is contained in:
commit
783992ed3d
@ -5501,14 +5501,14 @@ namespace Game
|
|||||||
void /*Vehicle*/* vehicle;
|
void /*Vehicle*/* vehicle;
|
||||||
int physObjId;
|
int physObjId;
|
||||||
unsigned __int16 model;
|
unsigned __int16 model;
|
||||||
char physicsObject;
|
unsigned char physicsObject;
|
||||||
char takedamage;
|
unsigned char takedamage;
|
||||||
char active;
|
unsigned char active;
|
||||||
char handler;
|
unsigned char handler;
|
||||||
char team;
|
unsigned char team;
|
||||||
bool freeAfterEvent;
|
bool freeAfterEvent;
|
||||||
__int16 padding_short;
|
__int16 padding_short;
|
||||||
short classname;
|
unsigned __int16 classname;
|
||||||
unsigned __int16 script_classname;
|
unsigned __int16 script_classname;
|
||||||
unsigned __int16 script_linkName;
|
unsigned __int16 script_linkName;
|
||||||
unsigned __int16 target;
|
unsigned __int16 target;
|
||||||
@ -5536,7 +5536,10 @@ namespace Game
|
|||||||
char pad[100];
|
char pad[100];
|
||||||
} gentity_t;
|
} gentity_t;
|
||||||
|
|
||||||
|
static_assert(sizeof(gentity_s) == 0x274);
|
||||||
|
|
||||||
#pragma pack(push, 1)
|
#pragma pack(push, 1)
|
||||||
|
|
||||||
typedef struct client_s
|
typedef struct client_s
|
||||||
{
|
{
|
||||||
clientstate_t state; // 0
|
clientstate_t state; // 0
|
||||||
@ -5575,6 +5578,7 @@ namespace Game
|
|||||||
unsigned __int64 steamID; // 278272
|
unsigned __int64 steamID; // 278272
|
||||||
char __pad9[403592]; // 278280
|
char __pad9[403592]; // 278280
|
||||||
} client_t;
|
} client_t;
|
||||||
|
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
static_assert(sizeof(client_t) == 0xA6790);
|
static_assert(sizeof(client_t) == 0xA6790);
|
||||||
|
Loading…
Reference in New Issue
Block a user