Xonotic
|
#include "sv_onslaught.qh"
#include "sv_controlpoint.qh"
#include "sv_generator.qh"
#include <server/bot/api.qh>
#include <server/campaign.qh>
#include <server/command/vote.qh>
#include <server/damage.qh>
#include <server/items/items.qh>
#include <server/world.qh>
#include <common/mapobjects/defs.qh>
#include <common/mapobjects/triggers.qh>
Go to the source code of this file.
Definition at line 45 of file sv_onslaught.qc.
References angles, and origin.
Referenced by ons_camSetup().
Definition at line 1270 of file sv_onslaught.qc.
References best, BIT, checkpvs(), entity(), FLOAT_MAX, FOREACH_CLIENT, ftos(), g_waypoints, havocbot_attack_time, havocbot_ons_target, havocbot_role_ons_offense(), IL_EACH, IS_PLAYER, LOG_DEBUG, navigation_routerating(), netname, NULL, ons_worldcplist, origin, radius, SAME_TEAM, team, time, vdist, view_ofs, and vtos().
Referenced by havocbot_role_ons_offense().
Definition at line 1372 of file sv_onslaught.qc.
References checkpvs(), entity(), FLOAT_MAX, g_waypoints, havocbot_attack_time, IL_EACH, LOG_DEBUG, navigation_routerating(), NULL, ons_worldgeneratorlist, origin, SAME_TEAM, time, vdist, and view_ofs.
Referenced by havocbot_role_ons_offense().
Definition at line 1472 of file sv_onslaught.qc.
References HAVOCBOT_ONS_ROLE_OFFENSE, havocbot_ons_target, havocbot_role_ons_setrole(), IS_DEAD, and NULL.
Referenced by havocbot_role_ons_assistant(), havocbot_role_ons_defense(), havocbot_role_ons_offense(), and MUTATOR_HOOKFUNCTION().
Definition at line 1462 of file sv_onslaught.qc.
References havocbot_ons_reset_role().
Referenced by havocbot_role_ons_setrole().
Definition at line 1467 of file sv_onslaught.qc.
References havocbot_ons_reset_role().
Referenced by havocbot_role_ons_setrole().
Definition at line 1427 of file sv_onslaught.qc.
References havocbot_attack_time, havocbot_goalrating_enemyplayers(), havocbot_goalrating_items(), havocbot_goalrating_ons_controlpoints_attack(), havocbot_goalrating_ons_generator_attack(), havocbot_ons_reset_role(), havocbot_role_timeout, IS_DEAD, navigation_goalrating_end(), navigation_goalrating_start(), navigation_goalrating_timeout(), navigation_goalrating_timeout_set(), origin, and time.
Referenced by havocbot_goalrating_ons_controlpoints_attack(), and havocbot_role_ons_setrole().
Definition at line 1248 of file sv_onslaught.qc.
References HAVOCBOT_ONS_ROLE_ASSISTANT, HAVOCBOT_ONS_ROLE_DEFENSE, HAVOCBOT_ONS_ROLE_OFFENSE, havocbot_role_ons_assistant(), havocbot_role_ons_defense(), havocbot_role_ons_offense(), havocbot_role_timeout, LOG_DEBUG, and netname.
Referenced by havocbot_ons_reset_role().
MUTATOR_HOOKFUNCTION | ( | ons | , |
reset_map_global | |||
) |
Definition at line 1637 of file sv_onslaught.qc.
References FOREACH_CLIENT, IS_PLAYER, and PutClientInServer().
MUTATOR_HOOKFUNCTION | ( | ons | , |
ClientDisconnect | |||
) |
Definition at line 1648 of file sv_onslaught.qc.
References entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | ons | , |
MakePlayerObserver | |||
) |
Definition at line 1655 of file sv_onslaught.qc.
References entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | ons | , |
PlayerSpawn | |||
) |
Definition at line 1662 of file sv_onslaught.qc.
References autocvar_g_onslaught_spawn_at_controlpoints, autocvar_g_onslaught_spawn_at_controlpoints_chance, autocvar_g_onslaught_spawn_at_controlpoints_random, autocvar_g_onslaught_spawn_at_generator, autocvar_g_onslaught_spawn_at_generator_chance, autocvar_g_onslaught_spawn_at_generator_random, autocvar_g_onslaught_spawn_choose, autocvar_g_onslaught_teleport_radius, entity(), M_ARGV, MOVE_NOMONSTERS, MOVE_NORMAL, normalize(), NULL, ons_stalemate, ons_Teleport(), ons_worldcplist, ons_worldgeneratorlist, RAD2DEG, random(), RandomSelection_AddEnt, RandomSelection_chosen_ent, RandomSelection_Init(), round_handler_IsRoundStarted, SAME_TEAM, setorigin(), trace_fraction, trace_startsolid, vector(), and vlen2.
MUTATOR_HOOKFUNCTION | ( | ons | , |
PlayerDies | |||
) |
Definition at line 1796 of file sv_onslaught.qc.
References autocvar_g_onslaught_spawn_choose, entity(), M_ARGV, ons_Count_SelfControlPoints(), ons_worldcplist, ons_worldgeneratorlist, and stuffcmd.
MUTATOR_HOOKFUNCTION | ( | ons | , |
MonsterMove | |||
) |
Definition at line 1818 of file sv_onslaught.qc.
References entity(), find(), M_ARGV, NULL, and targetname.
MUTATOR_HOOKFUNCTION | ( | ons | , |
MonsterSpawn | |||
) |
Definition at line 1847 of file sv_onslaught.qc.
References entity(), InitializeEntity(), M_ARGV, ons_MonsterSpawn_Delayed(), and spawn().
MUTATOR_HOOKFUNCTION | ( | ons | , |
TurretSpawn | |||
) |
Definition at line 1877 of file sv_onslaught.qc.
References entity(), InitializeEntity(), M_ARGV, ons_TurretSpawn_Delayed(), and spawn().
MUTATOR_HOOKFUNCTION | ( | ons | , |
HavocBot_ChooseRole | |||
) |
Definition at line 1888 of file sv_onslaught.qc.
References entity(), havocbot_ons_reset_role(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | ons | , |
TeamBalance_CheckAllowedTeams | |||
) |
Definition at line 1896 of file sv_onslaught.qc.
References entity(), M_ARGV, ons_worldgeneratorlist, Team_IsValidTeam(), and Team_TeamToBit().
MUTATOR_HOOKFUNCTION | ( | ons | , |
SpectateCopy | |||
) |
Definition at line 1910 of file sv_onslaught.qc.
References entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | ons | , |
SV_ParseClientCommand | |||
) |
Definition at line 1918 of file sv_onslaught.qc.
References argv(), autocvar_g_onslaught_click_radius, autocvar_g_onslaught_teleport_radius, cmd_argc, cmd_name, entity(), GetResource(), IS_PLAYER, M_ARGV, MUTATOR_RETURNVALUE, NULL, ons_Nearest_ControlPoint(), ons_Nearest_ControlPoint_2D(), ons_Teleport(), RES_HEALTH, RESPAWN_FORCE, sprint(), stof(), and vector().
MUTATOR_HOOKFUNCTION | ( | ons | , |
PlayerUseKey | |||
) |
Definition at line 1986 of file sv_onslaught.qc.
References autocvar_g_onslaught_teleport_radius, entity(), IS_DEAD, M_ARGV, MUTATOR_RETURNVALUE, ons_Nearest_ControlPoint(), stuffcmd, and time.
MUTATOR_HOOKFUNCTION | ( | ons | , |
PlayHitsound | |||
) |
Definition at line 2003 of file sv_onslaught.qc.
References entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | ons | , |
SendWaypoint | |||
) |
Definition at line 2011 of file sv_onslaught.qc.
References entity(), GetResource(), M_ARGV, ons_ControlPoint_Attackable(), RES_HEALTH, SAME_TEAM, and to.
MUTATOR_HOOKFUNCTION | ( | ons | , |
TurretValidateTarget | |||
) |
Definition at line 2038 of file sv_onslaught.qc.
References entity(), M_ARGV, and substring().
MUTATOR_HOOKFUNCTION | ( | ons | , |
TurretThink | |||
) |
Definition at line 2051 of file sv_onslaught.qc.
References entity(), find(), M_ARGV, NULL, targetname, and turret_respawn().
Referenced by Onslaught_CheckWinner(), and Onslaught_count_generators().
Definition at line 856 of file sv_onslaught.qc.
References cam, clientcamera_send(), cos(), DEG2RAD, dir, FOREACH_CLIENT, MOVE_WORLDONLY, MSG_ALL, origin, setorigin(), sin(), trace_fraction, vec2, vector(), WriteAngle(), and WriteByte().
Referenced by ons_GeneratorDamage().
Definition at line 56 of file sv_onslaught.qc.
References enemy, entity(), ons_ControlPoint_Attackable(), and SAME_TEAM.
Referenced by ons_CaptureShield_Spawn().
Definition at line 88 of file sv_onslaught.qc.
References colormap, enemy, and team.
Referenced by ons_CaptureShield_Spawn().
Definition at line 94 of file sv_onslaught.qc.
References colormap, EF_ADDITIVE, entity(), g_onsshields, IL_PUSH(), maxs, mins, MOVETYPE_NOCLIP, ons_CaptureShield_Customize(), ons_CaptureShield_Reset(), ons_CaptureShield_Touch(), origin, scale, set_movetype(), setmodel, setorigin(), SOLID_TRIGGER, and team.
Referenced by ons_DelayedControlPoint_Setup(), and ons_DelayedGeneratorSetup().
Definition at line 66 of file sv_onslaught.qc.
References absmax, absmin, Damage(), DMG_NOWEP, enemy, IS_PLAYER, IS_REAL_CLIENT, normalize(), ons_captureshield_force, ons_ControlPoint_Attackable(), SAME_TEAM, SND, and vector().
Referenced by ons_CaptureShield_Spawn().
Definition at line 330 of file sv_onslaught.qc.
References ons_ControlPoint_CanBeLinked().
Referenced by MUTATOR_HOOKFUNCTION(), ons_CaptureShield_Customize(), ons_CaptureShield_Touch(), ons_ControlPoint_Touch(), and ons_ControlPoint_Waypoint().
Definition at line 322 of file sv_onslaught.qc.
References BIT.
Referenced by ons_ControlPoint_Attackable(), ons_ControlPoint_Icon_BuildThink(), and ons_ControlPoint_UpdateSprite().
Definition at line 535 of file sv_onslaught.qc.
References APP_TEAM_NUM, ATTEN_NORM, autocvar_g_onslaught_cp_regen, CH_TRIGGER, count, CPSF_SETUP, CPSF_STATUS, EFFECT_CAP(), entity(), GameRules_scoring_add, GameRules_scoring_add_team, GetResource(), GiveResource(), IS_PLAYER, max_health, nextthink, NULL, ons_ControlPoint_CanBeLinked(), ons_ControlPoint_Icon_Think(), ONS_CP_THINKRATE, onslaught_controlpoint_icon_link(), onslaught_updatelinks(), origin, owner, random(), randomvec(), RES_HEALTH, setmodel, SetResourceExplicit(), setthink, solid, SOLID_BBOX, sound, SUB_UseTargets(), time, and VOL_BASE.
Referenced by ons_ControlPoint_Icon_Spawn().
void ons_ControlPoint_Icon_Damage | ( | entity | this, |
entity | inflictor, | ||
entity | attacker, | ||
float | damage, | ||
int | deathtype, | ||
.entity | weaponentity, | ||
vector | hitloc, | ||
vector | force | ||
) |
Definition at line 377 of file sv_onslaught.qc.
References APP_TEAM_NUM, ATTEN_NORM, CH_TRIGGER, count, CPSF_STATUS, GameRules_scoring_add, GetResource(), IS_PLAYER, NULL, ONS_CP_THINKRATE, ons_notification_time, onslaught_updatelinks(), origin, owner, pain_finished, pointparticles, random(), RES_HEALTH, setmodel, SND, sound, SUB_UseTargets(), TakeResource(), team, time, and VOL_BASE.
Referenced by ons_ControlPoint_Icon_Spawn(), and ons_ControlPoint_Icon_Think().
Definition at line 452 of file sv_onslaught.qc.
References CPSF_STATUS, GetResource(), GiveResourceWithLimit(), ONS_CP_THINKRATE, RES_HEALTH, RES_LIMIT_NONE, and time.
Referenced by ons_ControlPoint_Icon_Spawn().
Definition at line 600 of file sv_onslaught.qc.
References ATTEN_NORM, autocvar_g_onslaught_cp_buildhealth, autocvar_g_onslaught_cp_buildtime, autocvar_g_onslaught_cp_health, CH_TRIGGER, CPICON_MAX, CPICON_MIN, CPICON_OFFSET, DAMAGE_AIM, EFFECT_FLAG_TOUCH(), entity(), g_bot_targets, GetResource(), IL_PUSH(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Icon_Heal(), ONS_CP_THINKRATE, onslaught_controlpoint_icon_link(), RES_HEALTH, setorigin(), SetResourceExplicit(), SOLID_NOT, sound, SPRITERULE_TEAMPLAY, time, and VOL_BASE.
Referenced by ons_ControlPoint_Touch().
Definition at line 469 of file sv_onslaught.qc.
References ATTEN_NORM, autocvar_g_onslaught_cp_proxydecap, autocvar_g_onslaught_cp_proxydecap_distance, autocvar_g_onslaught_cp_proxydecap_dps, CH_PAIN, count, CPSF_STATUS, DMG_NOWEP, FOREACH_CLIENT, GetResource(), GiveResourceWithLimit(), IS_DEAD, IS_PLAYER, max_health, nextthink, NULL, ons_ControlPoint_Icon_Damage(), ONS_CP_THINKRATE, origin, owner, pain_finished, random(), randompos(), RES_HEALTH, sound, SUB_UseTargets(), time, vdist, and VOL_BASE.
Referenced by ons_ControlPoint_Icon_BuildThink().
Definition at line 738 of file sv_onslaught.qc.
References colormap, goalentity, iscaptured, islinked, isshielded, nextthink, NULL, ons_ControlPoint_Think(), ONS_CP_THINKRATE, ons_toucher, onslaught_updatelinks(), setmodel, setthink, sprite, SPRITERULE_TEAMPLAY, SUB_UseTargets(), team, and time.
Referenced by ons_ControlPoint_Setup().
Definition at line 774 of file sv_onslaught.qc.
References CPGEN_WAYPOINT_OFFSET, droptofloor, InitializeEntity(), MOVETYPE_NONE, MOVETYPE_TOSS, ons_ControlPoint_Reset(), ons_ControlPoint_Think(), ons_ControlPoint_Touch(), ONS_CP_THINKRATE, ons_DelayedControlPoint_Setup(), ons_worldcplist, set_movetype(), setmodel, setorigin(), setthink, SOLID_BBOX, sprite, SPRITERULE_TEAMPLAY, and time.
Referenced by spawnfunc().
Definition at line 732 of file sv_onslaught.qc.
References nextthink, ONS_CP_THINKRATE, and time.
Referenced by ons_ControlPoint_Reset(), and ons_ControlPoint_Setup().
Definition at line 695 of file sv_onslaught.qc.
References autocvar_g_onslaught_allow_vehicle_touch, IS_DEAD, IS_PLAYER, IS_VEHICLE, iscaptured, ons_ControlPoint_Attackable(), ons_ControlPoint_Icon_Spawn(), ons_toucher, onslaught_updatelinks(), rint(), SAME_TEAM, and time.
Referenced by ons_ControlPoint_Setup().
Definition at line 651 of file sv_onslaught.qc.
References colormapPaletteColor, entity(), GetResource(), NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, NUM_TEAM_4, ons_ControlPoint_CanBeLinked(), ons_ControlPoint_Waypoint(), RES_HEALTH, and s1.
Referenced by onslaught_updatelinks().
Definition at line 635 of file sv_onslaught.qc.
References ons_ControlPoint_Attackable().
Referenced by ons_ControlPoint_UpdateSprite().
find the number of control points and generators in the same team as this
Definition at line 1557 of file sv_onslaught.qc.
References entity(), ons_worldcplist, ons_worldgeneratorlist, and SAME_TEAM.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 764 of file sv_onslaught.qc.
References ons_CaptureShield_Spawn(), and onslaught_updatelinks().
Referenced by ons_ControlPoint_Setup().
Definition at line 1044 of file sv_onslaught.qc.
References bot_basewaypoint, generator_send(), nearestwaypoint, nearestwaypointtimeout, ons_CaptureShield_Spawn(), onslaught_updatelinks(), origin, and waypoint_spawnforitem_force().
Referenced by ons_GeneratorSetup().
Definition at line 2143 of file sv_onslaught.qc.
References autocvar_g_onslaught_round_timelimit, autocvar_g_onslaught_warmup, ons_ScoreRules(), Onslaught_CheckPlayers(), Onslaught_CheckWinner(), Onslaught_RoundStart(), round_handler_Init(), and round_handler_Spawn().
Referenced by ons_Initialize().
Definition at line 304 of file sv_onslaught.qc.
References enemy, etos(), find(), goalentity, LOG_DEBUG, nextthink, NULL, objerror(), ons_Link_CheckUpdate(), setthink, target, target2, targetname, and time.
Referenced by spawnfunc().
Definition at line 829 of file sv_onslaught.qc.
References colormapPaletteColor, entity(), ons_Generator_Waypoint(), and s1.
Referenced by onslaught_updatelinks().
Definition at line 822 of file sv_onslaught.qc.
Referenced by ons_Generator_UpdateSprite().
void ons_GeneratorDamage | ( | entity | this, |
entity | inflictor, | ||
entity | attacker, | ||
float | damage, | ||
int | deathtype, | ||
.entity | weaponentity, | ||
vector | hitloc, | ||
vector | force | ||
) |
Definition at line 892 of file sv_onslaught.qc.
References APP_TEAM_NUM, ATTEN_NORM, bound(), CH_TRIGGER, count, DAMAGE_NO, FOREACH_CLIENT, frame, func_null(), GameRules_scoring_add, GetResource(), GSF_STATUS, IS_PLAYER, IS_REAL_CLIENT, iscaptured, islinked, isshielded, lasthealth, max_health, nextthink, NULL, ons_camSetup(), onslaught_updatelinks(), pain_finished, random(), RES_HEALTH, round_handler_IsRoundStarted, SAME_TEAM, setthink, SND, sound, sprite, takedamage, TakeResource(), team, time, VOL_BASE, and warmup_stage.
Referenced by ons_GeneratorReset(), and ons_GeneratorSetup().
Definition at line 978 of file sv_onslaught.qc.
References bound(), GetResource(), GiveResourceWithLimit(), GSF_STATUS, RES_HEALTH, and RES_LIMIT_NONE.
Referenced by ons_GeneratorReset(), and ons_GeneratorSetup().
Definition at line 1015 of file sv_onslaught.qc.
References autocvar_g_onslaught_gen_health, bot_attack, DAMAGE_AIM, g_bot_targets, GEN_THINKRATE, generator_send(), GetResource(), GSF_SETUP, GSF_STATUS, IL_CONTAINS(), IL_PUSH(), iscaptured, islinked, isshielded, lasthealth, max_health, nextthink, ons_GeneratorDamage(), ons_GeneratorHeal(), ons_GeneratorThink(), onslaught_updatelinks(), RES_HEALTH, SetResourceExplicit(), setthink, sprite, SPRITERULE_TEAMPLAY, takedamage, team, team_saved, and time.
Referenced by ons_GeneratorSetup().
Definition at line 1070 of file sv_onslaught.qc.
References autocvar_g_onslaught_gen_health, CPGEN_SPAWN_OFFSET, CPGEN_WAYPOINT_OFFSET, DAMAGE_AIM, droptofloor, g_bot_targets, g_saved_team, GEN_THINKRATE, GENERATOR_MAX, GENERATOR_MIN, GetResource(), IL_PUSH(), InitializeEntity(), MOVETYPE_NONE, ons_DelayedGeneratorSetup(), ons_GeneratorDamage(), ons_GeneratorHeal(), ons_GeneratorReset(), ons_GeneratorThink(), ons_worldgeneratorlist, onslaught_generator_touch(), RES_HEALTH, set_movetype(), setorigin(), SetResourceExplicit(), setthink, SOLID_BBOX, sprite, SPRITERULE_TEAMPLAY, Team_ColoredFullName, and time.
Referenced by spawnfunc().
Definition at line 994 of file sv_onslaught.qc.
References APP_TEAM_NUM, ATTEN_NONE, CHAN_AUTO, FOREACH_CLIENT, GEN_THINKRATE, IS_PLAYER, IS_REAL_CLIENT, isshielded, msg_entity, MSG_ONE, nextthink, SAME_TEAM, SND, team, time, VOL_BASE, and wait.
Referenced by ons_GeneratorReset(), and ons_GeneratorSetup().
void ons_Initialize | ( | ) |
Definition at line 2151 of file sv_onslaught.qc.
References autocvar_g_onslaught_shield_force, cam, g_onslaught, g_onsshields, IL_NEW, InitializeEntity(), NULL, ons_captureshield_force, and ons_DelayedInit().
Referenced by REGISTER_MUTATOR().
Definition at line 285 of file sv_onslaught.qc.
References clientcolors, enemy, goalentity, nextthink, and time.
Referenced by ons_DelayedLinkSetup().
Definition at line 266 of file sv_onslaught.qc.
References clientcolors, enemy, goalentity, and WriteByte().
Referenced by spawnfunc().
Definition at line 1827 of file sv_onslaught.qc.
References entity(), find(), NULL, owner, and target.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 1489 of file sv_onslaught.qc.
References entity(), NULL, ons_worldcplist, ons_worldgeneratorlist, SAME_TEAM, vdist, and vlen2.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 1516 of file sv_onslaught.qc.
References entity(), NULL, ons_worldcplist, ons_worldgeneratorlist, SAME_TEAM, vector(), and vlen().
Referenced by MUTATOR_HOOKFUNCTION().
void ons_ScoreRules | ( | ) |
Definition at line 2131 of file sv_onslaught.qc.
References entity(), GameRules_scoring, NULL, SFL_SORT_PRIO_PRIMARY, SFL_SORT_PRIO_SECONDARY, ST_ONS_CAPS, TeamBalance_CheckAllowedTeams(), TeamBalance_Destroy(), TeamBalance_GetAllowedTeams(), and teams.
Referenced by ons_DelayedInit().
Teleport player to a random position near tele_target if tele_effects is true, teleport sound+particles are created return false on failure.
Definition at line 1579 of file sv_onslaught.qc.
References ATTEN_NORM, autocvar_g_onslaught_teleport_wait, bot_aim_reset(), CH_TRIGGER, cos(), IS_BOT_CLIENT, M_PI, makevectors, MOVE_NOMONSTERS, MOVE_NORMAL, RAD2DEG, random(), setorigin(), sin(), sound, time, trace_fraction, trace_startsolid, v_forward, vector(), and VOL_BASE.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 1856 of file sv_onslaught.qc.
References ACTIVE_NOT, entity(), find(), NULL, owner, and target.
Referenced by MUTATOR_HOOKFUNCTION().
bool Onslaught_CheckPlayers | ( | ) |
Definition at line 1224 of file sv_onslaught.qc.
Referenced by ons_DelayedInit().
bool Onslaught_CheckWinner | ( | ) |
Definition at line 1147 of file sv_onslaught.qc.
References APP_TEAM_NUM, ATTEN_NONE, autocvar__campaign_testrun, autocvar_g_campaign, autocvar_g_onslaught_round_timelimit, autocvar_g_onslaught_warmup, autocvar_timelimit_suddendeath, CH_INFO, Damage(), DIFF_TEAM, DMG_NOWEP, entity(), FOREACH_CLIENT, IS_PLAYER, max(), nades_Clear(), NULL, ons_stalemate, ons_worldcplist, ons_worldgeneratorlist, Onslaught_count_generators(), round_handler_GetEndTime, round_handler_Init(), SND, sound, ST_ONS_CAPS, Team_GetWinnerTeam_WithOwnedItems(), TeamScore_AddToTeam(), time, VOL_BASE, and wpforenemy_announced.
Referenced by ons_DelayedInit().
Definition at line 35 of file sv_controlpoint.qc.
References cpicon_send(), setthink, sys_frametime, and time.
Referenced by ons_ControlPoint_Icon_BuildThink(), and ons_ControlPoint_Icon_Spawn().
void Onslaught_count_generators | ( | ) |
Definition at line 1123 of file sv_onslaught.qc.
References entity(), Entity_GetTeam(), GetResource(), nades_Clear(), NUM_TEAMS, ons_worldgeneratorlist, RES_HEALTH, Team_GetNumberOfOwnedItems(), Team_GetTeamFromIndex(), Team_SetNumberOfOwnedItems(), and total_generators.
Referenced by Onslaught_CheckWinner().
Definition at line 1060 of file sv_onslaught.qc.
References IS_PLAYER, iscaptured, and SAME_TEAM.
Referenced by ons_GeneratorSetup().
void Onslaught_RoundStart | ( | ) |
Definition at line 1229 of file sv_onslaught.qc.
References entity(), FOREACH_CLIENT, IS_PLAYER, ons_worldcplist, and ons_worldgeneratorlist.
Referenced by ons_DelayedInit().
void onslaught_updatelinks | ( | ) |
Definition at line 122 of file sv_onslaught.qc.
References BIT, DAMAGE_AIM, DAMAGE_NO, DIFF_TEAM, entity(), etos(), ftos(), g_bot_targets, g_onsshields, IL_EACH, IL_PUSH(), IL_REMOVE(), LOG_DEBUG, ons_ControlPoint_UpdateSprite(), ons_Generator_UpdateSprite(), ons_worldcplist, ons_worldgeneratorlist, ons_worldlinklist, and SAME_TEAM.
Referenced by ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Reset(), ons_ControlPoint_Touch(), ons_DelayedControlPoint_Setup(), ons_DelayedGeneratorSetup(), ons_GeneratorDamage(), and ons_GeneratorReset().
spawnfunc | ( | onslaught_link | ) |
Definition at line 2081 of file sv_onslaught.qc.
References g_onslaught, InitializeEntity(), objerror(), ons_DelayedLinkSetup(), ons_Link_Send(), ons_worldlinklist, ons_worldlinknext, target, and target2.
spawnfunc | ( | onslaught_controlpoint | ) |
Definition at line 2106 of file sv_onslaught.qc.
References g_onslaught, and ons_ControlPoint_Setup().
spawnfunc | ( | onslaught_generator | ) |
Definition at line 2122 of file sv_onslaught.qc.
References g_onslaught, objerror(), ons_GeneratorSetup(), and team.
float autocvar_g_onslaught_allow_vehicle_touch |
Definition at line 32 of file sv_onslaught.qc.
Referenced by ons_ControlPoint_Touch().
float autocvar_g_onslaught_click_radius |
Definition at line 37 of file sv_onslaught.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_onslaught_cp_buildhealth |
Definition at line 26 of file sv_onslaught.qc.
Referenced by ons_ControlPoint_Icon_Spawn().
float autocvar_g_onslaught_cp_buildtime |
Definition at line 27 of file sv_onslaught.qc.
Referenced by ons_ControlPoint_Icon_Spawn().
float autocvar_g_onslaught_cp_health |
Definition at line 28 of file sv_onslaught.qc.
Referenced by ons_ControlPoint_Icon_Spawn().
float autocvar_g_onslaught_cp_proxydecap |
Definition at line 19 of file sv_onslaught.qc.
Referenced by ons_ControlPoint_Icon_Think().
float autocvar_g_onslaught_cp_proxydecap_distance = 512 |
Definition at line 20 of file sv_onslaught.qc.
Referenced by ons_ControlPoint_Icon_Think().
float autocvar_g_onslaught_cp_proxydecap_dps = 100 |
Definition at line 21 of file sv_onslaught.qc.
Referenced by ons_ControlPoint_Icon_Think().
float autocvar_g_onslaught_cp_regen |
Definition at line 29 of file sv_onslaught.qc.
Referenced by ons_ControlPoint_Icon_BuildThink().
float autocvar_g_onslaught_gen_health |
Definition at line 30 of file sv_onslaught.qc.
Referenced by ons_GeneratorReset(), and ons_GeneratorSetup().
float autocvar_g_onslaught_round_timelimit |
Definition at line 33 of file sv_onslaught.qc.
Referenced by ons_DelayedInit(), and Onslaught_CheckWinner().
float autocvar_g_onslaught_shield_force = 100 |
Definition at line 31 of file sv_onslaught.qc.
Referenced by ons_Initialize().
bool autocvar_g_onslaught_spawn_at_controlpoints |
Definition at line 17 of file sv_onslaught.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_onslaught_spawn_at_controlpoints_chance = 0.5 |
Definition at line 22 of file sv_onslaught.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_onslaught_spawn_at_controlpoints_random |
Definition at line 23 of file sv_onslaught.qc.
Referenced by MUTATOR_HOOKFUNCTION().
bool autocvar_g_onslaught_spawn_at_generator |
Definition at line 18 of file sv_onslaught.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_onslaught_spawn_at_generator_chance |
Definition at line 24 of file sv_onslaught.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_onslaught_spawn_at_generator_random |
Definition at line 25 of file sv_onslaught.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_onslaught_spawn_choose |
Definition at line 36 of file sv_onslaught.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_onslaught_teleport_radius |
Definition at line 35 of file sv_onslaught.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float autocvar_g_onslaught_teleport_wait |
Definition at line 16 of file sv_onslaught.qc.
Referenced by ons_Teleport().
float autocvar_g_onslaught_warmup |
Definition at line 34 of file sv_onslaught.qc.
Referenced by ons_DelayedInit(), and Onslaught_CheckWinner().
entity cam |
Definition at line 39 of file sv_onslaught.qc.
Referenced by ons_camSetup(), and ons_Initialize().
bool g_onslaught |
Definition at line 14 of file sv_onslaught.qc.
Referenced by ons_Initialize(), and spawnfunc().
int total_generators |
Definition at line 1122 of file sv_onslaught.qc.
Referenced by Onslaught_count_generators().