]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/mutators/gamemode_onslaught.qh
Multiple improvements to onslaught code, including CSQC generators/control points...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / gamemode_onslaught.qh
1 // these are needed since mutators are compiled last
2
3 #ifdef SVQC
4
5 .entity ons_toucher; // player who touched the control point
6
7 // control point / generator constants
8 #define CP_THINKRATE 0.2
9
10 // definitions
11 .entity sprite;
12 .string target2;
13 .float iscaptured;
14 .float islinked;
15 .float isgenneighbor_red;
16 .float isgenneighbor_blue;
17 .float iscpneighbor_red;
18 .float iscpneighbor_blue;
19 .float isshielded;
20 .float lasthealth;
21 .float lastteam;
22 .float lastshielded;
23 .float lastcaptured;
24
25 entity ons_generator[17];
26 .float isgenneighbor[17];
27 .float iscpneighbor[17];
28 float ons_notification_time[17];
29
30 .vector ons_deathloc;
31
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);
37
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
40
41 // score rule declarations
42 #define ST_ONS_CAPS 1
43 #define SP_ONS_CAPS 4
44 #define SP_ONS_TAKES 6
45
46 #endif