|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
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 (bool is_fake_round_start) |
| STATIC_INIT (g_saved_team) | |
| string | ValidateMap (string validated_map, entity caller) |
| void (entity this) reset | |
| void | VoteCommand (int request, entity caller, int argc, string vote_command) |
| void | VoteCount (float first_count) |
| void | VoteReset (bool verbose) |
| void | VoteThink () |
| void Nagger_Init | ( | ) |
Definition at line 97 of file vote.qc.
References nagger, Nagger_SendEntity(), Net_LinkEntity(), and new_pure.
Referenced by spawnfunc().
| void ReadyCount | ( | ) |
Definition at line 553 of file vote.qc.
References autocvar_g_warmup, autocvar_sv_teamnagger, autocvar_timelimit, bound(), cvar(), FOREACH_CLIENT, game_starttime, GiveWarmupResources(), INGAME_JOINED, IS_PLAYER, IS_REAL_CLIENT, map_minplayers, Nagger_ReadyCounted(), NULL, readycount, ReadyRestart(), rint(), Send_Notification(), sv_ready_restart_after_countdown, TeamBalance_SizeDifference(), teamplay, time, timeout_status, total_players, warmup_limit, and warmup_stage.
Referenced by bot_think(), ClientCommand_ready(), ClientDisconnect(), PutObserverInServer(), PutPlayerInServer(), SetPlayerTeam(), and timeout_handler_reset().
Definition at line 441 of file vote.qc.
References autocvar_g_campaign, autocvar_sv_eventlog, autocvar_sv_spectate, autocvar_sv_timeout, autocvar_sv_timeout_number, autocvar_teamplay_lockonrestart, autocvar_timelimit, autocvar_timelimit_overtime, checkrules_overtimesadded, checkrules_suddendeathend, checkrules_suddendeathwarning, ClientData_Touch(), CS(), cvar_set(), entity(), FOREACH_CLIENT, ftos(), g_race_qualifying, game_starttime, game_stopped, GameLogEcho(), IS_PLAYER, IS_REAL_CLIENT, IS_SPEC, Join(), localcmd(), lockteams, Nagger_ReadyCounted(), new_pure, NULL, overtimes, PutClientInServer, readycount, ReadyRestart_think(), reset_map(), RESTART_COUNTDOWN, Send_Notification(), setthink, sv_ready_restart_after_countdown, teamplay, time, TRANSMUTE, VoteReset(), and warmup_stage.
Referenced by assault_new_round(), and ReadyRestart().
Definition at line 351 of file vote.qc.
References accuracy_reset(), CS(), entity(), FL_PROJECTILE, FOREACH_CLIENT, FOREACH_ENTITY_FLOAT_ORDERED, FOREACH_ENTITY_ORDERED, game_starttime, game_stopped, Inventory_clear(), Inventory_update(), IS_BOT_CLIENT, IS_CLIENT, IS_NOT_A_CLIENT, IS_PLAYER, MUTATOR_CALLHOOK, player_powerups_remove_all(), PlayerStats_GameReport_Reset_All(), PS, pure_data, PutClientInServer, round_handler_IsActive, round_handler_Reset(), Score_ClearAll(), shuffleteams(), shuffleteams_on_reset_map, time, W_NextWeapon(), and weaponentities.
Referenced by ReadyRestart_force(), ReadyRestart_think(), and round_handler_Think().
| STATIC_INIT | ( | g_saved_team | ) |
Definition at line 672 of file vote.qc.
References autocvar_sv_vote_override_mostrecent, entity(), Map_IsRecent(), MapInfo_CheckMap(), MapInfo_FixName(), print_to(), strcat(), and string_null.
Referenced by GameCommand_nextmap(), and VoteCommand_parse().
Definition at line 1431 of file vote.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GetCommandPrefix(), print_to(), strcat(), VoteCommand_macro_command(), and VoteCommand_macro_help().
Referenced by COMMON_COMMAND().
Definition at line 220 of file vote.qc.
References autocvar_sv_vote_debug, autocvar_sv_vote_majority_factor, autocvar_sv_vote_majority_factor_of_voted, autocvar_sv_vote_master_playerlimit, bound(), floor(), FOREACH_CLIENT, INGAME, 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, VOTE_SELECT_REJECT, VoteAccept(), VoteReject(), VoteReset(), VoteSpam(), and VoteTimeout().
Referenced by ClientDisconnect(), PutObserverInServer(), VoteCommand_abstain(), VoteCommand_call(), VoteCommand_master(), VoteCommand_no(), VoteCommand_yes(), and VoteThink().
Definition at line 129 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, vote_parsed_display, and VoteStop().
Referenced by InitGameplayMode(), NextLevel(), ReadyRestart_force(), VoteAccept(), VoteCount(), VoteReject(), VoteStop(), and VoteTimeout().
| void VoteThink | ( | ) |
Definition at line 336 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_debug |
Definition at line 6 of file vote.qh.
Referenced by VoteCommand_call(), and VoteCount().
| bool autocvar_sv_vote_gamestart |
Definition at line 7 of file vote.qh.
Referenced by VoteCommand_call().
| int autocvar_sv_vote_limit |
Definition at line 8 of file vote.qh.
Referenced by VoteCommand_parse().
| float autocvar_sv_vote_majority_factor |
Definition at line 9 of file vote.qh.
Referenced by VoteCount().
| float autocvar_sv_vote_majority_factor_of_voted |
Definition at line 10 of file vote.qh.
Referenced by VoteCount().
| bool autocvar_sv_vote_master |
Definition at line 11 of file vote.qh.
Referenced by VoteCommand_master().
| bool autocvar_sv_vote_master_callable |
Definition at line 12 of file vote.qh.
Referenced by VoteCommand_master().
| string autocvar_sv_vote_master_commands |
Definition at line 13 of file vote.qh.
Referenced by VoteCommand_master().
| string autocvar_sv_vote_master_ids |
Definition at line 14 of file vote.qh.
Referenced by ClientConnect().
| string autocvar_sv_vote_master_password |
Definition at line 15 of file vote.qh.
Referenced by VoteCommand_master().
| int autocvar_sv_vote_master_playerlimit |
Definition at line 16 of file vote.qh.
Referenced by VoteCount().
| bool autocvar_sv_vote_no_stops_vote |
Definition at line 17 of file vote.qh.
Referenced by VoteCommand_no().
| bool autocvar_sv_vote_override_mostrecent |
Definition at line 20 of file vote.qh.
Referenced by ValidateMap().
| bool autocvar_sv_vote_singlecount |
Definition at line 21 of file vote.qh.
Referenced by VoteCommand_abstain(), VoteCommand_no(), and VoteCommand_yes().
| float autocvar_sv_vote_stop |
Definition at line 22 of file vote.qh.
Referenced by VoteStop().
| float autocvar_sv_vote_timeout |
Definition at line 23 of file vote.qh.
Referenced by VoteCommand_call(), and VoteCommand_master().
| float autocvar_sv_vote_wait |
Definition at line 24 of file vote.qh.
Referenced by VoteCommand_call(), and VoteCommand_master().
| IntrusiveList g_saved_team |
Definition at line 79 of file vote.qh.
Referenced by assault_new_round(), func_breakable_setup(), ons_GeneratorSetup(), relocate_spawnpoint(), spawnfunc(), spawnfunc(), and STATIC_INIT().
| entity nagger |
Definition at line 67 of file vote.qh.
Referenced by Nagger_Init(), Nagger_ReadyCounted(), Nagger_VoteChanged(), and Nagger_VoteCountChanged().
| int readycount |
Definition at line 68 of file vote.qh.
Referenced by Nagger_SendEntity(), ReadyCount(), and ReadyRestart_force().
| const float RESTART_COUNTDOWN = 10 |
Definition at line 66 of file vote.qh.
Referenced by ReadyRestart_force().
| int team_saved |
Definition at line 70 of file vote.qh.
Referenced by func_breakable_reset(), func_breakable_setup(), multi_reset(), ons_GeneratorReset(), relocate_spawnpoint(), spawnfunc(), spawnfunc(), and trigger_relay_teamcheck_reset().
| const float VC_ASGNMNT_BOTH = 1 |
Definition at line 27 of file vote.qh.
Referenced by Votecommand_check_assignment().
| const float VC_ASGNMNT_CLIENTONLY = 2 |
Definition at line 28 of file vote.qh.
Referenced by Votecommand_check_assignment().
| const float VC_ASGNMNT_SERVERONLY = 3 |
Definition at line 29 of file vote.qh.
Referenced by Votecommand_check_assignment().
| int vote_abstain_count |
Definition at line 49 of file vote.qh.
Referenced by VoteCount(), and VoteSpam().
| int vote_accept_count |
Definition at line 47 of file vote.qh.
Referenced by Nagger_SendEntity(), VoteCount(), and VoteSpam().
| int vote_called |
Definition at line 45 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 54 of file vote.qh.
Referenced by VoteAccept(), VoteCommand_call(), VoteCommand_master(), and VoteReset().
| string vote_called_display |
Definition at line 55 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 43 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 44 of file vote.qh.
Referenced by OriginalCallerName(), VoteCommand_call(), VoteCommand_master(), and VoteReset().
| float vote_endtime |
Definition at line 46 of file vote.qh.
Referenced by VoteCommand_call(), VoteCommand_master(), VoteCount(), VoteReset(), and VoteThink().
| const float VOTE_MASTER = 2 |
Definition at line 40 of file vote.qh.
Referenced by VoteAccept(), VoteCommand_master(), and VoteCount().
| bool vote_master |
Definition at line 51 of file vote.qh.
Referenced by ClientConnect(), and ObserverOrSpectatorThink().
| int vote_needed_overall |
Definition at line 50 of file vote.qh.
Referenced by Nagger_SendEntity(), and VoteCount().
| const float VOTE_NORMAL = 1 |
Definition at line 39 of file vote.qh.
Referenced by VoteCommand_call().
| const float VOTE_NULL = 0 |
Definition at line 38 of file vote.qh.
Referenced by VoteCommand_call(), and VoteReset().
| string vote_parsed_command |
Definition at line 56 of file vote.qh.
Referenced by VoteCommand_call(), VoteCommand_master(), VoteCommand_parse(), and VoteReset().
| string vote_parsed_display |
Definition at line 57 of file vote.qh.
Referenced by VoteCommand_call(), VoteCommand_master(), VoteCommand_parse(), and VoteReset().
| int vote_reject_count |
Definition at line 48 of file vote.qh.
Referenced by Nagger_SendEntity(), VoteCount(), and VoteSpam().
| const float VOTE_SELECT_ABSTAIN = -2 |
Definition at line 32 of file vote.qh.
Referenced by VoteCommand_abstain(), and VoteCount().
| const float VOTE_SELECT_ACCEPT = 1 |
Definition at line 35 of file vote.qh.
Referenced by VoteCommand_call(), VoteCommand_master(), VoteCommand_yes(), and VoteCount().
| const float VOTE_SELECT_NULL = 0 |
Definition at line 34 of file vote.qh.
Referenced by VoteCommand_abstain(), VoteCommand_no(), and VoteCommand_yes().
| const float VOTE_SELECT_REJECT = -1 |
Definition at line 33 of file vote.qh.
Referenced by VoteCommand_no(), and VoteCount().
| int vote_selection |
Definition at line 53 of file vote.qh.
Referenced by LocalCommand_handlevote().