Xonotic
campaign_setup.qc File Reference
#include "campaign_setup.qh"
+ Include dependency graph for campaign_setup.qc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void CampaignSetup (int n)
 

Function Documentation

◆ CampaignSetup()

void CampaignSetup ( int  n)

Definition at line 10 of file campaign_setup.qc.

References campaign_mapname, campaign_name, campaign_offset, ftos(), localcmd, and MapInfo_LoadMap().

Referenced by CampaignLevelWarp(), CampaignList_LoadMap(), and CampaignPostIntermission().

11 {
12  localcmd("set g_campaign 1\n");
13  localcmd("set _campaign_name \"");
15  localcmd("\"\n");
16  localcmd("set _campaign_index ");
18  localcmd("\n");
19  localcmd("disconnect\nmaxplayers 16\n");
21 }
string campaign_name
int campaign_offset
string campaign_mapname[CAMPAIGN_MAX_ENTRIES]
void MapInfo_LoadMap(string s, float reinit)
Definition: mapinfo.qc:1183
+ Here is the call graph for this function:
+ Here is the caller graph for this function: