|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "sv_clanarena.qh"Go to the source code of this file.
| 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().
| float 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().
| void CA_count_alive_players | ( | ) |
Definition at line 17 of file sv_clanarena.qc.
References entity(), Entity_GetTeam(), Entity_HasValidTeam(), FOREACH_CLIENT, IS_DEAD, IS_PLAYER, IS_REAL_CLIENT, NUM_TEAMS, STAT, Team_GetNumberOfAlivePlayers(), Team_GetTeamFromIndex(), Team_SetNumberOfAlivePlayers(), and total_players.
Referenced by CA_CheckTeams(), and CA_CheckWinner().
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().
Definition at line 351 of file sv_clanarena.qc.
References entity(), FOREACH_CLIENT, IS_DEAD, IS_PLAYER, NULL, and SAME_TEAM.
Referenced by ca_LastPlayerForTeam_Notify().
Definition at line 366 of file sv_clanarena.qc.
References ca_LastPlayerForTeam(), entity(), round_handler_IsActive, round_handler_IsRoundStarted, Send_Notification(), and warmup_stage.
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| int CA_PreventStalemate | ( | ) |
Definition at line 45 of file sv_clanarena.qc.
References autocvar_g_ca_prevent_stalemate, AVAILABLE_TEAMS, BIT, bprint(), Entity_HasValidTeam(), floor(), FOREACH_CLIENT, GetResource(), IS_DEAD, IS_PLAYER, RES_ARMOR, rint(), Team_ColorCode(), Team_ColorName(), Team_GetNumberOfAlivePlayers(), Team_GetTeam(), Team_GetTeamFromIndex(), and Team_IndexToTeam().
Referenced by CA_CheckWinner().
| 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().
Returns next available player to spectate if g_ca_spectate_enemies == 0.
Definition at line 253 of file sv_clanarena.qc.
References classname, entity(), find(), NULL, SAME_TEAM, and STR_PLAYER.
Referenced by MUTATOR_HOOKFUNCTION().
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| Bot_FixCount | , | ||
| CBC_ORDER_EXCLUSIVE | ) |
Definition at line 608 of file sv_clanarena.qc.
References CBC_ORDER_EXCLUSIVE, FOREACH_CLIENT, INGAME_JOINED, IS_PLAYER, IS_REAL_CLIENT, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| CalculateRespawnTime | ) |
Definition at line 539 of file sv_clanarena.qc.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| ClientCommand_Spectate | ) |
Definition at line 618 of file sv_clanarena.qc.
References autocvar_sv_spectate, entity(), INGAME, IS_OBSERVER, IS_SPEC, M_ARGV, MUT_SPECCMD_CONTINUE, MUT_SPECCMD_FORCE, and Send_Notification().
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| ClientDisconnect | ) |
Definition at line 394 of file sv_clanarena.qc.
References ca_LastPlayerForTeam_Notify(), ClientDisconnect, entity(), IS_DEAD, IS_PLAYER, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| Damage_Calculate | ) |
Definition at line 456 of file sv_clanarena.qc.
References entity(), frag_damage, frag_target, IS_DEAD, IS_PLAYER, M_ARGV, and SAME_TEAM.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| FilterItem | ) |
Definition at line 475 of file sv_clanarena.qc.
References autocvar_g_pickup_items, autocvar_g_powerups, entity(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| ForbidSpawn | ) |
Definition at line 283 of file sv_clanarena.qc.
References allowed_to_spawn, entity(), INGAME, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| ForbidThrowCurrentWeapon | ) |
Definition at line 430 of file sv_clanarena.qc.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| GiveFragsForKill | , | ||
| CBC_ORDER_FIRST | ) |
Definition at line 435 of file sv_clanarena.qc.
References CBC_ORDER_FIRST, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| MakePlayerObserver | ) |
Definition at line 403 of file sv_clanarena.qc.
References ca_LastPlayerForTeam_Notify(), eliminatedPlayers, entcs_update_players(), entity(), FRAGS_PLAYER_OUT_OF_GAME, INGAME, INGAME_STATUS_CLEAR, IS_DEAD, IS_PLAYER, M_ARGV, observe_blocked_if_eliminated, and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| MatchEnd_BeforeScores | ) |
Definition at line 339 of file sv_clanarena.qc.
References MatchEnd_RestoreSpectatorAndTeamStatus(), and prev_team.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| PlayerDamage_SplitHealthArmor | ) |
Definition at line 487 of file sv_clanarena.qc.
References autocvar_g_ca_damage2score, bound(), DIFF_TEAM, entity(), float2int_decimal_fld, frag_damage, frag_target, game_starttime, GameRules_scoring_add_float2int, GetResource(), IS_PLAYER, M_ARGV, max(), NULL, RES_ARMOR, round_handler_IsActive, round_handler_IsRoundStarted, and time.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| PlayerDies | ) |
Definition at line 376 of file sv_clanarena.qc.
References allowed_to_spawn, ca_LastPlayerForTeam_Notify(), eliminatedPlayers, entity(), frag_target, M_ARGV, RESPAWN_FORCE, RESPAWN_SILENT, time, and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| PlayerRegen | ) |
Definition at line 545 of file sv_clanarena.qc.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| PlayerSpawn | ) |
Definition at line 272 of file sv_clanarena.qc.
References eliminatedPlayers, entity(), game_starttime, INGAME_STATUS_JOINED, INGAME_STATUS_SET, M_ARGV, time, and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| PutClientInServer | ) |
Definition at line 295 of file sv_clanarena.qc.
References allowed_to_spawn, CS(), eliminatedPlayers, entity(), INGAME, INGAME_STATUS_JOINING, INGAME_STATUS_SET, IS_PLAYER, jointime, M_ARGV, PutClientInServer, Send_Notification(), time, TRANSMUTE, and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| reset_map_global | ) |
Definition at line 333 of file sv_clanarena.qc.
References allowed_to_spawn.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| reset_map_players | ) |
Definition at line 313 of file sv_clanarena.qc.
References autocvar_g_ca_spectate_enemies, CS(), FOREACH_CLIENT, g_ca_spectate_enemies, INGAME, INGAME_STATUS_JOINED, INGAME_STATUS_SET, IS_BOT_CLIENT, observe_blocked_if_eliminated, PutClientInServer, and TRANSMUTE.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| Scores_CountFragsRemaining | ) |
Definition at line 551 of file sv_clanarena.qc.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| SetStartItems | ) |
Definition at line 441 of file sv_clanarena.qc.
References autocvar_g_ca_start_ammo_cells, autocvar_g_ca_start_ammo_fuel, autocvar_g_ca_start_ammo_nails, autocvar_g_ca_start_ammo_rockets, autocvar_g_ca_start_ammo_shells, autocvar_g_ca_start_armor, autocvar_g_ca_start_health, cvar(), IT_UNLIMITED_AMMO, IT_UNLIMITED_SUPERWEAPONS, start_ammo_cells, start_ammo_fuel, start_ammo_nails, start_ammo_rockets, start_ammo_shells, start_armorvalue, start_health, start_items, warmup_start_ammo_cells, warmup_start_ammo_fuel, warmup_start_ammo_nails, warmup_start_ammo_rockets, warmup_start_ammo_shells, warmup_start_armorvalue, and warmup_start_health.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| SetWeaponArena | ) |
Definition at line 633 of file sv_clanarena.qc.
References autocvar_g_ca_weaponarena, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| SpectateNext | ) |
Definition at line 567 of file sv_clanarena.qc.
References CA_SpectateNext(), entity(), Entity_GetTeam(), g_ca_spectate_enemies, INGAME, M_ARGV, SpectateNext(), and Team_GetNumberOfAlivePlayers().
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| SpectatePrev | ) |
Definition at line 580 of file sv_clanarena.qc.
References DIFF_TEAM, entity(), Entity_GetTeam(), g_ca_spectate_enemies, INGAME, M_ARGV, MUT_SPECPREV_CONTINUE, MUT_SPECPREV_FOUND, MUT_SPECPREV_RETURN, SpectatePrev(), and Team_GetNumberOfAlivePlayers().
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| SpectateSet | ) |
Definition at line 557 of file sv_clanarena.qc.
References DIFF_TEAM, entity(), g_ca_spectate_enemies, INGAME, M_ARGV, and SpectateSet().
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| SV_ParseServerCommand | ) |
Definition at line 639 of file sv_clanarena.qc.
References allowed_to_spawn, cmd_name, M_ARGV, and shuffleteams_on_reset_map.
| MUTATOR_HOOKFUNCTION | ( | ca | , |
| TeamBalance_CheckAllowedTeams | , | ||
| CBC_ORDER_EXCLUSIVE | ) |
Definition at line 345 of file sv_clanarena.qc.
References ca_teams, CBC_ORDER_EXCLUSIVE, M_ARGV, and TeamBalance_CheckAllowedTeams().
| float autocvar_g_ca_damage2score = 100 |
Definition at line 3 of file sv_clanarena.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| int autocvar_g_ca_prevent_stalemate |
Definition at line 4 of file sv_clanarena.qc.
Referenced by CA_CheckWinner(), and CA_PreventStalemate().
| float autocvar_g_ca_round_enddelay |
Definition at line 5 of file sv_clanarena.qc.
Referenced by CA_CheckWinner().
| float autocvar_g_ca_start_ammo_cells = 180 |
Definition at line 12 of file sv_clanarena.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_ca_start_ammo_fuel = 0 |
Definition at line 13 of file sv_clanarena.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_ca_start_ammo_nails = 320 |
Definition at line 10 of file sv_clanarena.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_ca_start_ammo_rockets = 160 |
Definition at line 11 of file sv_clanarena.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_ca_start_ammo_shells = 60 |
Definition at line 9 of file sv_clanarena.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_ca_start_armor = 200 |
Definition at line 8 of file sv_clanarena.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_ca_start_health = 200 |
Definition at line 7 of file sv_clanarena.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float float2int_decimal_fld |
Definition at line 271 of file sv_clanarena.qc.
Referenced by ka_BallThink_Carried(), kh_Scores_Event(), MUTATOR_HOOKFUNCTION(), and tka_BallThink_Carried().
| int prev_team |
Definition at line 15 of file sv_clanarena.qc.
Referenced by HUD_Scoreboard_InputEvent(), and MUTATOR_HOOKFUNCTION().