|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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 |
| bool | assault_turrets_teamswap_forbidden |
| 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 223 of file sv_assault.qc.
References as_round, assault_new_round(), game_stopped, and NULL.
Referenced by WinningCondition_Assault().
Definition at line 98 of file sv_assault.qc.
References assault_decreaser, ASSAULT_VALUE_INACTIVE, entity(), and GetResource().
Referenced by target_objective_decrease_activate().
Definition at line 196 of file sv_assault.qc.
References AS_ROUND_DELAY, assault_attacker_team, bprint(), ceil(), cvar_set(), entity(), ftos(), g_saved_team, game_starttime, 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, entity(), FOREACH_CLIENT, GameRules_scoring_add_team, GetResource(), IS_PLAYER, NULL, SetResourceExplicit(), SUB_UseTargets(), TakeResource(), waypointsprite_deadlifetime, and WaypointSprite_Disown().
Referenced by spawnfunc().
Definition at line 38 of file sv_assault.qc.
References ASSAULT_VALUE_INACTIVE, entity(), and SetResourceExplicit().
Referenced by spawnfunc().
Definition at line 15 of file sv_assault.qc.
References entity(), g_assault_objectivedecreasers, IL_EACH, and SetResourceExplicit().
Referenced by spawnfunc().
Definition at line 153 of file sv_assault.qc.
References assault_turrets_teamswap_forbidden, entity(), 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 173 of file sv_assault.qc.
References assault_roundstart_use(), entity(), and NULL.
Referenced by spawnfunc().
Definition at line 83 of file sv_assault.qc.
References enemy, entity(), g_assault_objectives, IL_EACH, NULL, and objerror.
Referenced by spawnfunc(), and target_objective_decrease_findtarget().
Definition at line 178 of file sv_assault.qc.
References enemy, entity(), GetResource(), mdl, model, nextthink, solid, SOLID_BSP, SOLID_NOT, and time.
Referenced by spawnfunc().
Definition at line 333 of file sv_assault.qc.
References entity(), func_breakable_colormod(), GetResource(), GiveResourceWithLimit(), RES_LIMIT_NONE, and WaypointSprite_UpdateHealth().
Referenced by spawnfunc().
Definition at line 549 of file sv_assault.qc.
References assault_attacker_team, entity(), 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(), MUTATOR_HOOKFUNCTION(), and void().
dprint("waypoints around target were found\n");
Definition at line 398 of file sv_assault.qc.
References best, entity(), FLOAT_MAX, FOREACH_ENTITY_RADIUS, g_assault_destructibles, IL_EACH, NULL, radius, vector, and WAYPOINTFLAG_GENERATED.
Referenced by havocbot_role_ast_defense(), and havocbot_role_ast_offense().
Definition at line 499 of file sv_assault.qc.
References entity(), 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(), and void().
Definition at line 464 of file sv_assault.qc.
References entity(), 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(), and void().
Definition at line 534 of file sv_assault.qc.
References entity(), 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 | , |
| CheckRules_World | ) |
Definition at line 608 of file sv_assault.qc.
References CheckRules_World(), M_ARGV, and WinningCondition_Assault().
| MUTATOR_HOOKFUNCTION | ( | as | , |
| HavocBot_ChooseRole | ) |
Definition at line 586 of file sv_assault.qc.
References entity(), havocbot_ast_reset_role(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | as | , |
| OnEntityPreSpawn | ) |
Definition at line 621 of file sv_assault.qc.
| MUTATOR_HOOKFUNCTION | ( | as | , |
| PlayerSpawn | ) |
Definition at line 561 of file sv_assault.qc.
References assault_attacker_team, entity(), M_ARGV, and Send_Notification().
| MUTATOR_HOOKFUNCTION | ( | as | , |
| PlayHitsound | ) |
| MUTATOR_HOOKFUNCTION | ( | as | , |
| ReadLevelCvars | ) |
Definition at line 614 of file sv_assault.qc.
References sv_ready_restart_after_countdown, and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | as | , |
| ReadyRestart_Deny | ) |
Definition at line 635 of file sv_assault.qc.
References assault_turrets_teamswap_forbidden, and autocvar_g_campaign.
| MUTATOR_HOOKFUNCTION | ( | as | , |
| TeamBalance_CheckAllowedTeams | ) |
Definition at line 601 of file sv_assault.qc.
References BIT, M_ARGV, and TeamBalance_CheckAllowedTeams().
| MUTATOR_HOOKFUNCTION | ( | as | , |
| TurretSpawn | ) |
Definition at line 571 of file sv_assault.qc.
References assault_attacker_team, entity(), FLOAT_MAX, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | as | , |
| VehicleInit | ) |
| spawnfunc | ( | func_assault_destructible | ) |
Definition at line 349 of file sv_assault.qc.
References assault_attacker_team, destructible_heal(), func_breakable_setup(), g_assault, g_assault_destructibles, IL_PUSH(), NUM_TEAM_1, NUM_TEAM_2, spawnflags, and team.
| spawnfunc | ( | func_assault_wall | ) |
Definition at line 365 of file sv_assault.qc.
References assault_setenemytoobjective(), assault_wall_think(), g_assault, InitializeEntity(), INITPRIO_FINDTARGET, mdl, model, nextthink, setthink, solid, SOLID_BSP, and time.
| spawnfunc | ( | info_player_attacker | ) |
Definition at line 288 of file sv_assault.qc.
References g_assault, NUM_TEAM_1, and team.
| spawnfunc | ( | info_player_defender | ) |
Definition at line 296 of file sv_assault.qc.
References g_assault, NUM_TEAM_2, and team.
| spawnfunc | ( | target_assault_roundend | ) |
Definition at line 377 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 387 of file sv_assault.qc.
References assault_attacker_team, assault_roundstart_use(), assault_roundstart_use_this(), g_assault, InitializeEntity(), INITPRIO_FINDTARGET, NUM_TEAM_1, and use.
| spawnfunc | ( | target_objective | ) |
Definition at line 304 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 315 of file sv_assault.qc.
References assault_objective_decrease_use(), ASSAULT_VALUE_INACTIVE, dmg, enemy, g_assault, g_assault_objectivedecreasers, IL_PUSH(), InitializeEntity(), INITPRIO_FINDTARGET, max_health, NULL, SetResourceExplicit(), target_objective_decrease_findtarget(), and use.
Definition at line 140 of file sv_assault.qc.
References cnt, entity(), and winning.
Referenced by spawnfunc().
Definition at line 147 of file sv_assault.qc.
References entity(), and 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, GetResource(), NULL, owner, SPRITERULE_TEAMPLAY, target, targetname, waypointsprite_deadlifetime, WaypointSprite_Disown(), WaypointSprite_SpawnFixed(), WaypointSprite_UpdateHealth(), WaypointSprite_UpdateMaxHealth(), WaypointSprite_UpdateRule(), and WaypointSprite_UpdateSprites().
Definition at line 135 of file sv_assault.qc.
References assault_setenemytoobjective(), and entity().
Referenced by spawnfunc().
Definition at line 28 of file sv_assault.qc.
References ASSAULT_VALUE_INACTIVE, entity(), GetResource(), and vector.
Referenced by spawnfunc().
| int WinningCondition_Assault | ( | ) |
Definition at line 233 of file sv_assault.qc.
References as_round, AS_ROUND_DELAY, as_round_think(), assault_attacker_team, autocvar_g_campaign, autocvar_timelimit, bprint(), ceil(), classname, cvar_set(), entity(), find(), ftos(), game_starttime, game_stopped, NULL, NUM_TEAM_1, NUM_TEAM_2, process_time(), Send_Notification(), 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 221 of file sv_assault.qc.
Referenced by as_round_think(), and WinningCondition_Assault().
| bool assault_turrets_teamswap_forbidden |
Definition at line 152 of file sv_assault.qc.
Referenced by assault_roundstart_use(), and MUTATOR_HOOKFUNCTION().
| entity ent_winning |
Definition at line 222 of file sv_assault.qc.
| entity sprite |
Definition at line 11 of file sv_assault.qc.
Referenced by defrag_waypointsprites(), dom_controlpoint_setup(), dompoint_captured(), dompointtouch(), func_breakable_behave_restore(), func_breakable_damage(), monster_changeteam(), Monster_Damage(), Monster_Remove(), Monster_Spawn_Setup(), ons_ControlPoint_Reset(), ons_ControlPoint_Setup(), ons_GeneratorDamage(), ons_GeneratorReset(), ons_GeneratorSetup(), spawnfunc(), and SpawnGoal().