Fix entity struct

This commit is contained in:
fed 2022-01-08 10:39:08 +01:00
parent 72a02c2deb
commit ece5da170b

View File

@ -12,7 +12,7 @@ namespace game
{ {
char __pad0[0x8C]; char __pad0[0x8C];
vec3_t velocity; vec3_t velocity;
char __pad1[59504]; char __pad1[0xE870];
char flags; char flags;
}; };
@ -66,25 +66,27 @@ namespace game
EntityState s; EntityState s;
char __pad0[0x1B]; char __pad0[0x1B];
vec3_t origin; vec3_t origin;
char __pad1[152]; char __pad1[0x98];
float midPoint[3]; // entityShared.box float midPoint[0x3]; // entityShared.box
float halfSize[3]; // entityShared.box float halfSize[0x3]; // entityShared.box
char __pad2[64]; char __pad2[0x40];
gclient_s* client; gclient_s* client;
char __pad3[48]; char __pad3[0x30];
scr_string_t script_classname; scr_string_t script_classname;
char __pad4[0x14]; // 416 char __pad4[0x18];
char flags; char flags;
char __pad5[392]; char __pad5[0x188];
}; // size = 760 }; // size = 760
//auto a = sizeof(gentity_s);
static_assert(sizeof(gentity_s) == 760); static_assert(sizeof(gentity_s) == 760);
struct pathlink_s struct pathlink_s
{ {
char __pad0[4]; char __pad0[0x4];
unsigned __int16 nodeNum; unsigned __int16 nodeNum;
char __pad[6]; char __pad[0x6];
}; };
static_assert(sizeof(pathlink_s) == 12); static_assert(sizeof(pathlink_s) == 12);
@ -99,12 +101,12 @@ namespace game
unsigned int target; unsigned int target;
unsigned int animscript; unsigned int animscript;
int animscriptfunc; int animscriptfunc;
float vLocalOrigin[3]; float vLocalOrigin[0x3];
char __pad0[28]; char __pad0[0x1C];
unsigned __int16 totalLinkCount; unsigned __int16 totalLinkCount;
char __pad1[2]; char __pad1[0x2];
pathlink_s* Links; pathlink_s* Links;
char __pad2[104]; char __pad2[0x68];
}; // size = 192 }; // size = 192
static_assert(sizeof(pathnode_t) == 192); static_assert(sizeof(pathnode_t) == 192);