diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2022-11-07 18:42:28 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-16 21:39:38 +0300 |
| commit | 8352bfc1d8deedd4d6a0a5b0698fe1f8b9a06e88 (patch) | |
| tree | 69fd0825f69ff70fe0c8ae597cfe20a91af2d961 /packets/classes/types.go | |
| parent | starting stringtable (diff) | |
| download | sdp.go-8352bfc1d8deedd4d6a0a5b0698fe1f8b9a06e88.tar.gz sdp.go-8352bfc1d8deedd4d6a0a5b0698fe1f8b9a06e88.tar.bz2 sdp.go-8352bfc1d8deedd4d6a0a5b0698fe1f8b9a06e88.zip | |
stringtable done, can't see data properly
Diffstat (limited to 'packets/classes/types.go')
| -rw-r--r-- | packets/classes/types.go | 18 |
1 files changed, 15 insertions, 3 deletions
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 { | |||
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | type UserCmdInfo struct { | 13 | type UserCmdInfo struct { |
| 14 | CommandNumber int | 14 | CommandNumber int32 |
| 15 | TickCount int | 15 | TickCount int32 |
| 16 | ViewAnglesX float32 | 16 | ViewAnglesX float32 |
| 17 | ViewAnglesY float32 | 17 | ViewAnglesY float32 |
| 18 | ViewAnglesZ float32 | 18 | ViewAnglesZ float32 |
| 19 | ForwardMove float32 | 19 | ForwardMove float32 |
| 20 | SideMove float32 | 20 | SideMove float32 |
| 21 | UpMove float32 | 21 | UpMove float32 |
| 22 | Buttons int | 22 | Buttons int32 |
| 23 | Impulse byte | 23 | Impulse byte |
| 24 | WeaponSelect int | 24 | WeaponSelect int |
| 25 | WeaponSubtype int | 25 | WeaponSubtype int |
| 26 | MouseDx int16 | 26 | MouseDx int16 |
| 27 | MouseDy int16 | 27 | MouseDy int16 |
| 28 | } | 28 | } |
| 29 | |||
| 30 | type StringTable struct { | ||
| 31 | TableName string | ||
| 32 | NumOfEntries int16 | ||
| 33 | EntryName string | ||
| 34 | EntrySize int16 | ||
| 35 | EntryData []byte | ||
| 36 | NumOfClientEntries int16 | ||
| 37 | ClientEntryName string | ||
| 38 | ClientEntrySize int16 | ||
| 39 | ClientEntryData []byte | ||
| 40 | } | ||