|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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 713 of file sv_freezetag.qc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 162 of file sv_freezetag.qc.
References entity(), GameRules_scoring_add, IS_PLAYER, and SAME_TEAM.
Referenced by freezetag_Freeze(), and MUTATOR_HOOKFUNCTION().
| bool freezetag_CheckTeams | ( | ) |
Definition at line 52 of file sv_freezetag.qc.
References freezetag_teams, missing_teams_mask, NUM_TEAMS, NumTeams(), Team_GetNumberOfAlivePlayers(), Team_GetNumberOfAliveTeams(), Team_GetTeamFromIndex(), Team_IndexToBit(), and total_players.
Referenced by freezetag_Initialize().
| bool freezetag_CheckWinner | ( | ) |
Definition at line 73 of file sv_freezetag.qc.
References APP_TEAM_NUM, autocvar_g_freezetag_round_enddelay, autocvar_g_freezetag_round_timelimit, autocvar_g_freezetag_warmup, 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_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, GetResource(), IS_PLAYER, IS_REAL_CLIENT, NUM_TEAMS, STAT, Team_GetNumberOfAlivePlayers(), Team_GetTeamFromIndex(), Team_SetNumberOfAlivePlayers(), and total_players.
Referenced by freezetag_Freeze(), ft_RemovePlayer(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 197 of file sv_freezetag.qc.
References autocvar_g_freezetag_frozen_maxtime, autocvar_g_freezetag_revive_auto, entity(), floor(), FOREACH_CLIENT, freezetag_Add_Score(), freezetag_count_alive_players(), freezetag_Ice_Think(), g_bot_targets, IL_REMOVE(), IS_PLAYER, MAX_WEAPONSLOTS, NULL, random(), RemoveGrapplingHooks(), RemoveHook(), setmodel, SetResource(), setthink, STAT, Team_ColorRGB(), time, waypointsprite_attached, WaypointSprite_Spawn(), and weaponentities.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 183 of file sv_freezetag.qc.
References entity(), nextthink, origin, owner, STAT, time, and vector.
Referenced by freezetag_Freeze().
| void freezetag_Initialize | ( | ) |
Definition at line 1022 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 288 of file sv_freezetag.qc.
References entity(), IS_DEAD, IS_PLAYER, and STAT.
Referenced by freezetag_Initialize().
Definition at line 136 of file sv_freezetag.qc.
References entity(), FOREACH_CLIENT, GetResource(), IS_PLAYER, NULL, SAME_TEAM, and STAT.
Referenced by freezetag_LastPlayerForTeam_Notify().
Definition at line 151 of file sv_freezetag.qc.
References entity(), freezetag_LastPlayerForTeam(), round_handler_IsActive, round_handler_IsRoundStarted, and Send_Notification().
Referenced by ft_RemovePlayer(), and MUTATOR_HOOKFUNCTION().
Definition at line 250 of file sv_freezetag.qc.
References autocvar_g_balance_pause_health_regen, entity(), FOREACH_CLIENT, g_bot_targets, IL_PUSH(), IS_PLAYER, MAX_WEAPONSLOTS, NULL, RemoveHook(), SetResource(), start_health, STAT, time, WaypointSprite_Kill(), and weaponentities.
Referenced by ft_RemovePlayer(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 404 of file sv_freezetag.qc.
References entity(), freezetag_count_alive_players(), freezetag_LastPlayerForTeam_Notify(), freezetag_Unfreeze(), SetResourceExplicit(), and STAT.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| void havocbot_goalrating_ft_freeplayers | ( | entity | this, |
| float | ratingscale, | ||
| vector | org, | ||
| float | sradius ) |
Definition at line 303 of file sv_freezetag.qc.
References entity(), FLOAT_MAX, FOREACH_CLIENT, GetResource(), IS_PLAYER, navigation_routerating(), NULL, org, SAME_TEAM, STAT, vdist, vector, and vlen2.
Referenced by havocbot_role_ft_freeing(), and havocbot_role_ft_offense().
Definition at line 370 of file sv_freezetag.qc.
References entity(), 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 havocbot_role_ft_offense(), MUTATOR_HOOKFUNCTION(), and void().
Definition at line 334 of file sv_freezetag.qc.
References entity(), FOREACH_CLIENT, 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, STAT, and time.
Referenced by havocbot_role_ft_freeing(), MUTATOR_HOOKFUNCTION(), and void().
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| AccuracyTargetValid | ) |
Definition at line 608 of file sv_freezetag.qc.
References entity(), frag_target, M_ARGV, MUT_ACCADD_INDIFFERENT, MUT_ACCADD_VALID, STAT, and time.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| AllowMobSpawning | ) |
Definition at line 927 of file sv_freezetag.qc.
References M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| BotShouldAttack | ) |
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| BuffTouch | ) |
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| ClientDisconnect | ) |
Definition at line 414 of file sv_freezetag.qc.
References ClientDisconnect, entity(), ft_RemovePlayer(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| ClientKill | ) |
Definition at line 438 of file sv_freezetag.qc.
References ClientKill, entity(), M_ARGV, and STAT.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| Damage_Calculate | ) |
Definition at line 618 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, autocvar_g_frozen_damage_trigger, autocvar_g_frozen_force, autocvar_g_frozen_revive_falldamage, autocvar_g_frozen_revive_falldamage_health, DEAD_NO, DIFF_TEAM, EF_TELEPORT_BIT, entity(), fabs(), frag_damage, frag_force, frag_target, freezetag_Unfreeze(), GetResource(), IS_PLAYER, ITEM_DAMAGE_NEEDKILL, M_ARGV, max(), NULL, RES_ARMOR, SelectSpawnPoint(), Send_Effect(), Send_Notification(), SetResource(), STAT, time, vector, and vlen().
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| FragCenterMessage | ) |
Definition at line 990 of file sv_freezetag.qc.
References CS(), entity(), frag_target, GetResource(), IS_BOT_CLIENT, M_ARGV, ping, RES_ARMOR, Send_Notification(), and STAT.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| GiveFragsForKill | , | ||
| CBC_ORDER_FIRST | ) |
Definition at line 590 of file sv_freezetag.qc.
References CBC_ORDER_FIRST, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| HavocBot_ChooseRole | ) |
Definition at line 959 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 | , |
| ItemTouch | ) |
Definition at line 894 of file sv_freezetag.qc.
References entity(), M_ARGV, MUT_ITEMTOUCH_CONTINUE, MUT_ITEMTOUCH_RETURN, MUTATOR_RETURNVALUE, STAT, and toucher.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| LockWeapon | ) |
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| MakePlayerObserver | ) |
Definition at line 422 of file sv_freezetag.qc.
References entity(), ft_RemovePlayer(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| MonsterValidTarget | ) |
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| PlayerAnim | ) |
Definition at line 562 of file sv_freezetag.qc.
References ANIMSTATE_FROZEN, entity(), M_ARGV, and STAT.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| PlayerDamaged | ) |
Definition at line 602 of file sv_freezetag.qc.
References entity(), frag_target, M_ARGV, and STAT.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| PlayerDied | ) |
Definition at line 445 of file sv_freezetag.qc.
References entity(), freezetag_Unfreeze(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| PlayerDies | ) |
Definition at line 452 of file sv_freezetag.qc.
References entity(), frag_target, freezetag_Add_Score(), freezetag_count_alive_players(), freezetag_Freeze(), freezetag_LastPlayerForTeam_Notify(), freezetag_Unfreeze(), GameRules_scoring_add, IS_PLAYER, ITEM_DAMAGE_NEEDKILL, M_ARGV, NULL, RES_ARMOR, RESPAWN_FORCE, round_handler_CountdownRunning, round_handler_IsActive, SelectSpawnPoint(), Send_Notification(), SetResourceExplicit(), STAT, time, and vec2.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| PlayerPreThink | , | ||
| CBC_ORDER_FIRST | ) |
Definition at line 717 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_g_nades_bonus_score_low, autocvar_sv_eventlog, bound(), CBC_ORDER_FIRST, entity(), FOREACH_CLIENT, frametime, freezetag_count_alive_players(), freezetag_Unfreeze(), ftos(), game_stopped, GameLogEcho(), GameRules_scoring_add, IN_REVIVING_RANGE, IS_PLAYER, M_ARGV, max(), nades_GiveBonus(), NULL, PlayerPreThink, round_handler_IsActive, round_handler_IsRoundStarted, Send_Notification(), SetResourceExplicit(), start_health, STAT, strcat(), strlen, substring(), time, vector, warmup_stage, warmup_start_health, WaypointSprite_UpdateHealth(), WaypointSprite_UpdateMaxHealth(), WaypointSprite_UpdateSprites(), WaypointSprite_UpdateTeamRadar(), WP_FROZEN_COLOR, and WP_REVIVING_COLOR.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| PlayerRegen | ) |
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| PlayerSpawn | ) |
Definition at line 530 of file sv_freezetag.qc.
References entity(), freezetag_count_alive_players(), freezetag_Freeze(), freezetag_Unfreeze(), M_ARGV, NULL, round_handler_IsActive, round_handler_IsRoundStarted, and Send_Notification().
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| PutClientInServer | ) |
Definition at line 557 of file sv_freezetag.qc.
References eliminatedPlayers, and PutClientInServer.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| reset_map_global | ) |
Definition at line 570 of file sv_freezetag.qc.
References FOREACH_CLIENT, freezetag_Unfreeze(), IS_PLAYER, and STAT.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| reset_map_players | ) |
Definition at line 577 of file sv_freezetag.qc.
References CS(), FOREACH_CLIENT, freezetag_count_alive_players(), IS_PLAYER, and PutClientInServer.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| Scores_CountFragsRemaining | ) |
Definition at line 1016 of file sv_freezetag.qc.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| SetStartItems | ) |
Definition at line 912 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_rockets, autocvar_g_ft_start_ammo_shells, autocvar_g_ft_start_armor, autocvar_g_ft_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 | ( | ft | , |
| SetWeaponArena | ) |
Definition at line 984 of file sv_freezetag.qc.
References autocvar_g_freezetag_weaponarena, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| SpectateCopy | ) |
Definition at line 429 of file sv_freezetag.qc.
References entity(), M_ARGV, SpectateCopy(), and STAT.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| SV_ParseServerCommand | ) |
Definition at line 1008 of file sv_freezetag.qc.
References cmd_name, M_ARGV, round_handler_IsActive, round_handler_IsRoundStarted, and shuffleteams_on_reset_map.
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| TeamBalance_CheckAllowedTeams | , | ||
| CBC_ORDER_EXCLUSIVE | ) |
Definition at line 978 of file sv_freezetag.qc.
References CBC_ORDER_EXCLUSIVE, freezetag_teams, M_ARGV, and TeamBalance_CheckAllowedTeams().
| MUTATOR_HOOKFUNCTION | ( | ft | , |
| TurretValidateTarget | ) |
| void | ( | entity | this | ) |
References entity(), havocbot_role_ft_freeing(), and havocbot_role_ft_offense().
| float autocvar_g_freezetag_frozen_maxtime |
Definition at line 6 of file sv_freezetag.qc.
Referenced by freezetag_Freeze(), MUTATOR_HOOKFUNCTION(), 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_enddelay |
Definition at line 12 of file sv_freezetag.qc.
Referenced by freezetag_CheckWinner().
| 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 19 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 17 of file sv_freezetag.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_ft_start_ammo_rockets = 160 |
Definition at line 18 of file sv_freezetag.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_ft_start_ammo_shells = 60 |
Definition at line 16 of file sv_freezetag.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_ft_start_armor = 100 |
Definition at line 15 of file sv_freezetag.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_ft_start_health = 100 |
Definition at line 14 of file sv_freezetag.qc.
Referenced by MUTATOR_HOOKFUNCTION().