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