From d5c8f15f7bea1108bfbb7b15e7b3277dd7adabad Mon Sep 17 00:00:00 2001 From: rackover Date: Fri, 2 Apr 2021 16:14:58 +0200 Subject: [PATCH] Enhance gentity_s struct --- src/Game/Structs.hpp | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/Game/Structs.hpp b/src/Game/Structs.hpp index 28e82bfe..faa7f84d 100644 --- a/src/Game/Structs.hpp +++ b/src/Game/Structs.hpp @@ -4477,15 +4477,30 @@ namespace Game typedef struct gentity_s { int number; - unsigned char pad[308]; // 4 + unsigned char pad[139]; // 4 + unsigned int brushModel; + unsigned char pad3[165]; float origin[3]; // 312 float angles[3]; // 324 char pad2[8]; gclient_t* client; // 344 - unsigned char pad3[28]; + void /*Turret*/ *turret; + //Vehicle *vehicle; + int physObjId; + unsigned __int16 model; + char physicsObject; + char takedamage; + char active; + char handler; + char team; + bool freeAfterEvent; + __int16 padding_short; short classname; - short pad4; - unsigned char pad5[248]; + unsigned __int16 script_classname; + unsigned __int16 script_linkName; + unsigned __int16 target; + unsigned __int16 targetname; + unsigned char pad5[242]; } gentity_t; #pragma pack(push, 1)