3 float autocvar_g_onslaught_point_limit;
6 REGISTER_MUTATOR(ons, false)
11 GameRules_teams(true);
12 GameRules_limit_score(autocvar_g_onslaught_point_limit);
19 .entity ons_toucher; // player who touched the control point
21 // control point / generator constants
22 const float ONS_CP_THINKRATE = 0.2;
23 const float GEN_THINKRATE = 1;
24 #define CPGEN_SPAWN_OFFSET ('0 0 1' * (PL_MAX_CONST.z - 13))
25 const vector CPGEN_WAYPOINT_OFFSET = ('0 0 128');
26 const vector CPICON_OFFSET = ('0 0 96');
28 // list of generators on the map
29 entity ons_worldgeneratorlist;
30 .entity ons_worldgeneratornext;
32 // list of control points on the map
33 entity ons_worldcplist;
34 .entity ons_worldcpnext;
36 // list of links on the map
37 entity ons_worldlinklist;
38 .entity ons_worldlinknext;
55 .float teleport_antispam;
59 float ons_notification_time[17];
61 .float ons_overtime_damagedelay;
67 // declarations for functions used outside gamemode_onslaught.qc
68 void ons_Generator_UpdateSprite(entity e);
69 void ons_ControlPoint_UpdateSprite(entity e);
70 bool ons_ControlPoint_Attackable(entity cp, int teamnum);
72 // CaptureShield: Prevent capturing or destroying control point/generator if it is not available yet
73 float ons_captureshield_force; // push force of the shield
76 const int HAVOCBOT_ONS_ROLE_NONE = 0;
77 const int HAVOCBOT_ONS_ROLE_DEFENSE = 2;
78 const int HAVOCBOT_ONS_ROLE_ASSISTANT = 4;
79 const int HAVOCBOT_ONS_ROLE_OFFENSE = 8;
81 .entity havocbot_ons_target;
83 .float havocbot_attack_time;
85 void havocbot_role_ons_defense(entity this);
86 void havocbot_role_ons_offense(entity this);
87 void havocbot_role_ons_assistant(entity this);
89 void havocbot_ons_reset_role(entity this);
90 void havocbot_goalrating_items(entity this, float ratingscale, vector org, float sradius);
91 void havocbot_goalrating_enemyplayers(entity this, float ratingscale, vector org, float sradius);
93 // score rule declarations
94 const int ST_ONS_CAPS = 1;