Server message format

From ioquake3 wiki

Jump to: navigation, search

At its basic level, a server message consists of the ID of the last client command that it received along with a list of server operations. There are several different types of server operations. To identify which type of operation it is, each operation in the list starts with an 8-bit identifier code. The last operation in the list is identified with a special EOF code.

Contents

Structures

top-level format

Template:FormatTable


nop

Template:FormatTable


gamestate

Template:FormatTable


configstring

Template:FormatTable


baseline

Template:FormatTable


server-command

Template:FormatTable


download

Template:FormatTable


snapshot

Template:FormatTable


entity

Template:FormatTable


int-value

Template:FormatTable


float-value

Template:FormatTable If a field has floating point values, but its current value is a small integer (< ±4096) without a fractional part, then it is transmitted as a 13-bit unsigned integer instead of transmitting it as a full 32-bit float. To convert a small signed integer that is between -4096 and 4095 to a 13-bit unsigned integer, we simply add 4096 (1<<12) to the number before we send it and then subtract 4096 after it's received.


player-state

Template:FormatTable


values

Template:FormatTable


See also

Personal tools