Packet 28 wire layout
The first byte is the application packet ID. The rows after it appear in decode order. Sizes exclude ENet headers, the outer wrapper prefix, LZF chunk framing, and compression effects.
| # | Field | Encoding | Bytes | Purpose |
|---|---|---|---|---|
| 0 | packet_id | u8 | 1 | Always 28 (0x1C). |
| 1 | player_id | u8 | 1 | Compact player-slot identifier. |
| 2 | demo_player | boolean u8 | 1 | demo player value. |
| 3 | class_id | u8 | 1 | Selected character class identifier. |
| 4 | team | u8 | 1 | team value. |
| 5 | dead | boolean u8 | 1 | dead value. |
| 6 | local_language | u8 | 1 | local language value. |
| 7 | position | 3 × fixed16 LE | 6 | X, Y, and Z components at 1/64-unit precision. |
| 8 | orientation | 3 × fixed16 LE | 6 | X, Y, and Z components at 1/64-unit precision. |
| 9 | name | NUL-terminated UTF-8 string | N + 1 | Null-terminated UTF-8/ASCII-compatible string. |
| 10 | loadout_count | u8 | 1 | L: tool count. |
| 11 | loadout[] | L × u8 | L | Ordered tool IDs. |
| 12 | prefab_count | u8 | 1 | prefab count value. |
| 13 | prefabs[] | repeated NUL strings | Σ(N + 1) | Selected prefab names. |
Protocol convention
How to read this layout
LEmeans least-significant byte first.fixed16is two-byte sign-magnitude at 1/64 precision.orientation16uses the measured 1/8192 orientation mapping.- NUL strings consume their encoded byte length plus one
00terminator. - Counted arrays repeat immediately in the order shown.