Xonotic
|
Go to the source code of this file.
Functions | |
void | Nagger_Init () |
void | ReadyCount () |
void | ReadyRestart_force (bool is_fake_round_start) |
void | reset_map (float dorespawn, bool is_fake_round_start) |
STATIC_INIT (g_saved_team) | |
void (entity this) reset | |
void | VoteCommand (int request, entity caller, int argc, string vote_command) |
void | VoteCount (float first_count) |
void | VoteReset () |
void | VoteThink () |
void Nagger_Init | ( | ) |
Definition at line 97 of file vote.qc.
References nagger, Nagger_SendEntity(), and new_pure.
Referenced by spawnfunc().
void ReadyCount | ( | ) |
Definition at line 498 of file vote.qc.
References bound(), cvar(), floor(), FOREACH_CLIENT, INGAME_JOINED, IS_PLAYER, IS_REAL_CLIENT, Nagger_ReadyCounted(), readycount, and ReadyRestart().
Referenced by ClientCommand_ready(), ClientDisconnect(), and PutObserverInServer().
Definition at line 426 of file vote.qc.
References autocvar_sv_eventlog, autocvar_sv_timeout, autocvar_sv_timeout_number, autocvar_teamplay_lockonrestart, autocvar_timelimit_overtime, bprint(), checkrules_overtimesadded, checkrules_suddendeathend, checkrules_suddendeathwarning, CS(), cvar_set(), entity(), FOREACH_CLIENT, ftos(), g_race_qualifying, GameLogEcho(), IS_PLAYER, IS_REAL_CLIENT, localcmd, lockteams, Nagger_ReadyCounted(), new_pure, readycount, ReadyRestart_think(), reset_map(), RESTART_COUNTDOWN, setthink, sv_ready_restart_after_countdown, teamplay, time, VoteReset(), and warmup_stage.
Referenced by assault_new_round(), and ReadyRestart().
STATIC_INIT | ( | g_saved_team | ) |
void | ( | entity | this | ) |
Definition at line 1264 of file vote.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, GetCommandPrefix(), print_to(), strcat(), VoteCommand_macro_command(), and VoteCommand_macro_help().
Referenced by COMMON_COMMAND().
Definition at line 207 of file vote.qc.
References autocvar_sv_vote_majority_factor, autocvar_sv_vote_majority_factor_of_voted, autocvar_sv_vote_master_playerlimit, bound(), floor(), FOREACH_CLIENT, IS_CLIENT, IS_PLAYER, IS_REAL_CLIENT, min(), Nagger_VoteCountChanged(), print_to(), spectators_allowed, time, vote_abstain_count, vote_accept_count, vote_called, vote_caller, vote_endtime, VOTE_MASTER, vote_needed_overall, vote_reject_count, VOTE_SELECT_ABSTAIN, VOTE_SELECT_ACCEPT, VoteAccept(), VoteReject(), VoteReset(), VoteSpam(), and VoteTimeout().
Referenced by ClientDisconnect(), PutObserverInServer(), VoteCommand_abstain(), VoteCommand_call(), VoteCommand_master(), VoteCommand_no(), VoteCommand_yes(), and VoteThink().
void VoteReset | ( | ) |
Definition at line 128 of file vote.qc.
References FOREACH_CLIENT, Nagger_VoteChanged(), NULL, strfree, string_null, vote_called, vote_called_command, vote_called_display, vote_caller, vote_caller_name, vote_endtime, VOTE_NULL, vote_parsed_command, and vote_parsed_display.
Referenced by InitGameplayMode(), NextLevel(), ReadyRestart_force(), VoteAccept(), VoteCount(), VoteReject(), VoteStop(), and VoteTimeout().
void VoteThink | ( | ) |
Definition at line 324 of file vote.qc.
References time, vote_endtime, and VoteCount().
Referenced by CheckRules_World().
bool autocvar_sv_vote_call |
Definition at line 3 of file vote.qh.
Referenced by VoteCommand_call().
bool autocvar_sv_vote_change |
Definition at line 4 of file vote.qh.
Referenced by VoteCommand_abstain(), VoteCommand_no(), and VoteCommand_yes().
string autocvar_sv_vote_commands |
Definition at line 5 of file vote.qh.
Referenced by print_available_commands_to(), VoteCommand_call(), and VoteCommand_master().
bool autocvar_sv_vote_gamestart |
Definition at line 22 of file vote.qh.
Referenced by VoteCommand_call().
int autocvar_sv_vote_limit |
Definition at line 6 of file vote.qh.
Referenced by VoteCommand_parse().
float autocvar_sv_vote_majority_factor |
Definition at line 7 of file vote.qh.
Referenced by VoteCount().
float autocvar_sv_vote_majority_factor_of_voted |
Definition at line 8 of file vote.qh.
Referenced by VoteCount().
bool autocvar_sv_vote_master |
Definition at line 9 of file vote.qh.
Referenced by VoteCommand_master().
bool autocvar_sv_vote_master_callable |
Definition at line 10 of file vote.qh.
Referenced by VoteCommand_master().
string autocvar_sv_vote_master_commands |
Definition at line 11 of file vote.qh.
Referenced by VoteCommand_master().
string autocvar_sv_vote_master_password |
Definition at line 12 of file vote.qh.
Referenced by VoteCommand_master().
int autocvar_sv_vote_master_playerlimit |
Definition at line 13 of file vote.qh.
Referenced by VoteCount().
bool autocvar_sv_vote_no_stops_vote |
Definition at line 14 of file vote.qh.
Referenced by VoteCommand_no().
bool autocvar_sv_vote_override_mostrecent |
Definition at line 17 of file vote.qh.
Referenced by ValidateMap().
bool autocvar_sv_vote_singlecount |
Definition at line 18 of file vote.qh.
Referenced by VoteCommand_abstain(), VoteCommand_no(), and VoteCommand_yes().
float autocvar_sv_vote_stop |
Definition at line 19 of file vote.qh.
Referenced by VoteStop().
float autocvar_sv_vote_timeout |
Definition at line 20 of file vote.qh.
Referenced by VoteCommand_call(), and VoteCommand_master().
float autocvar_sv_vote_wait |
Definition at line 21 of file vote.qh.
Referenced by VoteCommand_call(), and VoteCommand_master().
IntrusiveList g_saved_team |
Definition at line 77 of file vote.qh.
Referenced by assault_new_round(), ons_GeneratorSetup(), and relocate_spawnpoint().
entity nagger |
Definition at line 64 of file vote.qh.
Referenced by Nagger_Init(), Nagger_ReadyCounted(), Nagger_VoteChanged(), and Nagger_VoteCountChanged().
float readycount |
Definition at line 65 of file vote.qh.
Referenced by Nagger_SendEntity(), ReadyCount(), and ReadyRestart_force().
const float RESTART_COUNTDOWN = 10 |
Definition at line 63 of file vote.qh.
Referenced by ReadyRestart_force().
int team_saved |
Definition at line 68 of file vote.qh.
Referenced by ons_GeneratorReset(), and relocate_spawnpoint().
const float VC_ASGNMNT_BOTH = 1 |
Definition at line 25 of file vote.qh.
Referenced by Votecommand_check_assignment().
const float VC_ASGNMNT_CLIENTONLY = 2 |
Definition at line 26 of file vote.qh.
Referenced by Votecommand_check_assignment().
const float VC_ASGNMNT_SERVERONLY = 3 |
Definition at line 27 of file vote.qh.
Referenced by Votecommand_check_assignment().
float vote_abstain_count |
Definition at line 47 of file vote.qh.
Referenced by VoteCount(), and VoteSpam().
float vote_accept_count |
Definition at line 45 of file vote.qh.
Referenced by Nagger_SendEntity(), VoteCount(), and VoteSpam().
float vote_called |
Definition at line 43 of file vote.qh.
Referenced by ClientDisconnect(), CommonCommand_timeout(), Nagger_SendEntity(), PutObserverInServer(), VoteAccept(), VoteCommand_abstain(), VoteCommand_call(), VoteCommand_master(), VoteCommand_no(), VoteCommand_status(), VoteCommand_stop(), VoteCommand_yes(), VoteCount(), and VoteReset().
string vote_called_command |
Definition at line 52 of file vote.qh.
Referenced by VoteAccept(), VoteCommand_call(), VoteCommand_master(), and VoteReset().
string vote_called_display |
Definition at line 53 of file vote.qh.
Referenced by Nagger_SendEntity(), VoteAccept(), VoteCommand_call(), VoteCommand_master(), VoteCommand_status(), VoteReject(), VoteReset(), and VoteTimeout().
entity vote_caller |
Definition at line 41 of file vote.qh.
Referenced by OriginalCallerName(), VoteAccept(), VoteCommand_call(), VoteCommand_master(), VoteCommand_no(), VoteCommand_stop(), VoteCount(), VoteReset(), and VoteStop().
string vote_caller_name |
Definition at line 42 of file vote.qh.
Referenced by OriginalCallerName(), VoteCommand_call(), VoteCommand_master(), and VoteReset().
float vote_endtime |
Definition at line 44 of file vote.qh.
Referenced by VoteCommand_call(), VoteCommand_master(), VoteCount(), VoteReset(), and VoteThink().
const float VOTE_MASTER = 2 |
Definition at line 38 of file vote.qh.
Referenced by VoteAccept(), VoteCommand_master(), and VoteCount().
float vote_needed_overall |
Definition at line 48 of file vote.qh.
Referenced by Nagger_SendEntity(), and VoteCount().
const float VOTE_NORMAL = 1 |
Definition at line 37 of file vote.qh.
Referenced by VoteCommand_call().
const float VOTE_NULL = 0 |
Definition at line 36 of file vote.qh.
Referenced by VoteCommand_call(), and VoteReset().
string vote_parsed_command |
Definition at line 54 of file vote.qh.
Referenced by VoteCommand_call(), VoteCommand_master(), VoteCommand_parse(), and VoteReset().
string vote_parsed_display |
Definition at line 55 of file vote.qh.
Referenced by VoteCommand_call(), VoteCommand_master(), VoteCommand_parse(), and VoteReset().
float vote_reject_count |
Definition at line 46 of file vote.qh.
Referenced by Nagger_SendEntity(), VoteCount(), and VoteSpam().
const float VOTE_SELECT_ABSTAIN = -2 |
Definition at line 30 of file vote.qh.
Referenced by VoteCommand_abstain(), and VoteCount().
const float VOTE_SELECT_ACCEPT = 1 |
Definition at line 33 of file vote.qh.
Referenced by VoteCommand_call(), VoteCommand_master(), VoteCommand_yes(), and VoteCount().
const float VOTE_SELECT_NULL = 0 |
Definition at line 32 of file vote.qh.
Referenced by VoteCommand_abstain(), VoteCommand_no(), and VoteCommand_yes().
const float VOTE_SELECT_REJECT = -1 |
Definition at line 31 of file vote.qh.
Referenced by VoteCommand_no().
float vote_selection |
Definition at line 51 of file vote.qh.
Referenced by LocalCommand_handlevote().