Xonotic
|
#include "sv_assault.qh"
#include <server/command/vote.qh>
#include <common/mapobjects/func/breakable.qh>
#include <common/mapobjects/triggers.qh>
#include <common/turrets/sv_turrets.qh>
#include <server/damage.qh>
#include <server/world.qh>
#include <server/spawnpoints.qh>
Go to the source code of this file.
Macros | |
#define | AS_ROUND_DELAY 5 |
Variables | |
entity | as_round |
entity | ent_winning |
entity | sprite |
#define AS_ROUND_DELAY 5 |
Definition at line 12 of file sv_assault.qc.
Referenced by assault_new_round(), and WinningCondition_Assault().
void as_round_think | ( | ) |
Definition at line 219 of file sv_assault.qc.
References as_round, assault_new_round(), and NULL.
Referenced by WinningCondition_Assault().
Definition at line 98 of file sv_assault.qc.
References assault_decreaser, ASSAULT_VALUE_INACTIVE, GetResource(), and RES_HEALTH.
Referenced by target_objective_decrease_activate().
Definition at line 192 of file sv_assault.qc.
References AS_ROUND_DELAY, assault_attacker_team, bprint(), ceil(), cvar_set(), ftos(), g_saved_team, IL_EACH, IS_CLIENT, NUM_TEAM_1, NUM_TEAM_2, ReadyRestart_force(), time, and winning.
Referenced by as_round_think().
Definition at line 44 of file sv_assault.qc.
References assault_attacker_team, ASSAULT_VALUE_INACTIVE, centerprint(), dmg, enemy, FOREACH_CLIENT, GameRules_scoring_add_team, GetResource(), IS_PLAYER, NULL, RES_HEALTH, SetResourceExplicit(), SUB_UseTargets(), and TakeResource().
Referenced by spawnfunc().
Definition at line 38 of file sv_assault.qc.
References ASSAULT_VALUE_INACTIVE, RES_HEALTH, and SetResourceExplicit().
Referenced by spawnfunc().
Definition at line 15 of file sv_assault.qc.
References g_assault_objectivedecreasers, IL_EACH, RES_HEALTH, and SetResourceExplicit().
Referenced by spawnfunc().
Definition at line 152 of file sv_assault.qc.
References g_turrets, IL_EACH, NUM_TEAM_1, NUM_TEAM_2, SUB_UseTargets(), and turret_respawn().
Referenced by assault_roundstart_use_this(), and spawnfunc().
Definition at line 169 of file sv_assault.qc.
References assault_roundstart_use(), and NULL.
Referenced by spawnfunc().
Definition at line 83 of file sv_assault.qc.
References enemy, g_assault_objectives, IL_EACH, NULL, and objerror().
Referenced by spawnfunc(), and target_objective_decrease_findtarget().
Definition at line 174 of file sv_assault.qc.
References enemy, GetResource(), model, nextthink, RES_HEALTH, solid, SOLID_BSP, SOLID_NOT, and time.
Referenced by spawnfunc().
Definition at line 328 of file sv_assault.qc.
References GetResource(), GiveResourceWithLimit(), RES_HEALTH, and RES_LIMIT_NONE.
Referenced by spawnfunc().
Definition at line 544 of file sv_assault.qc.
References assault_attacker_team, HAVOCBOT_AST_ROLE_DEFENSE, HAVOCBOT_AST_ROLE_OFFENSE, havocbot_role_ast_setrole(), IS_DEAD, and team.
Referenced by havocbot_role_ast_defense(), havocbot_role_ast_offense(), and MUTATOR_HOOKFUNCTION().
dprint("waypoints around target were found\n");
Definition at line 393 of file sv_assault.qc.
References best, checkpvs(), entity(), FLOAT_MAX, g_assault_destructibles, havocbot_attack_time, IL_EACH, navigation_routerating(), NULL, origin, radius, time, vector(), view_ofs, and WAYPOINTFLAG_GENERATED.
Referenced by havocbot_role_ast_defense(), and havocbot_role_ast_offense().
Definition at line 494 of file sv_assault.qc.
References havocbot_ast_reset_role(), havocbot_attack_time, havocbot_goalrating_ast_targets(), havocbot_goalrating_enemyplayers(), havocbot_goalrating_items(), havocbot_role_timeout, IS_DEAD, navigation_goalrating_end(), navigation_goalrating_start(), navigation_goalrating_timeout(), navigation_goalrating_timeout_set(), origin, and time.
Referenced by havocbot_role_ast_setrole().
Definition at line 459 of file sv_assault.qc.
References havocbot_ast_reset_role(), havocbot_attack_time, havocbot_goalrating_ast_targets(), havocbot_goalrating_enemyplayers(), havocbot_goalrating_items(), havocbot_role_timeout, IS_DEAD, navigation_goalrating_end(), navigation_goalrating_start(), navigation_goalrating_timeout(), navigation_goalrating_timeout_set(), origin, and time.
Referenced by havocbot_role_ast_setrole().
Definition at line 529 of file sv_assault.qc.
References HAVOCBOT_AST_ROLE_DEFENSE, HAVOCBOT_AST_ROLE_OFFENSE, havocbot_role_ast_defense(), havocbot_role_ast_offense(), and havocbot_role_timeout.
Referenced by havocbot_ast_reset_role().
MUTATOR_HOOKFUNCTION | ( | as | , |
PlayerSpawn | |||
) |
Definition at line 556 of file sv_assault.qc.
References assault_attacker_team, entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | as | , |
TurretSpawn | |||
) |
Definition at line 566 of file sv_assault.qc.
References assault_attacker_team, entity(), FLOAT_MAX, and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | as | , |
VehicleInit | |||
) |
Definition at line 574 of file sv_assault.qc.
References entity(), M_ARGV, and time.
MUTATOR_HOOKFUNCTION | ( | as | , |
HavocBot_ChooseRole | |||
) |
Definition at line 581 of file sv_assault.qc.
References entity(), havocbot_ast_reset_role(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | as | , |
PlayHitsound | |||
) |
Definition at line 589 of file sv_assault.qc.
References entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | as | , |
TeamBalance_CheckAllowedTeams | |||
) |
Definition at line 596 of file sv_assault.qc.
MUTATOR_HOOKFUNCTION | ( | as | , |
CheckRules_World | |||
) |
Definition at line 603 of file sv_assault.qc.
References M_ARGV, and WinningCondition_Assault().
MUTATOR_HOOKFUNCTION | ( | as | , |
ReadLevelCvars | |||
) |
Definition at line 609 of file sv_assault.qc.
References sv_ready_restart_after_countdown, and warmup_stage.
MUTATOR_HOOKFUNCTION | ( | as | , |
OnEntityPreSpawn | |||
) |
Definition at line 616 of file sv_assault.qc.
References entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | as | , |
ReadyRestart_Deny | |||
) |
Definition at line 630 of file sv_assault.qc.
spawnfunc | ( | info_player_attacker | ) |
Definition at line 283 of file sv_assault.qc.
References g_assault, NUM_TEAM_1, and team.
Referenced by conveyor_think(), door_reset(), func_ladder_think(), SUB_NullThink(), Teleport_Touch(), train_next(), trigger_impulse_touch_radial(), trigger_keylock_touch(), trigger_push_findtarget(), and WarpZone_Projectile_Touch().
spawnfunc | ( | info_player_defender | ) |
spawnfunc | ( | target_objective | ) |
Definition at line 299 of file sv_assault.qc.
References assault_objective_reset(), assault_objective_use(), g_assault, g_assault_objectives, IL_PUSH(), spawn_evalfunc, target_objective_spawn_evalfunc(), and use.
spawnfunc | ( | target_objective_decrease | ) |
Definition at line 310 of file sv_assault.qc.
References assault_objective_decrease_use(), ASSAULT_VALUE_INACTIVE, dmg, enemy, g_assault, g_assault_objectivedecreasers, IL_PUSH(), InitializeEntity(), max_health, NULL, RES_HEALTH, SetResourceExplicit(), target_objective_decrease_findtarget(), and use.
spawnfunc | ( | func_assault_destructible | ) |
Definition at line 344 of file sv_assault.qc.
References assault_attacker_team, destructible_heal(), g_assault, g_assault_destructibles, IL_PUSH(), NUM_TEAM_1, NUM_TEAM_2, spawnflags, and team.
spawnfunc | ( | func_assault_wall | ) |
Definition at line 360 of file sv_assault.qc.
References assault_setenemytoobjective(), assault_wall_think(), g_assault, InitializeEntity(), model, nextthink, setthink, solid, SOLID_BSP, and time.
spawnfunc | ( | target_assault_roundend | ) |
Definition at line 372 of file sv_assault.qc.
References cnt, g_assault, target_assault_roundend_reset(), target_assault_roundend_use(), use, and winning.
spawnfunc | ( | target_assault_roundstart | ) |
Definition at line 382 of file sv_assault.qc.
References assault_attacker_team, assault_roundstart_use(), assault_roundstart_use_this(), g_assault, InitializeEntity(), NUM_TEAM_1, and use.
Definition at line 140 of file sv_assault.qc.
Referenced by spawnfunc().
Definition at line 147 of file sv_assault.qc.
References winning.
Referenced by spawnfunc().
Definition at line 106 of file sv_assault.qc.
References assault_attacker_team, assault_decreaser_sprite_visible(), assault_sprite, entity(), FOREACH_ENTITY_STRING, NULL, owner, SPRITERULE_TEAMPLAY, target, and targetname.
Definition at line 135 of file sv_assault.qc.
References assault_setenemytoobjective().
Referenced by spawnfunc().
Definition at line 28 of file sv_assault.qc.
References ASSAULT_VALUE_INACTIVE, GetResource(), and RES_HEALTH.
Referenced by spawnfunc().
int WinningCondition_Assault | ( | ) |
Definition at line 229 of file sv_assault.qc.
References as_round, AS_ROUND_DELAY, as_round_think(), assault_attacker_team, autocvar_g_campaign, bprint(), ceil(), classname, cvar_set(), entity(), find(), ftos(), NULL, NUM_TEAM_1, NUM_TEAM_2, process_time(), SetWinners(), ST_ASSAULT_OBJECTIVES, team, Team_ColoredFullName, TeamScore_AddToTeam(), time, WINNING_NO, WINNING_YES, and WinningConditionHelper().
Referenced by MUTATOR_HOOKFUNCTION().
entity as_round |
Definition at line 217 of file sv_assault.qc.
Referenced by as_round_think(), and WinningCondition_Assault().
entity ent_winning |
Definition at line 218 of file sv_assault.qc.
entity sprite |
Definition at line 11 of file sv_assault.qc.
Referenced by dom_controlpoint_setup(), dompoint_captured(), dompointtouch(), monster_changeteam(), Monster_Damage(), Monster_Frozen_Think(), Monster_Remove(), Monster_Spawn_Setup(), ons_ControlPoint_Reset(), ons_ControlPoint_Setup(), ons_GeneratorDamage(), ons_GeneratorReset(), ons_GeneratorSetup(), and SpawnGoal().