Xonotic
|
#include <common/mutators/base.qh>
#include <server/elimination.qh>
#include <server/round_handler.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 92 of file sv_clanarena.qc.
References allowed_to_spawn, CA_count_alive_players(), ca_teams, NULL, NUM_TEAMS, NumTeams(), Team_GetNumberOfAlivePlayers(), Team_GetNumberOfAliveTeams(), Team_GetTeamFromIndex(), Team_IndexToBit(), and total_players.
Referenced by REGISTER_MUTATOR().
bool CA_CheckWinner | ( | ) |
Definition at line 47 of file sv_clanarena.qc.
References allowed_to_spawn, APP_TEAM_NUM, autocvar_g_ca_round_timelimit, autocvar_g_ca_warmup, CA_count_alive_players(), FOREACH_CLIENT, IS_PLAYER, nades_Clear(), NULL, round_handler_GetEndTime, round_handler_Init(), ST_CA_ROUNDS, Team_GetWinnerAliveTeam(), TeamScore_AddToTeam(), and time.
Referenced by REGISTER_MUTATOR().
Definition at line 128 of file sv_clanarena.qc.
References FRAGS_PLAYER_OUT_OF_GAME, INGAME_JOINED, INGAME_JOINING, and IS_DEAD.
Referenced by REGISTER_MUTATOR().
void CA_RoundStart | ( | ) |
Definition at line 87 of file sv_clanarena.qc.
References allowed_to_spawn, boolean, and warmup_stage.
Referenced by REGISTER_MUTATOR().
REGISTER_MUTATOR | ( | ca | , |
false | |||
) |
Definition at line 28 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_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(), GameRules_limit_lead(), GameRules_limit_score(), GameRules_scoring, GameRules_spawning_teams(), GameRules_teams(), MUTATOR_ONADD, MUTATOR_STATIC, round_handler_Init(), round_handler_Spawn(), SFL_SORT_PRIO_PRIMARY, and ST_CA_ROUNDS.
bool allowed_to_spawn |
Definition at line 19 of file sv_clanarena.qh.
Referenced by CA_CheckTeams(), CA_CheckWinner(), CA_RoundStart(), MUTATOR_HOOKFUNCTION(), and REGISTER_MUTATOR().
int autocvar_g_ca_point_leadlimit |
Definition at line 9 of file sv_clanarena.qh.
Referenced by REGISTER_MUTATOR().
int autocvar_g_ca_point_limit |
Definition at line 8 of file sv_clanarena.qh.
Referenced by REGISTER_MUTATOR().
float autocvar_g_ca_round_timelimit |
Definition at line 10 of file sv_clanarena.qh.
Referenced by CA_CheckWinner(), and REGISTER_MUTATOR().
bool autocvar_g_ca_team_spawns |
Definition at line 11 of file sv_clanarena.qh.
Referenced by REGISTER_MUTATOR().
int autocvar_g_ca_teams_override |
Definition at line 13 of file sv_clanarena.qh.
Referenced by REGISTER_MUTATOR().
float autocvar_g_ca_warmup |
Definition at line 14 of file sv_clanarena.qh.
Referenced by CA_CheckWinner(), and REGISTER_MUTATOR().
string autocvar_g_ca_weaponarena = "most" |
Definition at line 15 of file sv_clanarena.qh.
Referenced by MUTATOR_HOOKFUNCTION().
int ca_teams |
Definition at line 18 of file sv_clanarena.qh.
Referenced by CA_CheckTeams(), MUTATOR_HOOKFUNCTION(), and REGISTER_MUTATOR().
const int ST_CA_ROUNDS = 1 |
Definition at line 21 of file sv_clanarena.qh.
Referenced by CA_CheckWinner(), and REGISTER_MUTATOR().