X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fvote.qh;h=fb34ba2f93a491c20e6262ba2bbc256a4ee788ea;hb=cf54cc6fde4e2f28f19bbc35f36279ec46cac3de;hp=d822c412590c88cbcc43e1d096c16b6c43a83ddb;hpb=b0f1e60534680b2d9ef24367691e815b020bb04d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/vote.qh b/qcsrc/server/vote.qh index d822c4125..fb34ba2f9 100644 --- a/qcsrc/server/vote.qh +++ b/qcsrc/server/vote.qh @@ -6,22 +6,16 @@ entity votecaller; float votefinished; .float vote_master; .float vote_next; -.float vote_vote; -float vote_yescount; -float vote_nocount; -float vote_abstaincount; -float vote_needed_absolute; -float vote_needed_simple; +.float vote_selection; +float vote_accept_count; +float vote_reject_count; +float vote_abstain_count; +float vote_needed_overall; -float VoteCheckNasty(string cmd); -entity GetKickVoteVictim(string vote, string cmd, entity caller); -float GameCommand_Vote(string s, entity e); +string VoteCommand_getname(entity caller); +void VoteCommand(float request, entity caller, float argc, string vote_command); void VoteHelp(entity e); -string VoteNetname(entity e); -string ValidateMap(string m, entity e); void VoteThink(); -string VoteParse(string s, float tokens); -float VoteAllowed(string vote, string cmd); void VoteReset(); void VoteAccept(); void VoteReject(); @@ -30,7 +24,14 @@ void VoteStop(entity stopper); void VoteSpam(float notvoters, float mincount, string result); void VoteCount(); +// ========================= +// warmup and nagger stuff +// ========================= + +#define RESTART_COUNTDOWN 10 entity nagger; +.float ready; float readycount; float readyrestart_happened; +float restart_mapalreadyrestarted; // bool, indicates whether reset_map() was already executed void ReadyCount(); \ No newline at end of file