Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
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.

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 #ifdef MENUQC
23 #endif
24}
int campaign_offset
string campaign_name
string campaign_mapname[CAMPAIGN_MAX_ENTRIES]
void MapInfo_LoadMap(string s, float reinit)
Definition mapinfo.qc:1523
void makeServerSingleplayer()
Definition util.qc:809
void localcmd(string command,...)
string ftos(float f)

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

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