Xonotic
|
#include "sv_freezetag.qh"
#include <common/resources/sv_resources.qh>
#include <server/elimination.qh>
Go to the source code of this file.
Macros | |
#define | IN_REVIVING_RANGE(player, it, revive_extra_size) |
#define IN_REVIVING_RANGE | ( | player, | |
it, | |||
revive_extra_size | |||
) |
Definition at line 499 of file sv_freezetag.qc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 158 of file sv_freezetag.qc.
References GameRules_scoring_add, and IS_PLAYER.
Referenced by freezetag_Freeze(), and MUTATOR_HOOKFUNCTION().
bool freezetag_CheckTeams | ( | ) |
Definition at line 52 of file sv_freezetag.qc.
References entity(), freezetag_teams, nades_Clear(), nades_GiveBonus(), NULL, NUM_TEAMS, NumTeams(), Team_GetNumberOfAlivePlayers(), Team_GetNumberOfAliveTeams(), Team_GetTeamFromIndex(), Team_IndexToBit(), and total_players.
Referenced by freezetag_Initialize().
bool freezetag_CheckWinner | ( | ) |
Definition at line 89 of file sv_freezetag.qc.
References APP_TEAM_NUM, autocvar_g_freezetag_round_timelimit, autocvar_g_freezetag_warmup, FOREACH_CLIENT, IS_PLAYER, nades_Clear(), NULL, round_handler_GetEndTime, round_handler_Init(), ST_FT_ROUNDS, Team_GetWinnerAliveTeam(), TeamScore_AddToTeam(), and time.
Referenced by freezetag_Initialize().
void freezetag_count_alive_players | ( | ) |
Definition at line 22 of file sv_freezetag.qc.
References eliminatedPlayers, entity(), Entity_GetTeam(), Entity_HasValidTeam(), FOREACH_CLIENT, FROZEN_NORMAL, GetResource(), IS_PLAYER, IS_REAL_CLIENT, NUM_TEAMS, RES_HEALTH, Team_GetNumberOfAlivePlayers(), Team_GetTeamFromIndex(), Team_SetNumberOfAlivePlayers(), and total_players.
Referenced by freezetag_Freeze(), ft_RemovePlayer(), and MUTATOR_HOOKFUNCTION().
Definition at line 177 of file sv_freezetag.qc.
References autocvar_g_freezetag_frozen_maxtime, autocvar_g_freezetag_revive_auto, Freeze(), freezetag_Add_Score(), freezetag_count_alive_players(), FROZEN_NORMAL, and time.
Referenced by MUTATOR_HOOKFUNCTION().
void freezetag_Initialize | ( | ) |
Definition at line 752 of file sv_freezetag.qc.
References autocvar_g_freezetag_round_timelimit, autocvar_g_freezetag_teams_override, autocvar_g_freezetag_warmup, BITS, bound(), cvar(), EliminatedPlayers_Init(), freezetag_CheckTeams(), freezetag_CheckWinner(), freezetag_isEliminated(), freezetag_teams, func_null(), GameRules_scoring, round_handler_Init(), round_handler_Spawn(), SFL_SORT_PRIO_PRIMARY, and ST_FT_ROUNDS.
Referenced by REGISTER_MUTATOR().
Definition at line 193 of file sv_freezetag.qc.
References entity(), FROZEN_NORMAL, havocbot_role_ft_freeing(), havocbot_role_ft_offense(), IS_DEAD, IS_PLAYER, and void().
Referenced by freezetag_Initialize().
Definition at line 132 of file sv_freezetag.qc.
References entity(), FOREACH_CLIENT, FROZEN_NORMAL, GetResource(), IS_PLAYER, NULL, RES_HEALTH, and SAME_TEAM.
Referenced by freezetag_LastPlayerForTeam_Notify().
Definition at line 147 of file sv_freezetag.qc.
References entity(), freezetag_LastPlayerForTeam(), round_handler_IsActive, and round_handler_IsRoundStarted.
Referenced by ft_RemovePlayer(), and MUTATOR_HOOKFUNCTION().
Definition at line 309 of file sv_freezetag.qc.
References freezetag_count_alive_players(), freezetag_LastPlayerForTeam_Notify(), FROZEN_NORMAL, RES_HEALTH, SetResourceExplicit(), and Unfreeze().
Referenced by MUTATOR_HOOKFUNCTION().
void havocbot_goalrating_ft_freeplayers | ( | entity | this, |
float | ratingscale, | ||
vector | org, | ||
float | sradius | ||
) |
Definition at line 208 of file sv_freezetag.qc.
References entity(), FLOAT_MAX, FOREACH_CLIENT, FROZEN_NORMAL, GetResource(), IS_PLAYER, navigation_routerating(), NULL, RES_HEALTH, SAME_TEAM, vdist, and vlen2.
Referenced by havocbot_role_ft_freeing(), and havocbot_role_ft_offense().
Definition at line 275 of file sv_freezetag.qc.
References havocbot_goalrating_enemyplayers(), havocbot_goalrating_ft_freeplayers(), havocbot_goalrating_items(), havocbot_goalrating_waypoints(), havocbot_role_ft_offense(), havocbot_role_timeout, IS_DEAD, LOG_TRACE, navigation_goalrating_end(), navigation_goalrating_start(), navigation_goalrating_timeout(), navigation_goalrating_timeout_set(), origin, random(), and time.
Referenced by freezetag_isEliminated(), havocbot_role_ft_offense(), and MUTATOR_HOOKFUNCTION().
Definition at line 239 of file sv_freezetag.qc.
References FOREACH_CLIENT, FROZEN_NORMAL, havocbot_goalrating_enemyplayers(), havocbot_goalrating_ft_freeplayers(), havocbot_goalrating_items(), havocbot_goalrating_waypoints(), havocbot_role_ft_freeing(), havocbot_role_timeout, IS_DEAD, IS_PLAYER, LOG_TRACE, navigation_goalrating_end(), navigation_goalrating_start(), navigation_goalrating_timeout(), navigation_goalrating_timeout_set(), origin, random(), SAME_TEAM, and time.
Referenced by freezetag_isEliminated(), havocbot_role_ft_freeing(), and MUTATOR_HOOKFUNCTION().
MUTATOR_HOOKFUNCTION | ( | ft | , |
ClientDisconnect | |||
) |
Definition at line 319 of file sv_freezetag.qc.
References entity(), ft_RemovePlayer(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | ft | , |
MakePlayerObserver | |||
) |
Definition at line 327 of file sv_freezetag.qc.
References entity(), ft_RemovePlayer(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | ft | , |
PlayerDies | |||
) |
Definition at line 334 of file sv_freezetag.qc.
References entity(), freezetag_Add_Score(), freezetag_count_alive_players(), freezetag_Freeze(), freezetag_LastPlayerForTeam_Notify(), FROZEN_NORMAL, IS_PLAYER, ITEM_DAMAGE_NEEDKILL, M_ARGV, NULL, RESPAWN_FORCE, round_handler_CountdownRunning, round_handler_IsActive, time, and Unfreeze().
MUTATOR_HOOKFUNCTION | ( | ft | , |
PlayerSpawn | |||
) |
Definition at line 400 of file sv_freezetag.qc.
References entity(), freezetag_count_alive_players(), freezetag_Freeze(), M_ARGV, NULL, round_handler_IsActive, and round_handler_IsRoundStarted.
MUTATOR_HOOKFUNCTION | ( | ft | , |
reset_map_players | |||
) |
Definition at line 432 of file sv_freezetag.qc.
References CS(), FOREACH_CLIENT, freezetag_count_alive_players(), IS_PLAYER, and PutClientInServer().
MUTATOR_HOOKFUNCTION | ( | ft | , |
GiveFragsForKill | , | ||
CBC_ORDER_FIRST | |||
) |
MUTATOR_HOOKFUNCTION | ( | ft | , |
Unfreeze | |||
) |
Definition at line 451 of file sv_freezetag.qc.
References entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | ft | , |
Damage_Calculate | |||
) |
Definition at line 458 of file sv_freezetag.qc.
References autocvar_g_freezetag_frozen_maxtime, autocvar_g_freezetag_revive_auto, autocvar_g_freezetag_revive_auto_reducible, autocvar_g_freezetag_revive_auto_reducible_forcefactor, autocvar_g_freezetag_revive_auto_reducible_maxforce, DIFF_TEAM, entity(), fabs(), FROZEN_NORMAL, M_ARGV, max(), time, vector(), and vlen().
MUTATOR_HOOKFUNCTION | ( | ft | , |
PlayerPreThink | , | ||
CBC_ORDER_FIRST | |||
) |
Definition at line 503 of file sv_freezetag.qc.
References autocvar_g_freezetag_frozen_maxtime, autocvar_g_freezetag_revive_auto, autocvar_g_freezetag_revive_auto_progress, autocvar_g_freezetag_revive_clearspeed, autocvar_g_freezetag_revive_extra_size, autocvar_g_freezetag_revive_spawnshield, autocvar_g_freezetag_revive_speed, autocvar_g_freezetag_revive_speed_t2s, autocvar_g_freezetag_revive_time_to_score, autocvar_sv_eventlog, bound(), entity(), FOREACH_CLIENT, frametime, freezetag_count_alive_players(), FROZEN_NORMAL, ftos(), GameLogEcho(), GameRules_scoring_add, if(), IN_REVIVING_RANGE, IS_PLAYER, M_ARGV, max(), nades_GiveBonus(), NULL, RES_HEALTH, round_handler_IsActive, round_handler_IsRoundStarted, SetResourceExplicit(), start_health, strcat(), strlen(), substring(), time, Unfreeze(), vector(), warmup_stage, warmup_start_health, WP_FROZEN_COLOR, and WP_REVIVING_COLOR.
MUTATOR_HOOKFUNCTION | ( | ft | , |
SetStartItems | |||
) |
Definition at line 673 of file sv_freezetag.qc.
References autocvar_g_ft_start_ammo_cells, autocvar_g_ft_start_ammo_fuel, autocvar_g_ft_start_ammo_nails, autocvar_g_ft_start_ammo_plasma, autocvar_g_ft_start_ammo_rockets, autocvar_g_ft_start_ammo_shells, autocvar_g_ft_start_armor, autocvar_g_ft_start_health, cvar(), start_ammo_cells, start_ammo_fuel, start_ammo_nails, start_ammo_plasma, 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_plasma, warmup_start_ammo_rockets, warmup_start_ammo_shells, warmup_start_armorvalue, and warmup_start_health.
MUTATOR_HOOKFUNCTION | ( | ft | , |
HavocBot_ChooseRole | |||
) |
Definition at line 689 of file sv_freezetag.qc.
References CS(), entity(), havocbot_role_ft_freeing(), havocbot_role_ft_offense(), IS_DEAD, jointime, M_ARGV, random(), and time.
MUTATOR_HOOKFUNCTION | ( | ft | , |
TeamBalance_CheckAllowedTeams | , | ||
CBC_ORDER_EXCLUSIVE | |||
) |
MUTATOR_HOOKFUNCTION | ( | ft | , |
SetWeaponArena | |||
) |
Definition at line 714 of file sv_freezetag.qc.
References autocvar_g_freezetag_weaponarena, and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | ft | , |
FragCenterMessage | |||
) |
Definition at line 720 of file sv_freezetag.qc.
References CS(), entity(), FROZEN_NORMAL, GetResource(), IS_BOT_CLIENT, M_ARGV, ping, and RES_HEALTH.
MUTATOR_HOOKFUNCTION | ( | ft | , |
SV_ParseServerCommand | |||
) |
Definition at line 738 of file sv_freezetag.qc.
References cmd_name, M_ARGV, round_handler_IsActive, round_handler_IsRoundStarted, and shuffleteams_on_reset_map.
MUTATOR_HOOKFUNCTION | ( | ft | , |
Scores_CountFragsRemaining | |||
) |
Definition at line 746 of file sv_freezetag.qc.
Referenced by freezetag_CheckTeams(), and freezetag_CheckWinner().
Referenced by freezetag_CheckTeams(), and MUTATOR_HOOKFUNCTION().
void | ( | entity | this | ) |
float autocvar_g_freezetag_frozen_maxtime |
Definition at line 6 of file sv_freezetag.qc.
Referenced by freezetag_Freeze(), and MUTATOR_HOOKFUNCTION().
float autocvar_g_freezetag_revive_clearspeed |
Definition at line 7 of file sv_freezetag.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_freezetag_round_timelimit |
Definition at line 8 of file sv_freezetag.qc.
Referenced by freezetag_CheckWinner(), and freezetag_Initialize().
int autocvar_g_freezetag_teams_override |
Definition at line 10 of file sv_freezetag.qc.
Referenced by freezetag_Initialize().
float autocvar_g_freezetag_warmup |
Definition at line 11 of file sv_freezetag.qc.
Referenced by freezetag_CheckWinner(), and freezetag_Initialize().
float autocvar_g_ft_start_ammo_cells = 180 |
Definition at line 18 of file sv_freezetag.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_ft_start_ammo_fuel = 0 |
Definition at line 20 of file sv_freezetag.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_ft_start_ammo_nails = 320 |
Definition at line 16 of file sv_freezetag.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_ft_start_ammo_plasma = 180 |
Definition at line 19 of file sv_freezetag.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_ft_start_ammo_rockets = 160 |
Definition at line 17 of file sv_freezetag.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_ft_start_ammo_shells = 60 |
Definition at line 15 of file sv_freezetag.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_ft_start_armor = 100 |
Definition at line 14 of file sv_freezetag.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_ft_start_health = 100 |
Definition at line 13 of file sv_freezetag.qc.
Referenced by MUTATOR_HOOKFUNCTION().