1 #define VC_REQUEST_COMMAND 1
2 #define VC_REQUEST_USAGE 2
4 #define VC_ASGNMNT_BOTH 1
5 #define VC_ASGNMNT_CLIENTONLY 2
6 #define VC_ASGNMNT_SERVERONLY 3
8 #define VOTE_SELECT_ABSTAIN -2
9 #define VOTE_SELECT_REJECT -1
10 #define VOTE_SELECT_NULL 0
11 #define VOTE_SELECT_ACCEPT 1
13 string vote_parsed_command;
14 string vote_parsed_display;
17 string votecalledvote;
18 string votecalledvote_display;
19 float votecalledmaster;
24 .float vote_selection;
25 float vote_accept_count;
26 float vote_reject_count;
27 float vote_abstain_count;
28 float vote_needed_overall;
30 string VoteCommand_getname(entity caller);
31 void VoteCommand(float request, entity caller, float argc, string vote_command);
32 void VoteHelp(entity e);
38 void VoteStop(entity stopper);
39 void VoteSpam(float notvoters, float mincount, string result);
42 // =========================
43 // warmup and nagger stuff
44 // =========================
46 #define RESTART_COUNTDOWN 10
50 float readyrestart_happened;
51 float restart_mapalreadyrestarted; // bool, indicates whether reset_map() was already executed