Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
campaign_common.qh
Go to the documentation of this file.
1#pragma once
2
3#ifndef CAMPAIGN_MAX_ENTRIES
4#define CAMPAIGN_MAX_ENTRIES 64
5#endif
6
7// each i-th array element corresponds to the list entry campaign_offset+i
17#ifndef SVQC
18string campaign_shortdesc[CAMPAIGN_MAX_ENTRIES];
19string campaign_longdesc[CAMPAIGN_MAX_ENTRIES];
20#endif
21string campaign_title; // filled upon loading
22
23// load the campaign file, but use the given offset and limit the number of
24// entries being read. Returns the number of entries successfully read (this
25// number is also stored in campaign_entries).
26// NOTE: there MUST be a corresponding CampaignFile_Unload() to unzone the
27// strings.
28string campaign_name; // set that to the campaign you want to load before calling CampaignFile_Load
29float CampaignFile_Load(float offset, float entries);
31
32// Sets up the campaign for the n-th array item (meaning: campaign_offset+nth
33// level) using localcmd()
34void CampaignSetup(int n);
string campaign_mutators[CAMPAIGN_MAX_ENTRIES]
int campaign_offset
string campaign_title
string campaign_name
float campaign_bots[CAMPAIGN_MAX_ENTRIES]
float campaign_botskill[CAMPAIGN_MAX_ENTRIES]
void CampaignFile_Unload()
string campaign_gametype[CAMPAIGN_MAX_ENTRIES]
#define CAMPAIGN_MAX_ENTRIES
string campaign_fraglimit[CAMPAIGN_MAX_ENTRIES]
string campaign_mapname[CAMPAIGN_MAX_ENTRIES]
void CampaignSetup(int n)
int campaign_entries
float CampaignFile_Load(float offset, float entries)
string campaign_timelimit[CAMPAIGN_MAX_ENTRIES]