]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/command/vote.qh
More work with the declaration/.qh files and the common files -- now it compiles :D
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / vote.qh
1 #define VC_REQUEST_COMMAND 1
2 #define VC_REQUEST_USAGE 2
3
4 #define VC_ASGNMNT_BOTH 1
5 #define VC_ASGNMNT_CLIENTONLY 2
6 #define VC_ASGNMNT_SERVERONLY 3
7
8 #define VOTE_SELECT_ABSTAIN -2
9 #define VOTE_SELECT_REJECT -1
10 #define VOTE_SELECT_NULL 0
11 #define VOTE_SELECT_ACCEPT 1
12
13 string vote_parsed_command;
14 string vote_parsed_display;
15
16 float votecalled;
17 string votecalledvote;
18 string votecalledvote_display;
19 float votecalledmaster;
20 entity votecaller;
21 float votefinished;
22 .float vote_master;
23 .float vote_next;
24 .float vote_selection;
25 float vote_accept_count;
26 float vote_reject_count;
27 float vote_abstain_count;
28 float vote_needed_overall;
29
30 string VoteCommand_getname(entity caller);
31 void VoteCommand(float request, entity caller, float argc, string vote_command);
32 void VoteHelp(entity e);
33 void VoteThink();
34 void VoteReset();
35 void VoteAccept();
36 void VoteReject();
37 void VoteTimeout();
38 void VoteStop(entity stopper);
39 void VoteSpam(float notvoters, float mincount, string result);
40 void VoteCount();
41
42 // =========================
43 //  warmup and nagger stuff
44 // =========================
45
46 #define RESTART_COUNTDOWN 10
47 entity nagger;
48 .float ready;
49 float readycount;
50 float readyrestart_happened;
51 float restart_mapalreadyrestarted; // bool, indicates whether reset_map() was already executed
52 void ReadyCount();