|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include <common/mutators/base.qh>#include <server/elimination.qh>#include <server/round_handler.qh>#include <server/world.qh>#include <server/command/sv_cmd.qh>Go to the source code of this file.
Functions | |
| bool | CA_CheckTeams () |
| bool | CA_CheckWinner () |
| bool | ca_isEliminated (entity e) |
| void | CA_RoundStart () |
| REGISTER_MUTATOR (ca, false) | |
| bool CA_CheckTeams | ( | ) |
Definition at line 220 of file sv_clanarena.qc.
References allowed_to_spawn, CA_count_alive_players(), ca_teams, missing_teams_mask, NUM_TEAMS, NumTeams(), Team_GetNumberOfAlivePlayers(), Team_GetNumberOfAliveTeams(), Team_GetTeamFromIndex(), Team_IndexToBit(), and total_players.
Referenced by REGISTER_MUTATOR().
| bool CA_CheckWinner | ( | ) |
Definition at line 141 of file sv_clanarena.qc.
References allowed_to_spawn, APP_TEAM_NUM, autocvar_g_ca_prevent_stalemate, autocvar_g_ca_round_enddelay, autocvar_g_ca_round_timelimit, autocvar_g_ca_warmup, BIT, CA_count_alive_players(), CA_PreventStalemate(), FOREACH_CLIENT, game_stopped, IS_PLAYER, min(), nades_RemovePlayer(), NULL, round_handler_GetEndDelayTime, round_handler_GetEndTime, round_handler_Init(), round_handler_ResetEndDelayTime, round_handler_SetEndDelayTime, Send_Notification(), ST_CA_ROUNDS, Team_GetWinnerAliveTeam(), TeamScore_AddToTeam(), and time.
Referenced by REGISTER_MUTATOR().
Definition at line 243 of file sv_clanarena.qc.
References entity(), FRAGS_PLAYER_OUT_OF_GAME, INGAME_JOINED, INGAME_JOINING, and IS_DEAD.
Referenced by REGISTER_MUTATOR().
| void CA_RoundStart | ( | ) |
Definition at line 213 of file sv_clanarena.qc.
References allowed_to_spawn, boolean, FOREACH_CLIENT, IS_PLAYER, and warmup_stage.
Referenced by REGISTER_MUTATOR().
| REGISTER_MUTATOR | ( | ca | , |
| false | ) |
Definition at line 30 of file sv_clanarena.qh.
References allowed_to_spawn, autocvar_g_ca_point_leadlimit, autocvar_g_ca_point_limit, autocvar_g_ca_round_timelimit, autocvar_g_ca_spectate_enemies, autocvar_g_ca_team_spawns, autocvar_g_ca_teams_override, autocvar_g_ca_warmup, BITS, bound(), CA_CheckTeams(), CA_CheckWinner(), ca_isEliminated(), CA_RoundStart(), ca_teams, cvar(), EliminatedPlayers_Init(), g_ca_spectate_enemies, GameRules_limit_lead(), GameRules_limit_score(), GameRules_scoring, GameRules_spawning_teams, GameRules_teams(), MUTATOR_ONADD, MUTATOR_STATIC, observe_blocked_if_eliminated, round_handler_Init(), round_handler_Spawn(), SFL_SORT_PRIO_PRIMARY, and ST_CA_ROUNDS.
| bool allowed_to_spawn |
Definition at line 20 of file sv_clanarena.qh.
Referenced by CA_CheckTeams(), CA_CheckWinner(), CA_RoundStart(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), REGISTER_MUTATOR(), Surv_CheckPlayers(), Surv_CheckWinner(), surv_Initialize(), and Surv_RoundStart().
| int autocvar_g_ca_point_leadlimit |
Definition at line 11 of file sv_clanarena.qh.
Referenced by REGISTER_MUTATOR().
| int autocvar_g_ca_point_limit |
Definition at line 10 of file sv_clanarena.qh.
Referenced by REGISTER_MUTATOR().
| float autocvar_g_ca_round_timelimit |
Definition at line 12 of file sv_clanarena.qh.
Referenced by CA_CheckWinner(), and REGISTER_MUTATOR().
| int autocvar_g_ca_spectate_enemies |
Definition at line 9 of file sv_clanarena.qh.
Referenced by MUTATOR_HOOKFUNCTION(), and REGISTER_MUTATOR().
| bool autocvar_g_ca_team_spawns |
Definition at line 13 of file sv_clanarena.qh.
Referenced by REGISTER_MUTATOR().
| int autocvar_g_ca_teams_override |
Definition at line 15 of file sv_clanarena.qh.
Referenced by REGISTER_MUTATOR().
| float autocvar_g_ca_warmup |
Definition at line 16 of file sv_clanarena.qh.
Referenced by CA_CheckWinner(), and REGISTER_MUTATOR().
| string autocvar_g_ca_weaponarena = "most" |
Definition at line 17 of file sv_clanarena.qh.
Referenced by MUTATOR_HOOKFUNCTION().
| int ca_teams |
Definition at line 19 of file sv_clanarena.qh.
Referenced by CA_CheckTeams(), MUTATOR_HOOKFUNCTION(), and REGISTER_MUTATOR().
| bool g_ca_spectate_enemies |
Definition at line 21 of file sv_clanarena.qh.
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and REGISTER_MUTATOR().
| const int ST_CA_ROUNDS = 1 |
Definition at line 23 of file sv_clanarena.qh.
Referenced by CA_CheckWinner(), and REGISTER_MUTATOR().