|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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 876 of file sv_onslaught.qc.
References angles, entity(), MSG_ENTITY, origin, and WriteHeader.
Referenced by ons_camSetup().
Definition at line 1295 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 1397 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 1497 of file sv_onslaught.qc.
References entity(), 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 1487 of file sv_onslaught.qc.
References entity(), and havocbot_ons_reset_role().
Referenced by havocbot_role_ons_setrole().
Definition at line 1492 of file sv_onslaught.qc.
References entity(), and havocbot_ons_reset_role().
Referenced by havocbot_role_ons_setrole().
Definition at line 1452 of file sv_onslaught.qc.
References entity(), 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 1273 of file sv_onslaught.qc.
References entity(), 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 | , |
| ClientDisconnect | ) |
Definition at line 1673 of file sv_onslaught.qc.
References ClientDisconnect, entity(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | ons | , |
| HavocBot_ChooseRole | ) |
Definition at line 1913 of file sv_onslaught.qc.
References entity(), havocbot_ons_reset_role(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | ons | , |
| MakePlayerObserver | ) |
| MUTATOR_HOOKFUNCTION | ( | ons | , |
| MonsterMove | ) |
Definition at line 1843 of file sv_onslaught.qc.
References entity(), find(), M_ARGV, NULL, and targetname.
| MUTATOR_HOOKFUNCTION | ( | ons | , |
| MonsterSpawn | ) |
Definition at line 1872 of file sv_onslaught.qc.
References entity(), InitializeEntity(), INITPRIO_FINDTARGET, M_ARGV, ons_MonsterSpawn_Delayed(), and spawn.
| MUTATOR_HOOKFUNCTION | ( | ons | , |
| PlayerDies | ) |
Definition at line 1821 of file sv_onslaught.qc.
References autocvar_g_onslaught_spawn_choose, entity(), frag_target, M_ARGV, ons_Count_SelfControlPoints(), ons_worldcplist, ons_worldgeneratorlist, and stuffcmd.
| MUTATOR_HOOKFUNCTION | ( | ons | , |
| PlayerSpawn | ) |
Definition at line 1687 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, Send_Notification(), STAT, trace_fraction, trace_startsolid, vector, and vlen2.
| MUTATOR_HOOKFUNCTION | ( | ons | , |
| PlayerUseKey | ) |
Definition at line 2005 of file sv_onslaught.qc.
References autocvar_g_onslaught_teleport_radius, entity(), game_stopped, IS_DEAD, M_ARGV, MUTATOR_RETURNVALUE, ons_Nearest_ControlPoint(), PlayerUseKey(), stuffcmd, and time.
| MUTATOR_HOOKFUNCTION | ( | ons | , |
| PlayHitsound | ) |
Definition at line 2022 of file sv_onslaught.qc.
| MUTATOR_HOOKFUNCTION | ( | ons | , |
| reset_map_global | ) |
Definition at line 1662 of file sv_onslaught.qc.
References FOREACH_CLIENT, IS_PLAYER, PutClientInServer, and STAT.
| MUTATOR_HOOKFUNCTION | ( | ons | , |
| SendWaypoint | ) |
Definition at line 2030 of file sv_onslaught.qc.
References entity(), GetResource(), M_ARGV, ons_ControlPoint_Attackable(), SAME_TEAM, and WaypointSprite_getviewentity().
| MUTATOR_HOOKFUNCTION | ( | ons | , |
| SpectateCopy | ) |
| MUTATOR_HOOKFUNCTION | ( | ons | , |
| SV_ParseClientCommand | ) |
Definition at line 1943 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(), RESPAWN_FORCE, sprint(), stof(), SV_ParseClientCommand, and vector.
| MUTATOR_HOOKFUNCTION | ( | ons | , |
| TeamBalance_CheckAllowedTeams | ) |
Definition at line 1921 of file sv_onslaught.qc.
References entity(), M_ARGV, ons_worldgeneratorlist, Team_IsValidTeam(), Team_TeamToBit(), and TeamBalance_CheckAllowedTeams().
| MUTATOR_HOOKFUNCTION | ( | ons | , |
| TurretSpawn | ) |
Definition at line 1902 of file sv_onslaught.qc.
References entity(), InitializeEntity(), INITPRIO_FINDTARGET, M_ARGV, ons_TurretSpawn_Delayed(), and spawn.
| MUTATOR_HOOKFUNCTION | ( | ons | , |
| TurretThink | ) |
Definition at line 2070 of file sv_onslaught.qc.
References entity(), find(), M_ARGV, NULL, targetname, and turret_respawn().
| MUTATOR_HOOKFUNCTION | ( | ons | , |
| TurretValidateTarget | ) |
Definition at line 2057 of file sv_onslaught.qc.
References entity(), M_ARGV, and substring().
Definition at line 884 of file sv_onslaught.qc.
References ang, cam, clientcamera_send(), cos(), DEG2RAD, dir, entity(), FOREACH_CLIENT, MOVE_WORLDONLY, MSG_ALL, Net_LinkEntity(), origin, sin(), SVC_SETVIEWANGLES, trace_fraction, vec2, vector, WriteAngle(), and WriteByte().
Referenced by ons_GeneratorDamage().
Definition at line 43 of file sv_onslaught.qc.
References enemy, entity(), ons_ControlPoint_Attackable(), SAME_TEAM, and WaypointSprite_getviewentity().
Referenced by ons_CaptureShield_Spawn().
Definition at line 75 of file sv_onslaught.qc.
References colormap, enemy, entity(), and team.
Referenced by ons_CaptureShield_Spawn().
Definition at line 81 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(), setcefc, setmodel, settouch, SOLID_TRIGGER, and team.
Referenced by ons_DelayedControlPoint_Setup(), and ons_DelayedGeneratorSetup().
Definition at line 53 of file sv_onslaught.qc.
References absmax, absmin, Damage(), DMG_NOWEP, enemy, entity(), IS_PLAYER, IS_REAL_CLIENT, normalize(), ons_captureshield_force, ons_ControlPoint_Attackable(), play2(), SAME_TEAM, Send_Notification(), SND, toucher, and vector.
Referenced by ons_CaptureShield_Spawn().
Definition at line 325 of file sv_onslaught.qc.
References entity(), and ons_ControlPoint_CanBeLinked().
Referenced by MUTATOR_HOOKFUNCTION(), ons_CaptureShield_Customize(), ons_CaptureShield_Touch(), ons_ControlPoint_Touch(), and ons_ControlPoint_Waypoint().
Definition at line 309 of file sv_onslaught.qc.
Referenced by ons_ControlPoint_Attackable(), ons_ControlPoint_Icon_BuildThink(), and ons_ControlPoint_UpdateSprite().
Definition at line 554 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_updatelinks(), origin, owner, random(), randomvec(), Send_Effect(), Send_Notification(), SendFlags, setmodel, SetResourceExplicit(), setthink, solid, SOLID_BBOX, sound, SUB_UseTargets(), time, VOL_BASE, WaypointSprite_UpdateHealth(), and WaypointSprite_UpdateMaxHealth().
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 365 of file sv_onslaught.qc.
References APP_TEAM_NUM, ATTEN_NORM, autocvar_g_onslaught_cp_proximitydecap_distance, CH_TRIGGER, count, CPSF_STATUS, DIFF_TEAM, entity(), FOREACH_CLIENT, GameRules_scoring_add, GetResource(), IS_DEAD, IS_PLAYER, NULL, ONS_CP_THINKRATE, ons_notification_time, onslaught_updatelinks(), origin, owner, pain_finished, play2(), play2team(), pointparticles, random(), Send_Notification(), SendFlags, setmodel, SND, sound, SUB_UseTargets(), TakeResource(), team, time, vdist, vector, VOL_BASE, WaypointSprite_UpdateBuildFinished(), WaypointSprite_UpdateHealth(), and WaypointSprite_UpdateMaxHealth().
Referenced by ons_ControlPoint_Icon_Spawn(), and ons_ControlPoint_Icon_Think().
Definition at line 460 of file sv_onslaught.qc.
References CPSF_STATUS, entity(), GetResource(), GiveResourceWithLimit(), ONS_CP_THINKRATE, RES_LIMIT_NONE, time, WaypointSprite_UpdateBuildFinished(), and WaypointSprite_UpdateHealth().
Referenced by ons_ControlPoint_Icon_Spawn().
Definition at line 620 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(), Send_Effect(), SetResourceExplicit(), SOLID_NOT, sound, SPRITERULE_TEAMPLAY, time, VOL_BASE, WaypointSprite_UpdateBuildFinished(), and WaypointSprite_UpdateRule().
Referenced by ons_ControlPoint_Touch().
Definition at line 477 of file sv_onslaught.qc.
References ATTEN_NORM, autocvar_g_onslaught_cp_proximitydecap, autocvar_g_onslaught_cp_proximitydecap_distance, autocvar_g_onslaught_cp_proximitydecap_dps, CH_PAIN, count, CPSF_STATUS, DMG_NOWEP, entity(), 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(), SAME_TEAM, Send_Effect(), SendFlags, sound, SUB_UseTargets(), TakeResource(), time, vdist, VOL_BASE, and WaypointSprite_UpdateHealth().
Referenced by ons_ControlPoint_Icon_BuildThink().
Definition at line 757 of file sv_onslaught.qc.
References colormap, CSQCMODEL_AUTOUPDATE, entity(), goalentity, iscaptured, islinked, isshielded, nextthink, NULL, ons_ControlPoint_Think(), ONS_CP_THINKRATE, ons_toucher, onslaught_updatelinks(), setmodel, setthink, sprite, SPRITERULE_TEAMPLAY, SUB_UseTargets(), team, time, WaypointSprite_UpdateMaxHealth(), and WaypointSprite_UpdateRule().
Referenced by ons_ControlPoint_Setup().
Definition at line 793 of file sv_onslaught.qc.
References CPGEN_WAYPOINT_OFFSET, DropToFloor_QC_DelayedInit(), entity(), InitializeEntity(), INITPRIO_SETLOCATION, MOVETYPE_NONE, MOVETYPE_TOSS, ons_ControlPoint_Reset(), ons_ControlPoint_Think(), ons_ControlPoint_Touch(), ONS_CP_THINKRATE, ons_DelayedControlPoint_Setup(), ons_worldcplist, set_movetype(), setmodel, setthink, settouch, SOLID_BBOX, sprite, SPRITERULE_TEAMPLAY, time, WaypointSprite_SpawnFixed(), and WaypointSprite_UpdateRule().
Referenced by spawnfunc().
Definition at line 751 of file sv_onslaught.qc.
References CSQCMODEL_AUTOUPDATE, entity(), nextthink, ONS_CP_THINKRATE, and time.
Referenced by ons_ControlPoint_Reset(), and ons_ControlPoint_Setup().
Definition at line 715 of file sv_onslaught.qc.
References autocvar_g_onslaught_allow_vehicle_touch, entity(), IS_DEAD, IS_PLAYER, IS_VEHICLE, iscaptured, ons_ControlPoint_Attackable(), ons_ControlPoint_Icon_Spawn(), ons_toucher, onslaught_updatelinks(), rint(), SAME_TEAM, Send_Notification(), time, and toucher.
Referenced by ons_ControlPoint_Setup().
Definition at line 671 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(), s1, WaypointSprite_Ping(), WaypointSprite_UpdateHealth(), WaypointSprite_UpdateMaxHealth(), WaypointSprite_UpdateSprites(), and WaypointSprite_UpdateTeamRadar().
Referenced by onslaught_updatelinks().
Definition at line 655 of file sv_onslaught.qc.
References entity(), and 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 1582 of file sv_onslaught.qc.
References entity(), ons_worldcplist, ons_worldgeneratorlist, and SAME_TEAM.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 783 of file sv_onslaught.qc.
References CSQCMODEL_AUTOINIT, entity(), ons_CaptureShield_Spawn(), and onslaught_updatelinks().
Referenced by ons_ControlPoint_Setup().
Definition at line 1072 of file sv_onslaught.qc.
References bot_basewaypoint, entity(), generator_send(), nearestwaypoint, nearestwaypointtimeout, Net_LinkEntity(), ons_CaptureShield_Spawn(), onslaught_updatelinks(), origin, and waypoint_spawnforitem_force().
Referenced by ons_GeneratorSetup().
Definition at line 2162 of file sv_onslaught.qc.
References autocvar_g_onslaught_round_timelimit, autocvar_g_onslaught_warmup, entity(), ons_ScoreRules(), Onslaught_CheckPlayers(), Onslaught_CheckWinner(), Onslaught_RoundStart(), round_handler_Init(), and round_handler_Spawn().
Referenced by ons_Initialize().
Definition at line 291 of file sv_onslaught.qc.
References enemy, entity(), etos(), find(), goalentity, LOG_DEBUG, nextthink, NULL, objerror, ons_Link_CheckUpdate(), SendFlags, setthink, target, target2, targetname, and time.
Referenced by spawnfunc().
Definition at line 848 of file sv_onslaught.qc.
References colormapPaletteColor, entity(), ons_Generator_Waypoint(), s1, WaypointSprite_Ping(), WaypointSprite_UpdateSprites(), and WaypointSprite_UpdateTeamRadar().
Referenced by onslaught_updatelinks().
Definition at line 841 of file sv_onslaught.qc.
References entity().
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 920 of file sv_onslaught.qc.
References APP_TEAM_NUM, ATTEN_NORM, bound(), CH_TRIGGER, count, DAMAGE_NO, entity(), FOREACH_CLIENT, frame, func_null(), game_stopped, 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, play2(), play2team(), random(), round_handler_IsRoundStarted, SAME_TEAM, Send_Effect(), Send_Notification(), SendFlags, setthink, SND, sound, sprite, takedamage, TakeResource(), team, time, vector, VOL_BASE, warmup_stage, WaypointSprite_Ping(), WaypointSprite_UpdateHealth(), and WaypointSprite_UpdateMaxHealth().
Referenced by ons_GeneratorReset(), and ons_GeneratorSetup().
Definition at line 1006 of file sv_onslaught.qc.
References bound(), entity(), GetResource(), GiveResourceWithLimit(), GSF_STATUS, RES_LIMIT_NONE, and WaypointSprite_UpdateHealth().
Referenced by ons_GeneratorReset(), and ons_GeneratorSetup().
Definition at line 1043 of file sv_onslaught.qc.
References autocvar_g_onslaught_gen_health, bot_attack, DAMAGE_AIM, entity(), g_bot_targets, GEN_THINKRATE, generator_send(), GetResource(), GSF_SETUP, GSF_STATUS, IL_CONTAINS(), IL_PUSH(), iscaptured, islinked, isshielded, lasthealth, max_health, Net_LinkEntity(), nextthink, ons_GeneratorDamage(), ons_GeneratorHeal(), ons_GeneratorThink(), onslaught_updatelinks(), SendFlags, SetResourceExplicit(), setthink, sprite, SPRITERULE_TEAMPLAY, takedamage, team, team_saved, time, WaypointSprite_UpdateHealth(), WaypointSprite_UpdateMaxHealth(), and WaypointSprite_UpdateRule().
Referenced by ons_GeneratorSetup().
Definition at line 1098 of file sv_onslaught.qc.
References autocvar_g_onslaught_gen_health, CPGEN_SPAWN_OFFSET, CPGEN_WAYPOINT_OFFSET, DAMAGE_AIM, DropToFloor_QC_DelayedInit(), entity(), g_bot_targets, g_saved_team, GEN_THINKRATE, GENERATOR_MAX, GENERATOR_MIN, GetResource(), IL_PUSH(), InitializeEntity(), INITPRIO_SETLOCATION, MOVETYPE_NONE, ons_DelayedGeneratorSetup(), ons_GeneratorDamage(), ons_GeneratorHeal(), ons_GeneratorReset(), ons_GeneratorThink(), ons_worldgeneratorlist, onslaught_generator_touch(), set_movetype(), SetResourceExplicit(), setthink, settouch, SOLID_BBOX, sprite, SPRITERULE_TEAMPLAY, Team_ColoredFullName, time, WaypointSprite_SpawnFixed(), WaypointSprite_UpdateHealth(), WaypointSprite_UpdateMaxHealth(), and WaypointSprite_UpdateRule().
Referenced by spawnfunc().
Definition at line 1022 of file sv_onslaught.qc.
References APP_TEAM_NUM, ATTEN_NONE, CHAN_AUTO, entity(), FOREACH_CLIENT, game_stopped, GEN_THINKRATE, IS_PLAYER, IS_REAL_CLIENT, isshielded, msg_entity, MSG_ONE, nextthink, SAME_TEAM, Send_Notification(), SND, soundto(), team, time, VOL_BASE, and wait.
Referenced by ons_GeneratorReset(), and ons_GeneratorSetup().
| void ons_Initialize | ( | ) |
Definition at line 2170 of file sv_onslaught.qc.
References autocvar_g_onslaught_shield_force, cam, g_onslaught, g_onsshields, IL_NEW, InitializeEntity(), INITPRIO_GAMETYPE, NULL, ons_captureshield_force, and ons_DelayedInit().
Referenced by REGISTER_MUTATOR().
Definition at line 272 of file sv_onslaught.qc.
References clientcolors, enemy, entity(), goalentity, nextthink, SendFlags, and time.
Referenced by ons_DelayedLinkSetup().
Definition at line 253 of file sv_onslaught.qc.
References clientcolors, enemy, entity(), goalentity, MSG_ENTITY, WriteByte(), and WriteHeader.
Referenced by spawnfunc().
Definition at line 1852 of file sv_onslaught.qc.
References entity(), find(), NULL, owner, and target.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 1514 of file sv_onslaught.qc.
References entity(), NULL, ons_worldcplist, ons_worldgeneratorlist, SAME_TEAM, vdist, vector, and vlen2.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 1541 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 2150 of file sv_onslaught.qc.
References entity(), GameRules_scoring, NULL, SFL_SORT_PRIO_PRIMARY, SFL_SORT_PRIO_SECONDARY, ST_ONS_GENS, 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 1604 of file sv_onslaught.qc.
References ATTEN_NORM, autocvar_g_onslaught_teleport_wait, bot_aim_reset(), CH_TRIGGER, cos(), entity(), IS_BOT_CLIENT, M_PI, makevectors, MOVE_NOMONSTERS, MOVE_NORMAL, RAD2DEG, random(), Send_Effect(), sin(), sound, STAT, time, trace_fraction, trace_startsolid, v_forward, vector, and VOL_BASE.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 1881 of file sv_onslaught.qc.
References ACTIVE_NOT, entity(), find(), NULL, owner, and target.
Referenced by MUTATOR_HOOKFUNCTION().
| bool Onslaught_CheckPlayers | ( | ) |
Definition at line 1249 of file sv_onslaught.qc.
Referenced by ons_DelayedInit().
| bool Onslaught_CheckWinner | ( | ) |
Definition at line 1173 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, autocvar_timelimit_suddendeath, CH_INFO, Damage(), DIFF_TEAM, DMG_NOWEP, entity(), FOREACH_CLIENT, game_starttime, game_stopped, IS_PLAYER, max(), nades_RemovePlayer(), NULL, ons_stalemate, ons_worldcplist, ons_worldgeneratorlist, Onslaught_count_generators(), play2all(), round_handler_GetEndTime, round_handler_Init(), Send_Notification(), SND, sound, ST_ONS_GENS, STAT, 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(), entity(), Net_LinkEntity(), setthink, sys_frametime, and time.
Referenced by ons_ControlPoint_Icon_Spawn().
| void Onslaught_count_generators | ( | ) |
Definition at line 1151 of file sv_onslaught.qc.
References entity(), Entity_GetTeam(), GetResource(), NUM_TEAMS, ons_worldgeneratorlist, Team_GetNumberOfOwnedItems(), Team_GetTeamFromIndex(), Team_SetNumberOfOwnedItems(), and total_generators.
Referenced by Onslaught_CheckWinner().
Definition at line 1088 of file sv_onslaught.qc.
References entity(), IS_PLAYER, iscaptured, SAME_TEAM, Send_Notification(), and toucher.
Referenced by ons_GeneratorSetup().
| void Onslaught_RoundStart | ( | ) |
Definition at line 1254 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 109 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_controlpoint | ) |
Definition at line 2125 of file sv_onslaught.qc.
References g_onslaught, and ons_ControlPoint_Setup().
| spawnfunc | ( | onslaught_generator | ) |
Definition at line 2141 of file sv_onslaught.qc.
References g_onslaught, objerror, ons_GeneratorSetup(), and team.
| spawnfunc | ( | onslaught_link | ) |
Definition at line 2100 of file sv_onslaught.qc.
References g_onslaught, InitializeEntity(), INITPRIO_FINDTARGET, Net_LinkEntity(), objerror, ons_DelayedLinkSetup(), ons_Link_Send(), ons_worldlinklist, ons_worldlinknext, target, and target2.
| 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_proximitydecap |
Definition at line 19 of file sv_onslaught.qc.
Referenced by ons_ControlPoint_Icon_Think().
| float autocvar_g_onslaught_cp_proximitydecap_distance = 512 |
Definition at line 20 of file sv_onslaught.qc.
Referenced by ons_ControlPoint_Icon_Damage(), and ons_ControlPoint_Icon_Think().
| float autocvar_g_onslaught_cp_proximitydecap_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(), and MUTATOR_HOOKFUNCTION().
| float autocvar_g_onslaught_teleport_radius |
Definition at line 35 of file sv_onslaught.qc.
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and 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 875 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(), spawnfunc(), spawnfunc(), and spawnfunc().
| int total_generators |
Definition at line 1150 of file sv_onslaught.qc.
Referenced by Onslaught_count_generators().