]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/mapvoting.qh
#include this
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mapvoting.qh
1 #ifndef MAPVOTING_H
2 #define MAPVOTING_H
3
4 #if defined(CSQC)
5 #elif defined(MENUQC)
6 #elif defined(SVQC)
7     #include "../common/util-pre.qh"
8     #include "sys-pre.qh"
9     #include "../dpdefs/progsdefs.qc"
10     #include "../dpdefs/dpextensions.qc"
11     #include "sys-post.qh"
12     #include "../warpzonelib/anglestransform.qh"
13     #include "../warpzonelib/mathlib.qh"
14     #include "../warpzonelib/common.qh"
15     #include "../warpzonelib/util_server.qh"
16     #include "../warpzonelib/server.qh"
17     #include "../common/constants.qh"
18     #include "../common/stats.qh"
19     #include "../common/teams.qh"
20     #include "../common/util.qh"
21     #include "../common/nades.qh"
22     #include "../common/buffs.qh"
23     #include "../common/test.qh"
24     #include "../common/counting.qh"
25     #include "../common/urllib.qh"
26     #include "../common/command/markup.qh"
27     #include "../common/command/rpn.qh"
28     #include "../common/command/generic.qh"
29     #include "../common/command/shared_defs.qh"
30     #include "../common/net_notice.qh"
31     #include "../common/animdecide.qh"
32     #include "../common/monsters/monsters.qh"
33     #include "../common/monsters/sv_monsters.qh"
34     #include "../common/monsters/spawn.qh"
35     #include "../common/weapons/config.qh"
36     #include "../common/weapons/weapons.qh"
37     #include "weapons/accuracy.qh"
38     #include "weapons/common.qh"
39     #include "weapons/csqcprojectile.qh"
40     #include "weapons/hitplot.qh"
41     #include "weapons/selection.qh"
42     #include "weapons/spawning.qh"
43     #include "weapons/throwing.qh"
44     #include "weapons/tracing.qh"
45     #include "weapons/weaponstats.qh"
46     #include "weapons/weaponsystem.qh"
47     #include "t_items.qh"
48     #include "autocvars.qh"
49     #include "constants.qh"
50     #include "defs.qh"
51     #include "../common/notifications.qh"
52     #include "../common/deathtypes.qh"
53     #include "mutators/mutators_include.qh"
54     #include "tturrets/include/turrets_early.qh"
55     #include "vehicles/vehicles_def.qh"
56     #include "campaign.qh"
57     #include "../common/campaign_common.qh"
58     #include "../common/mapinfo.qh"
59     #include "command/common.qh"
60     #include "command/banning.qh"
61     #include "command/radarmap.qh"
62     #include "command/vote.qh"
63     #include "command/getreplies.qh"
64     #include "command/cmd.qh"
65     #include "command/sv_cmd.qh"
66     #include "../common/csqcmodel_settings.qh"
67     #include "../csqcmodellib/common.qh"
68     #include "../csqcmodellib/sv_model.qh"
69     #include "anticheat.qh"
70     #include "cheats.qh"
71     #include "../common/playerstats.qh"
72     #include "portals.qh"
73     #include "g_hook.qh"
74     #include "scores.qh"
75     #include "spawnpoints.qh"
76 #endif
77
78 // definitions for functions used outside mapvoting.qc
79 void MapVote_Start();
80 void MapVote_Spawn();
81 void MapVote_Think();
82 float GameTypeVote_Start();
83 float GameTypeVote_Finished(float pos);
84 string GameTypeVote_MapInfo_FixName(string m);
85
86 // definitions
87 float gametypevote;
88 string getmapname_stored;
89 float mapvote_initialized;
90
91 float mapvote_nextthink;
92 float mapvote_keeptwotime;
93 float mapvote_timeout;
94 string mapvote_message;
95 const float MAPVOTE_SCREENSHOT_DIRS_COUNT = 4;
96 string mapvote_screenshot_dirs[MAPVOTE_SCREENSHOT_DIRS_COUNT];
97 float mapvote_screenshot_dirs_count;
98
99 float mapvote_count;
100 float mapvote_count_real;
101 string mapvote_maps[MAPVOTE_COUNT];
102 float mapvote_maps_screenshot_dir[MAPVOTE_COUNT];
103 string mapvote_maps_pakfile[MAPVOTE_COUNT];
104 float mapvote_maps_suggested[MAPVOTE_COUNT];
105 string mapvote_suggestions[MAPVOTE_COUNT];
106 float mapvote_suggestion_ptr;
107 float mapvote_voters;
108 float mapvote_selections[MAPVOTE_COUNT];
109 float mapvote_maps_availability[MAPVOTE_COUNT];
110 float mapvote_run;
111 float mapvote_detail;
112 float mapvote_abstain;
113 .float mapvote;
114
115 entity mapvote_ent;
116 #endif