Limit how often the Grabber's beam effect is sent (lightning bolt from the weapon...
[voretournament/voretournament.git] / data / qcsrc / common / campaign_common.qh
1 #ifndef CAMPAIGN_MAX_ENTRIES\r
2 #define CAMPAIGN_MAX_ENTRIES 64\r
3 #endif\r
4 \r
5 // each i-th array element corresponds to the list entry campaign_offset+i\r
6 float campaign_entries;\r
7 float campaign_offset;\r
8 string campaign_gametype[CAMPAIGN_MAX_ENTRIES];\r
9 string campaign_mapname[CAMPAIGN_MAX_ENTRIES];\r
10 float campaign_bots[CAMPAIGN_MAX_ENTRIES];\r
11 float campaign_botskill[CAMPAIGN_MAX_ENTRIES];\r
12 float campaign_fraglimit[CAMPAIGN_MAX_ENTRIES];\r
13 string campaign_mutators[CAMPAIGN_MAX_ENTRIES];\r
14 string campaign_shortdesc[CAMPAIGN_MAX_ENTRIES];\r
15 string campaign_longdesc[CAMPAIGN_MAX_ENTRIES];\r
16 string campaign_title; // filled upon loading\r
17 \r
18 // load the campaign file, but use the given offset and limit the number of\r
19 // entries being read. Returns the number of entries successfully read (this\r
20 // number is also stored in campaign_entries).\r
21 // NOTE: there MUST be a corresponding CampaignFile_Unload() to unzone the\r
22 // strings.\r
23 string campaign_name; // set that to the campaign you want to load before calling CampaignFile_Load\r
24 float CampaignFile_Load(float offset, float entries);\r
25 void CampaignFile_Unload();\r
26 \r
27 // Sets up the campaign for the n-th array item (meaning: campaign_offset+nth\r
28 // level) using localcmd()\r
29 void CampaignSetup(float n);\r