Replaced water levels with meaningful constants
[divverent/nexuiz.git] / data / qcsrc / common / campaign_setup.qc
1 void CampaignSetup(float n)
2 {
3         localcmd("exec mutator_reset.cfg\n");
4         localcmd("set g_campaign 1\n");
5         localcmd("set _campaign_name \"");
6                 localcmd(campaign_name);
7                 localcmd("\"\n");
8         localcmd("set _campaign_index ");
9                 localcmd(ftos(campaign_offset + n));
10                 localcmd("\n");
11         localcmd(campaign_mutators[n]);
12                 localcmd("\n");
13         MapInfo_SwitchGameType(MapInfo_Type_FromString(campaign_gametype[n]));
14         MapInfo_LoadMap(campaign_mapname[n]);
15 }