From 2fae76875d9632f4c52b285239116ce7283b8eac Mon Sep 17 00:00:00 2001 From: TheApadayo Date: Tue, 30 May 2017 13:21:55 -0400 Subject: [PATCH] [Structs] Correct usercmd_s struct --- src/Game/Structs.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Game/Structs.hpp b/src/Game/Structs.hpp index fa8f20b9..00de300a 100644 --- a/src/Game/Structs.hpp +++ b/src/Game/Structs.hpp @@ -3945,19 +3945,22 @@ namespace Game }; #pragma pack(pop) - // Probably incomplete or wrong! #pragma pack(push, 4) struct usercmd_s { int serverTime; int buttons; - char weapon; - char offHandIndex; int angles[3]; + unsigned __int16 weapon; + unsigned __int16 primaryWeaponForAltMode; + unsigned __int16 offHandIndex; char forwardmove; char rightmove; float meleeChargeYaw; char meleeChargeDist; + char selectedLoc[2]; + char selectedLocAngle; + char remoteControlAngles[2]; }; #pragma pack(pop)