Nuclide
Software Development Kit for id Technology
Mapcycle

Map cycle/rotation related APIs. More...

Detailed Description

Map cycle/rotation related APIs.

Map Rotation (Cycle) System

The MapCycle system decides the next map to play on.

By default, we read from <gamedir>/mapcycle.txt a list of sorted levels, like this:

tw_grime
cs_duty
mp/pines
dw_woosh

If the map we're currently on is present, we will choose the map sorted after in the map cycle as the next map.

The server can forcefully change the map using the nextmap console command. Players can vote for it instead.

If no valid mapcycle is present, it will keep restarting the map instead.

If the server starts with a map that is not present in the mapcycle, it will always pick the first entry in the list as the next level.

Functions

void Mapcycle_Load (string)
 Can be called by the server game to override the current mapcycle with that of a custom mapcycle file. More...
 
void Mapcycle_Init (void)
 Called by Nuclide in initents(). More...
 

Function Documentation

◆ Mapcycle_Init()

void Mapcycle_Init ( void  )

Called by Nuclide in initents().

◆ Mapcycle_Load()

void Mapcycle_Load ( string  filename)

Can be called by the server game to override the current mapcycle with that of a custom mapcycle file.