]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/campaign.qh
Fix current custom gametype not being kept if gametype vote ends without votes
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / campaign.qh
1 #pragma once
2
3 bool autocvar__campaign_testrun;
4 int autocvar__campaign_index;
5 string autocvar__campaign_name;
6 bool autocvar_g_campaign;
7 float autocvar_g_campaign_forceteam;
8 int autocvar_g_campaign_skill;
9
10 // this must be included BEFORE campaign_common.h to make this a memory saving
11 #define CAMPAIGN_MAX_ENTRIES 2
12
13 int Campaign_GetLevelNum();
14
15 void CampaignPreInit();
16 void CampaignPostInit();
17 void CampaignPreIntermission();
18 void CampaignPostIntermission(); // must change map
19
20 void CampaignLevelWarp(float n);
21
22 /**
23  * campaign mode: bots shall spawn but wait for the player to spawn before they do anything
24  * in other game modes, this is ignored
25  */
26 bool campaign_bots_may_start;
27
28 bool campaign_forcewin;