1 // these are needed since mutators are compiled last
5 .entity ons_toucher; // player who touched the control point
7 // control point / generator constants
8 #define CP_THINKRATE 0.2
15 .float isgenneighbor_red;
16 .float isgenneighbor_blue;
17 .float iscpneighbor_red;
18 .float iscpneighbor_blue;
25 entity ons_generator[17];
26 .float isgenneighbor[17];
27 .float iscpneighbor[17];
28 float ons_notification_time[17];
32 // declarations for functions used outside gamemode_onslaught.qc
33 void onslaught_generator_updatesprite(entity e);
34 void onslaught_controlpoint_updatesprite(entity e);
35 void onslaught_link_checkupdate();
36 float onslaught_controlpoint_attackable(entity cp, float t);
38 // CaptureShield: Prevent capturing or destroying control point/generator if it is not available yet
39 float ons_captureshield_force; // push force of the shield
41 // score rule declarations
44 #define SP_ONS_TAKES 6