]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/vote.qh
Merge remote branch 'origin/master' into samual/updatecommands
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / vote.qh
1 float votecalled;
2 string votecalledvote;
3 string votecalledvote_display;
4 float votecalledmaster;
5 entity votecaller;
6 float votefinished;
7 .float vote_master;
8 .float vote_next;
9 .float vote_selection;
10 float vote_yescount;
11 float vote_nocount;
12 float vote_abstaincount;
13 float vote_needed_absolute;
14 float vote_needed_simple;
15
16 string VoteCommand_getname(entity caller);
17 void VoteCommand(float request, entity caller, float argc, string vote_command);
18 void VoteHelp(entity e);
19 void VoteThink();
20 void VoteReset();
21 void VoteAccept();
22 void VoteReject();
23 void VoteTimeout();
24 void VoteStop(entity stopper);
25 void VoteSpam(float notvoters, float mincount, string result);
26 void VoteCount();
27
28 // =========================
29 //  warmup and nagger stuff
30 // =========================
31
32 #define RESTART_COUNTDOWN 10
33 entity nagger;
34 .float ready;
35 float readycount;
36 float readyrestart_happened;
37 float restart_mapalreadyrestarted; // bool, indicates whether reset_map() was already executed
38 void ReadyCount();