Maprotation.cfg

= maprotation.cfg Reference =

This file contains the map rotation of the server, a basic maprotation.cfg looks like this:

The server will play the maps in order from top to bottom, then start again at the top.

Keyword reference
In addition to map names, the following statements can be used in maprotation.cfg:


 * if
 * goto
 * return
 * resume
 * #label

if
The if statement allows conditional movement within a map rotation, it understands the following conditions:


 * numClients ( > | < | = ) ##: The number of clients connected to the server
 * lastWin ( aliens | humans ): The last winning team
 * random: the condition is randomly true

goto
The goto statement allows jumping to another rotation, or within the current rotation by referencing a #label or named map.

resume
The resume statement works like goto, however it continues the called rotation from the last point executed instead of starting at the first line.

return
The return statement returns to the rotation that called the current rotation by if, goto, or resume.

labels
A label is a line with a # as the first character. Such lines can be referenced by the if, goto, and resume statements to move rotation execution to this point.