From 8352bfc1d8deedd4d6a0a5b0698fe1f8b9a06e88 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 7 Nov 2022 18:42:28 +0300 Subject: stringtable done, can't see data properly --- packets/classes/types.go | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'packets/classes/types.go') diff --git a/packets/classes/types.go b/packets/classes/types.go index 8e630b6..a1a281e 100644 --- a/packets/classes/types.go +++ b/packets/classes/types.go @@ -11,18 +11,30 @@ type CmdInfo struct { } type UserCmdInfo struct { - CommandNumber int - TickCount int + CommandNumber int32 + TickCount int32 ViewAnglesX float32 ViewAnglesY float32 ViewAnglesZ float32 ForwardMove float32 SideMove float32 UpMove float32 - Buttons int + Buttons int32 Impulse byte WeaponSelect int WeaponSubtype int MouseDx int16 MouseDy int16 } + +type StringTable struct { + TableName string + NumOfEntries int16 + EntryName string + EntrySize int16 + EntryData []byte + NumOfClientEntries int16 + ClientEntryName string + ClientEntrySize int16 + ClientEntryData []byte +} -- cgit v1.2.3