Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
sv_onslaught.qh
Go to the documentation of this file.
1#pragma once
2
4
7void ons_Initialize();
8
9REGISTER_MUTATOR(ons, false)
10{
13 {
14 GameRules_teams(true);
16
18 }
19 return false;
20}
21
22.entity ons_toucher; // player who touched the control point
23
24// control point / generator constants
25const float ONS_CP_THINKRATE = 0.2;
26const float GEN_THINKRATE = 1;
27#define CPGEN_SPAWN_OFFSET ('0 0 1' * (PL_MAX_CONST.z - 13))
28const vector CPGEN_WAYPOINT_OFFSET = ('0 0 128');
29const vector CPICON_OFFSET = ('0 0 96');
30
31// list of generators on the map
34
35// list of control points on the map
38
39// list of links on the map
42
43// definitions
44.entity sprite;
45.string target2;
53
55
57
59
63
65
67
69
70// declarations for functions used outside sv_onslaught.qc
73bool ons_ControlPoint_Attackable(entity cp, int teamnum);
74
75// CaptureShield: Prevent capturing or destroying control point/generator if it is not available yet
76float ons_captureshield_force; // push force of the shield
77
78// bot player logic
83
85
87
91
93void havocbot_goalrating_items(entity this, float ratingscale, vector org, float sradius);
94void havocbot_goalrating_enemyplayers(entity this, float ratingscale, vector org, float sradius);
95
96// score rule declarations
97const int ST_ONS_GENS = 1;
#define MUTATOR_ONADD
Definition base.qh:309
#define REGISTER_MUTATOR(...)
Definition base.qh:295
#define MUTATOR_STATIC()
Definition base.qh:313
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
bool iscaptured
limitations: NULL cannot be present elements can only be present once a maximum of IL_MAX lists can e...
vector
Definition self.qh:92
vector org
Definition self.qh:92
entity sprite
Definition sv_assault.qc:11
float havocbot_attack_time
Definition sv_assault.qh:42
int arecpsneighbor
void havocbot_role_ons_offense(entity this)
const int HAVOCBOT_ONS_ROLE_DEFENSE
float ons_notification_time[17]
int isshielded
entity ons_worldcplist
string target2
const int ST_ONS_GENS
const int HAVOCBOT_ONS_ROLE_OFFENSE
int islinked
void havocbot_goalrating_items(entity this, float ratingscale, vector org, float sradius)
Definition roles.qc:106
void ons_ControlPoint_UpdateSprite(entity e)
float teleport_antispam
bool ons_stalemate
entity ons_toucher
entity ons_spawn_by
void havocbot_goalrating_enemyplayers(entity this, float ratingscale, vector org, float sradius)
Definition roles.qc:176
entity ons_worldgeneratornext
float ons_captureshield_force
bool ons_ControlPoint_Attackable(entity cp, int teamnum)
int lastteam
const int HAVOCBOT_ONS_ROLE_NONE
float autocvar_g_onslaught_point_limit
vector ons_deathloc
entity ons_worldlinklist
const vector CPICON_OFFSET
bool waslinked
entity ons_worldlinknext
IntrusiveList g_onsshields
int lastcaptured
void ons_Initialize()
entity ons_worldcpnext
int lastshielded
const vector CPGEN_WAYPOINT_OFFSET
float ons_overtime_damagedelay
entity havocbot_ons_target
void havocbot_role_ons_defense(entity this)
entity ons_worldgeneratorlist
const float GEN_THINKRATE
const int HAVOCBOT_ONS_ROLE_ASSISTANT
void havocbot_ons_reset_role(entity this)
float lasthealth
void havocbot_role_ons_assistant(entity this)
int aregensneighbor
void ons_Generator_UpdateSprite(entity e)
const float ONS_CP_THINKRATE
void GameRules_limit_score(int limit)
Definition sv_rules.qc:23
void GameRules_teams(bool value)
Definition sv_rules.qc:3