Xonotic
sv_onslaught.qh File Reference
+ Include dependency graph for sv_onslaught.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CPGEN_SPAWN_OFFSET   ('0 0 1' * (PL_MAX_CONST.z - 13))
 

Functions

void havocbot_goalrating_enemyplayers (entity this, float ratingscale, vector org, float sradius)
 
void havocbot_goalrating_items (entity this, float ratingscale, vector org, float sradius)
 
void havocbot_ons_reset_role (entity this)
 
void havocbot_role_ons_assistant (entity this)
 
void havocbot_role_ons_defense (entity this)
 
void havocbot_role_ons_offense (entity this)
 
bool ons_ControlPoint_Attackable (entity cp, int teamnum)
 
void ons_ControlPoint_UpdateSprite (entity e)
 
void ons_Generator_UpdateSprite (entity e)
 
void ons_Initialize ()
 
 REGISTER_MUTATOR (ons, false)
 

Variables

int arecpsneighbor
 
int aregensneighbor
 
float autocvar_g_onslaught_point_limit
 
const vector CPGEN_WAYPOINT_OFFSET = ('0 0 128')
 
const vector CPICON_OFFSET = ('0 0 96')
 
IntrusiveList g_onsshields
 
const float GEN_THINKRATE = 1
 
float havocbot_attack_time
 
const int HAVOCBOT_ONS_ROLE_ASSISTANT = 4
 
const int HAVOCBOT_ONS_ROLE_DEFENSE = 2
 
const int HAVOCBOT_ONS_ROLE_NONE = 0
 
const int HAVOCBOT_ONS_ROLE_OFFENSE = 8
 
entity havocbot_ons_target
 
int iscaptured
 
int islinked
 
int isshielded
 
int lastcaptured
 
float lasthealth
 
int lastshielded
 
int lastteam
 
float ons_captureshield_force
 
const float ONS_CP_THINKRATE = 0.2
 
vector ons_deathloc
 
float ons_notification_time [17]
 
float ons_overtime_damagedelay
 
entity ons_spawn_by
 
bool ons_stalemate
 
entity ons_toucher
 
entity ons_worldcplist
 
entity ons_worldcpnext
 
entity ons_worldgeneratorlist
 
entity ons_worldgeneratornext
 
entity ons_worldlinklist
 
entity ons_worldlinknext
 
entity sprite
 
const int ST_ONS_CAPS = 1
 
string target2
 
float teleport_antispam
 
bool waslinked
 

Macro Definition Documentation

◆ CPGEN_SPAWN_OFFSET

#define CPGEN_SPAWN_OFFSET   ('0 0 1' * (PL_MAX_CONST.z - 13))

Definition at line 27 of file sv_onslaught.qh.

Referenced by ons_GeneratorSetup().

Function Documentation

◆ havocbot_goalrating_enemyplayers()

void havocbot_goalrating_enemyplayers ( entity  this,
float  ratingscale,
vector  org,
float  sradius 
)

Definition at line 176 of file roles.qc.

Referenced by havocbot_role_ast_defense(), havocbot_role_ast_offense(), havocbot_role_ctf_defense(), havocbot_role_ctf_middle(), havocbot_role_ft_freeing(), havocbot_role_ft_offense(), havocbot_role_ka_carrier(), havocbot_role_ka_collector(), and havocbot_role_ons_offense().

177 {
179  return;
180 
181  // don't chase players if we're under water
182  if(this.waterlevel > WATERLEVEL_WETFEET)
183  return;
184 
185  ratingscale = ratingscale * 0.0001;
186 
187  FOREACH_CLIENT(IS_PLAYER(it) && bot_shouldattack(this, it), {
188  // TODO: Merge this logic with the bot_shouldattack function
189  if(vdist(it.origin - org, <, 100) || vdist(it.origin - org, >, sradius))
190  continue;
191  if(vdist(vec2(it.velocity), >, autocvar_sv_maxspeed * 2))
192  continue;
193 
194  // rate only visible enemies
195  /*
196  traceline(this.origin + this.view_ofs, it.origin, MOVE_NOMONSTERS, this);
197  if (trace_fraction < 1 || trace_ent != it)
198  continue;
199  */
200 
201  float t = ((GetResource(this, RES_HEALTH) + GetResource(this, RES_ARMOR)) - (GetResource(it, RES_HEALTH) + GetResource(it, RES_ARMOR))) / 150;
202  t = bound(0, 1 + t, 3);
203  if (skill > 3)
204  {
205  if (time < StatusEffects_gettime(STATUSEFFECT_Strength, this) - 1) t += 0.5;
206  if (time < StatusEffects_gettime(STATUSEFFECT_Strength, it) - 1) t -= 0.5;
207  if (time < StatusEffects_gettime(STATUSEFFECT_Shield, this) - 1) t += 0.2;
208  if (time < StatusEffects_gettime(STATUSEFFECT_Shield, it) - 1) t -= 0.4;
209  }
210  t += max(0, 8 - skill) * 0.05; // less skilled bots attack more mindlessly
211  ratingscale *= t;
212  if (ratingscale > 0)
213  navigation_routerating(this, it, ratingscale * BOT_RATING_ENEMY, 2000);
214  });
215 }
float waterlevel
Definition: progsdefs.qc:181
#define FOREACH_CLIENT(cond, body)
Definition: utils.qh:49
float skill
Definition: api.qh:35
void navigation_routerating(entity this, entity e, float f, float rangebias)
Definition: navigation.qc:1220
RES_HEALTH
Definition: ent_cs.qc:126
const float BOT_RATING_ENEMY
Definition: roles.qh:3
const int WATERLEVEL_WETFEET
Definition: movetypes.qh:12
bool autocvar_bot_nofire
Definition: cvars.qh:54
float GetResource(entity e, Resource res_type)
Returns the current amount of resource the given entity has.
Definition: cl_resources.qc:10
#define vdist(v, cmp, f)
Vector distance comparison, avoids sqrt()
Definition: vector.qh:8
#define vec2(...)
Definition: vector.qh:90
bool bot_shouldattack(entity this, entity e)
Definition: aim.qc:112
float time
Definition: csprogsdefs.qc:16
#define IS_PLAYER(v)
Definition: utils.qh:9
+ Here is the caller graph for this function:

◆ havocbot_goalrating_items()

void havocbot_goalrating_items ( entity  this,
float  ratingscale,
vector  org,
float  sradius 
)

Definition at line 106 of file roles.qc.

Referenced by havocbot_goalrating_kh(), havocbot_role_ast_defense(), havocbot_role_ast_offense(), havocbot_role_ctf_carrier(), havocbot_role_ctf_defense(), havocbot_role_ctf_escort(), havocbot_role_ctf_middle(), havocbot_role_ctf_offense(), havocbot_role_ctf_retriever(), havocbot_role_dom(), havocbot_role_ft_freeing(), havocbot_role_ft_offense(), havocbot_role_ka_carrier(), havocbot_role_ka_collector(), and havocbot_role_ons_offense().

107 {
108  ratingscale = ratingscale * 0.0001;
109 
110  IL_EACH(g_items, it.bot_pickup,
111  {
112  // ignore if bot already rated this item with a higher ratingscale
113  // NOTE: this code assumes each bot rates items in a different frame
114  if(it.bot_ratingscale_time == time && ratingscale < it.bot_ratingscale)
115  continue;
116 
117  if(!it.solid)
118  {
119  if(!autocvar_bot_ai_timeitems)
120  continue;
121  if(!it.scheduledrespawntime)
122  continue;
123  if(it.respawntime < max(11, autocvar_bot_ai_timeitems_minrespawndelay))
124  continue;
125  if(it.respawntimejitter && !it.itemdef.instanceOfPowerup)
126  continue;
127 
128  float t = 0;
129  if(it.itemdef.instanceOfPowerup)
130  t = bound(0, skill / 10, 1) * 6;
131  else if(skill >= 9)
132  t = 4;
133 
134  if(time < it.scheduledrespawntime - t)
135  continue;
136 
137  it.bot_pickup_respawning = true;
138  }
139  vector o = (it.absmin + it.absmax) * 0.5;
140  if(vdist(o - org, >, sradius) || (it == this.ignoregoal && time < this.ignoregoaltime) )
141  continue;
142 
143  // Check if the item can be picked up safely
144  if(Item_IsLoot(it))
145  {
146  if(!IS_ONGROUND(it))
147  continue;
148  traceline(o, o + '0 0 -1500', true, NULL);
149 
150  if(IN_LAVA(trace_endpos + '0 0 1'))
151  continue;
152 
153  // this tracebox_hits_trigger_hurt call isn't needed:
154  // dropped weapons are removed as soon as they fall on a trigger_hurt
155  // and can't be rated while they are in the air
156  //if(tracebox_hits_trigger_hurt(it.origin, it.mins, it.maxs, trace_endpos))
157  // continue;
158  }
159  else
160  {
161  if(IN_LAVA(it.origin + (it.mins + it.maxs) * 0.5))
162  continue;
163  }
164 
166  continue;
167 
168  it.bot_ratingscale_time = time;
169  it.bot_ratingscale = ratingscale;
170  float rating = it.bot_pickupevalfunc(this, it);
171  if(rating > 0)
172  navigation_routerating(this, it, rating * ratingscale, 2000);
173  });
174 }
#define IL_EACH(this, cond, body)
float ignoregoaltime
Definition: api.qh:98
entity ignoregoal
Definition: api.qh:99
#define IN_LAVA(pos)
Definition: bot.qh:83
#define IS_ONGROUND(s)
Definition: movetypes.qh:16
void navigation_routerating(entity this, entity e, float f, float rangebias)
Definition: navigation.qc:1220
IntrusiveList g_items
Definition: items.qh:126
#define NULL
Definition: post.qh:17
vector trace_endpos
Definition: csprogsdefs.qc:37
vector(float skel, float bonenum) _skel_get_boneabs_hidden
bool havocbot_goalrating_item_pickable_check_players(entity this, vector org, entity item, vector item_org)
Definition: roles.qc:60
#define vdist(v, cmp, f)
Vector distance comparison, avoids sqrt()
Definition: vector.qh:8
bool Item_IsLoot(entity item)
Returns whether the item is loot.
Definition: spawning.qc:121
float time
Definition: csprogsdefs.qc:16
+ Here is the caller graph for this function:

◆ havocbot_ons_reset_role()

void havocbot_ons_reset_role ( entity  this)

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().

1473 {
1474  if(IS_DEAD(this))
1475  return;
1476 
1477  this.havocbot_ons_target = NULL;
1478 
1479  // TODO: Defend control points or generator if necessary
1480 
1482 }
entity havocbot_ons_target
Definition: sv_onslaught.qh:84
#define NULL
Definition: post.qh:17
const int HAVOCBOT_ONS_ROLE_OFFENSE
Definition: sv_onslaught.qh:82
#define IS_DEAD(s)
Definition: utils.qh:26
void havocbot_role_ons_setrole(entity this, int role)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ havocbot_role_ons_assistant()

void havocbot_role_ons_assistant ( entity  this)

Definition at line 1462 of file sv_onslaught.qc.

References havocbot_ons_reset_role().

Referenced by havocbot_role_ons_setrole().

1463 {
1465 }
void havocbot_ons_reset_role(entity this)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ havocbot_role_ons_defense()

void havocbot_role_ons_defense ( entity  this)

Definition at line 1467 of file sv_onslaught.qc.

References havocbot_ons_reset_role().

Referenced by havocbot_role_ons_setrole().

1468 {
1470 }
void havocbot_ons_reset_role(entity this)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ havocbot_role_ons_offense()

void havocbot_role_ons_offense ( entity  this)

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().

1428 {
1429  if(IS_DEAD(this))
1430  {
1431  this.havocbot_attack_time = 0;
1433  return;
1434  }
1435 
1436  // Set the role timeout if necessary
1437  if (!this.havocbot_role_timeout)
1438  this.havocbot_role_timeout = time + 120;
1439 
1440  if (time > this.havocbot_role_timeout)
1441  {
1443  return;
1444  }
1445 
1446  if(this.havocbot_attack_time>time)
1447  return;
1448 
1450  {
1452  havocbot_goalrating_enemyplayers(this, 20000, this.origin, 650);
1455  havocbot_goalrating_items(this, 25000, this.origin, 10000);
1457 
1459  }
1460 }
float havocbot_role_timeout
Definition: api.qh:46
void navigation_goalrating_start(entity this)
Definition: navigation.qc:1830
void havocbot_goalrating_items(entity this, float ratingscale, vector org, float sradius)
Definition: roles.qc:106
void navigation_goalrating_end(entity this)
Definition: navigation.qc:1845
origin
Definition: ent_cs.qc:114
void havocbot_goalrating_enemyplayers(entity this, float ratingscale, vector org, float sradius)
Definition: roles.qc:176
float havocbot_attack_time
Definition: sv_assault.qh:41
bool navigation_goalrating_timeout(entity this)
Definition: navigation.qc:43
#define IS_DEAD(s)
Definition: utils.qh:26
void navigation_goalrating_timeout_set(entity this)
Definition: navigation.qc:19
bool havocbot_goalrating_ons_generator_attack(entity this, float ratingscale)
void havocbot_goalrating_ons_controlpoints_attack(entity this, float ratingscale)
void havocbot_ons_reset_role(entity this)
float time
Definition: csprogsdefs.qc:16
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ons_ControlPoint_Attackable()

bool ons_ControlPoint_Attackable ( entity  cp,
int  teamnum 
)

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().

338 {
339  int a;
340 
341  if(cp.isshielded)
342  {
343  return 0;
344  }
345  else if(cp.goalentity)
346  {
347  // if there's already an icon built, nothing happens
348  if(cp.team == teamnum)
349  {
350  a = ons_ControlPoint_CanBeLinked(cp, teamnum);
351  if(a) // attackable by enemy?
352  return -2; // EMERGENCY!
353  return -1;
354  }
355  // we know it can be linked, so no need to check
356  // but...
357  a = ons_ControlPoint_CanBeLinked(cp, teamnum);
358  if(a == 2) // near our generator?
359  return 3; // EMERGENCY!
360  return 1;
361  }
362  else
363  {
364  // free point
365  if(ons_ControlPoint_CanBeLinked(cp, teamnum))
366  {
367  a = ons_ControlPoint_CanBeLinked(cp, teamnum); // why was this here NUM_TEAM_1 + NUM_TEAM_2 - t
368  if(a == 2)
369  return 4; // GET THIS ONE NOW!
370  else
371  return 2; // TOUCH ME
372  }
373  }
374  return 0;
375 }
int ons_ControlPoint_CanBeLinked(entity cp, int teamnum)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ons_ControlPoint_UpdateSprite()

void ons_ControlPoint_UpdateSprite ( entity  e)

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().

652 {
654  WaypointSprite_UpdateSprites(e.sprite, s1, s1, s1);
655 
656  bool sh;
658 
659  if(e.lastteam != e.team + 2 || e.lastshielded != sh || e.iscaptured != e.lastcaptured)
660  {
661  if(e.iscaptured) // don't mess up build bars!
662  {
663  if(sh)
664  {
665  WaypointSprite_UpdateMaxHealth(e.sprite, 0);
666  }
667  else
668  {
669  WaypointSprite_UpdateMaxHealth(e.sprite, e.goalentity.max_health);
670  WaypointSprite_UpdateHealth(e.sprite, GetResource(e.goalentity, RES_HEALTH));
671  }
672  }
673  if(e.lastshielded)
674  {
675  if(e.team)
676  WaypointSprite_UpdateTeamRadar(e.sprite, RADARICON_CONTROLPOINT, 0.5 * colormapPaletteColor(e.team - 1, false));
677  else
678  WaypointSprite_UpdateTeamRadar(e.sprite, RADARICON_CONTROLPOINT, '0.5 0.5 0.5');
679  }
680  else
681  {
682  if(e.team)
683  WaypointSprite_UpdateTeamRadar(e.sprite, RADARICON_CONTROLPOINT, colormapPaletteColor(e.team - 1, false));
684  else
685  WaypointSprite_UpdateTeamRadar(e.sprite, RADARICON_CONTROLPOINT, '0.75 0.75 0.75');
686  }
687  WaypointSprite_Ping(e.sprite);
688 
689  e.lastteam = e.team + 2;
690  e.lastshielded = sh;
691  e.lastcaptured = e.iscaptured;
692  }
693 }
const int NUM_TEAM_2
Definition: teams.qh:19
spree_inf s1 s2 s3loc s2 s1
Definition: all.inc:265
int ons_ControlPoint_CanBeLinked(entity cp, int teamnum)
entity() spawn
entity ons_ControlPoint_Waypoint(entity e)
RES_HEALTH
Definition: ent_cs.qc:126
const int NUM_TEAM_4
Definition: teams.qh:21
float GetResource(entity e, Resource res_type)
Returns the current amount of resource the given entity has.
Definition: cl_resources.qc:10
const int NUM_TEAM_1
Definition: teams.qh:18
#define colormapPaletteColor(c, isPants)
Definition: color.qh:5
const int NUM_TEAM_3
Definition: teams.qh:20
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ons_Generator_UpdateSprite()

void ons_Generator_UpdateSprite ( entity  e)

Definition at line 829 of file sv_onslaught.qc.

References colormapPaletteColor, entity(), ons_Generator_Waypoint(), and s1.

Referenced by onslaught_updatelinks().

830 {
832  WaypointSprite_UpdateSprites(e.sprite, s1, s1, s1);
833 
834  if(e.lastteam != e.team + 2 || e.lastshielded != e.isshielded)
835  {
836  e.lastteam = e.team + 2;
837  e.lastshielded = e.isshielded;
838  if(e.lastshielded)
839  {
840  if(e.team)
841  WaypointSprite_UpdateTeamRadar(e.sprite, RADARICON_GENERATOR, 0.5 * colormapPaletteColor(e.team - 1, false));
842  else
843  WaypointSprite_UpdateTeamRadar(e.sprite, RADARICON_GENERATOR, '0.5 0.5 0.5');
844  }
845  else
846  {
847  if(e.team)
848  WaypointSprite_UpdateTeamRadar(e.sprite, RADARICON_GENERATOR, colormapPaletteColor(e.team - 1, false));
849  else
850  WaypointSprite_UpdateTeamRadar(e.sprite, RADARICON_GENERATOR, '0.75 0.75 0.75');
851  }
852  WaypointSprite_Ping(e.sprite);
853  }
854 }
entity ons_Generator_Waypoint(entity e)
spree_inf s1 s2 s3loc s2 s1
Definition: all.inc:265
entity() spawn
#define colormapPaletteColor(c, isPants)
Definition: color.qh:5
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ons_Initialize()

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().

2152 {
2153  g_onslaught = true;
2154  g_onsshields = IL_NEW();
2156 
2157  cam = new(objective_camera);
2158 
2159  InitializeEntity(NULL, ons_DelayedInit, INITPRIO_GAMETYPE);
2160 }
#define IL_NEW()
float autocvar_g_onslaught_shield_force
Definition: sv_onslaught.qc:31
void ons_DelayedInit(entity this)
bool g_onslaught
Definition: sv_onslaught.qc:14
entity cam
Definition: sv_onslaught.qc:39
#define NULL
Definition: post.qh:17
IntrusiveList g_onsshields
Definition: sv_onslaught.qh:6
void InitializeEntity(entity e, void(entity this) func, int order)
Definition: world.qc:2146
float ons_captureshield_force
Definition: sv_onslaught.qh:76
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ REGISTER_MUTATOR()

REGISTER_MUTATOR ( ons  ,
false   
)

Definition at line 9 of file sv_onslaught.qh.

References autocvar_g_onslaught_point_limit, GameRules_limit_score(), GameRules_teams(), MUTATOR_ONADD, MUTATOR_STATIC, and ons_Initialize().

10 {
13  {
14  GameRules_teams(true);
16 
18  }
19  return false;
20 }
float autocvar_g_onslaught_point_limit
Definition: sv_onslaught.qh:5
#define MUTATOR_STATIC()
Definition: base.qh:288
void GameRules_limit_score(int limit)
Definition: sv_rules.qc:34
void GameRules_teams(bool value)
Definition: sv_rules.qc:6
#define MUTATOR_ONADD
Definition: base.qh:284
void ons_Initialize()
+ Here is the call graph for this function:

Variable Documentation

◆ arecpsneighbor

int arecpsneighbor

Definition at line 61 of file sv_onslaught.qh.

◆ aregensneighbor

int aregensneighbor

Definition at line 60 of file sv_onslaught.qh.

◆ autocvar_g_onslaught_point_limit

float autocvar_g_onslaught_point_limit

Definition at line 5 of file sv_onslaught.qh.

Referenced by REGISTER_MUTATOR().

◆ CPGEN_WAYPOINT_OFFSET

const vector CPGEN_WAYPOINT_OFFSET = ('0 0 128')

Definition at line 28 of file sv_onslaught.qh.

Referenced by ons_ControlPoint_Setup(), and ons_GeneratorSetup().

◆ CPICON_OFFSET

const vector CPICON_OFFSET = ('0 0 96')

Definition at line 29 of file sv_onslaught.qh.

Referenced by ons_ControlPoint_Icon_Spawn().

◆ g_onsshields

IntrusiveList g_onsshields

Definition at line 6 of file sv_onslaught.qh.

Referenced by ons_CaptureShield_Spawn(), ons_Initialize(), and onslaught_updatelinks().

◆ GEN_THINKRATE

const float GEN_THINKRATE = 1

Definition at line 26 of file sv_onslaught.qh.

Referenced by ons_GeneratorReset(), ons_GeneratorSetup(), and ons_GeneratorThink().

◆ havocbot_attack_time

float havocbot_attack_time

Definition at line 86 of file sv_onslaught.qh.

◆ HAVOCBOT_ONS_ROLE_ASSISTANT

const int HAVOCBOT_ONS_ROLE_ASSISTANT = 4

Definition at line 81 of file sv_onslaught.qh.

Referenced by havocbot_role_ons_setrole().

◆ HAVOCBOT_ONS_ROLE_DEFENSE

const int HAVOCBOT_ONS_ROLE_DEFENSE = 2

Definition at line 80 of file sv_onslaught.qh.

Referenced by havocbot_role_ons_setrole().

◆ HAVOCBOT_ONS_ROLE_NONE

const int HAVOCBOT_ONS_ROLE_NONE = 0

Definition at line 79 of file sv_onslaught.qh.

◆ HAVOCBOT_ONS_ROLE_OFFENSE

const int HAVOCBOT_ONS_ROLE_OFFENSE = 8

Definition at line 82 of file sv_onslaught.qh.

Referenced by havocbot_ons_reset_role(), and havocbot_role_ons_setrole().

◆ havocbot_ons_target

entity havocbot_ons_target

◆ iscaptured

int iscaptured

Definition at line 46 of file sv_onslaught.qh.

◆ islinked

int islinked

Definition at line 47 of file sv_onslaught.qh.

Referenced by ons_ControlPoint_Reset(), ons_GeneratorDamage(), and ons_GeneratorReset().

◆ isshielded

◆ lastcaptured

int lastcaptured

Definition at line 52 of file sv_onslaught.qh.

◆ lasthealth

float lasthealth

Definition at line 49 of file sv_onslaught.qh.

Referenced by ons_GeneratorDamage(), and ons_GeneratorReset().

◆ lastshielded

int lastshielded

Definition at line 51 of file sv_onslaught.qh.

◆ lastteam

int lastteam

Definition at line 50 of file sv_onslaught.qh.

◆ ons_captureshield_force

float ons_captureshield_force

Definition at line 76 of file sv_onslaught.qh.

Referenced by ons_CaptureShield_Touch(), and ons_Initialize().

◆ ONS_CP_THINKRATE

◆ ons_deathloc

vector ons_deathloc

Definition at line 66 of file sv_onslaught.qh.

◆ ons_notification_time

float ons_notification_time[17]

Definition at line 62 of file sv_onslaught.qh.

Referenced by ons_ControlPoint_Icon_Damage().

◆ ons_overtime_damagedelay

float ons_overtime_damagedelay

Definition at line 64 of file sv_onslaught.qh.

◆ ons_spawn_by

entity ons_spawn_by

Definition at line 68 of file sv_onslaught.qh.

◆ ons_stalemate

bool ons_stalemate

Definition at line 56 of file sv_onslaught.qh.

Referenced by MUTATOR_HOOKFUNCTION(), and Onslaught_CheckWinner().

◆ ons_toucher

entity ons_toucher

Definition at line 22 of file sv_onslaught.qh.

Referenced by ons_ControlPoint_Reset(), and ons_ControlPoint_Touch().

◆ ons_worldcplist

◆ ons_worldcpnext

entity ons_worldcpnext

Definition at line 37 of file sv_onslaught.qh.

◆ ons_worldgeneratorlist

◆ ons_worldgeneratornext

entity ons_worldgeneratornext

Definition at line 33 of file sv_onslaught.qh.

◆ ons_worldlinklist

entity ons_worldlinklist

Definition at line 40 of file sv_onslaught.qh.

Referenced by onslaught_updatelinks(), and spawnfunc().

◆ ons_worldlinknext

entity ons_worldlinknext

Definition at line 41 of file sv_onslaught.qh.

Referenced by spawnfunc().

◆ sprite

entity sprite

Definition at line 44 of file sv_onslaught.qh.

◆ ST_ONS_CAPS

const int ST_ONS_CAPS = 1

Definition at line 97 of file sv_onslaught.qh.

Referenced by ons_ScoreRules(), and Onslaught_CheckWinner().

◆ target2

◆ teleport_antispam

float teleport_antispam

Definition at line 58 of file sv_onslaught.qh.

◆ waslinked

bool waslinked

Definition at line 54 of file sv_onslaught.qh.