NetSignonState
Part of Net/Svc message.
Name | Type | Size in bytes | Size in bits | Value |
---|---|---|---|---|
SignonState | int | 1 | 8 | - |
SpawnCount | int | 4 | 32 | - |
NumServerPlayersNE | int | 4 | 32 | - |
IdsLengthNE | int | 4 | 32 | - |
PlayersNetworkIdsNE | byte[] | IdsLength | IdsLength * 8 | - |
MapNameLengthNE | int | 4 | 32 | - |
MapNameNE | string | MapNameLength | MapNameLength*8 | - |
Pseudocode Example
let signon_state = read_le_u8();
let spawn_count = read_le_u32();
if demo_protocol_3_or_4() {
let num_server_players = read_le_u32();
let length = read_le_u32();
let player_network_ids = read_byte_slice(length);
let length = read_le_u32();
let map_name = read_ascii_string(length);
}