OP_MAP

Name

OP_MAP -- Client sent a map of choice

Synopsis

OP_MAP [minor] [mapname] [numplayers]
DataTypeExample
minorint

  • MAP_SELECT

  • MAP_SELECTED

mapnamestring...
numplayersint...

Description

Client sent a map of choice.

Message Data

minor

Minor opcode distinguishing all OP_MAP messages. Can be MAP_SELECTED in this case, meaning a map has been selected for the game, or MAP_SELECT (sent by server), meaning a map should be selected.

mapname

The name of the chosen map (level). Only sent with MAP_SELECTED, not with MAP_SELECT.

numplayers

Number of players expected to play with.


Usage

Similar to OP_RULES, this message is sent by the game host (usually the first player) to the server, and then broadcasted at the start of the game. Contrary to it however, the message is only sent after having received an OP_RULES with MAP_SELECT first. This message omits the mapname parameter.