]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/campaign_common.qh
#include this
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / campaign_common.qh
1 #ifndef CAMPAIGN_COMMON_H
2 #define CAMPAIGN_COMMON_H
3
4 #if defined(CSQC)
5 #elif defined(MENUQC)
6     #include "util-pre.qh"
7     #include "../menu/sys-pre.qh"
8     #include "../dpdefs/menudefs.qc"
9     #include "../dpdefs/keycodes.qc"
10     #include "../menu/sys-post.qh"
11     #include "../menu/config.qh"
12     #include "../warpzonelib/mathlib.qh"
13     #include "util.qh"
14     #include "test.qh"
15     #include "../menu/oo/base.qh"
16     #include "playerstats.qh"
17     #include "teams.qh"
18     #include "constants.qh"
19     #include "mapinfo.qh"
20 #elif defined(SVQC)
21     #include "util-pre.qh"
22     #include "../server/sys-pre.qh"
23     #include "../dpdefs/progsdefs.qc"
24     #include "../dpdefs/dpextensions.qc"
25     #include "../server/sys-post.qh"
26     #include "../warpzonelib/anglestransform.qh"
27     #include "../warpzonelib/mathlib.qh"
28     #include "../warpzonelib/common.qh"
29     #include "../warpzonelib/util_server.qh"
30     #include "../warpzonelib/server.qh"
31     #include "constants.qh"
32     #include "stats.qh"
33     #include "teams.qh"
34     #include "util.qh"
35     #include "nades.qh"
36     #include "buffs.qh"
37     #include "test.qh"
38     #include "counting.qh"
39     #include "urllib.qh"
40     #include "command/markup.qh"
41     #include "command/rpn.qh"
42     #include "command/generic.qh"
43     #include "command/shared_defs.qh"
44     #include "net_notice.qh"
45     #include "animdecide.qh"
46     #include "monsters/monsters.qh"
47     #include "monsters/sv_monsters.qh"
48     #include "monsters/spawn.qh"
49     #include "weapons/config.qh"
50     #include "weapons/weapons.qh"
51     #include "../server/weapons/accuracy.qh"
52     #include "../server/weapons/common.qh"
53     #include "../server/weapons/csqcprojectile.qh"
54     #include "../server/weapons/hitplot.qh"
55     #include "../server/weapons/selection.qh"
56     #include "../server/weapons/spawning.qh"
57     #include "../server/weapons/throwing.qh"
58     #include "../server/weapons/tracing.qh"
59     #include "../server/weapons/weaponstats.qh"
60     #include "../server/weapons/weaponsystem.qh"
61     #include "../server/t_items.qh"
62     #include "../server/autocvars.qh"
63     #include "../server/constants.qh"
64     #include "../server/defs.qh"
65     #include "notifications.qh"
66     #include "deathtypes.qh"
67     #include "../server/mutators/mutators_include.qh"
68     #include "../server/tturrets/include/turrets_early.qh"
69     #include "../server/vehicles/vehicles_def.qh"
70     #include "../server/campaign.qh"
71 #endif
72
73 #ifndef CAMPAIGN_MAX_ENTRIES
74 #define CAMPAIGN_MAX_ENTRIES 64
75 #endif
76
77 // each i-th array element corresponds to the list entry campaign_offset+i
78 float campaign_entries;
79 float campaign_offset;
80 string campaign_gametype[CAMPAIGN_MAX_ENTRIES];
81 string campaign_mapname[CAMPAIGN_MAX_ENTRIES];
82 float campaign_bots[CAMPAIGN_MAX_ENTRIES];
83 float campaign_botskill[CAMPAIGN_MAX_ENTRIES];
84 float campaign_fraglimit[CAMPAIGN_MAX_ENTRIES];
85 float campaign_timelimit[CAMPAIGN_MAX_ENTRIES];
86 string campaign_mutators[CAMPAIGN_MAX_ENTRIES];
87 string campaign_shortdesc[CAMPAIGN_MAX_ENTRIES];
88 string campaign_longdesc[CAMPAIGN_MAX_ENTRIES];
89 string campaign_title; // filled upon loading
90
91 // load the campaign file, but use the given offset and limit the number of
92 // entries being read. Returns the number of entries successfully read (this
93 // number is also stored in campaign_entries).
94 // NOTE: there MUST be a corresponding CampaignFile_Unload() to unzone the
95 // strings.
96 string campaign_name; // set that to the campaign you want to load before calling CampaignFile_Load
97 float CampaignFile_Load(float offset, float entries);
98 void CampaignFile_Unload();
99
100 // Sets up the campaign for the n-th array item (meaning: campaign_offset+nth
101 // level) using localcmd()
102 void CampaignSetup(float n);
103 #endif