6 #include "../client/sys-pre.qh"
7 #include "../dpdefs/csprogsdefs.qc"
8 #include "../client/sys-post.qh"
9 #include "../client/Defs.qc"
10 #include "../dpdefs/keycodes.qc"
11 #include "constants.qh"
14 #include "util-pre.qh"
15 #include "../server/sys-pre.qh"
16 #include "../dpdefs/progsdefs.qc"
17 #include "../dpdefs/dpextensions.qc"
18 #include "../server/sys-post.qh"
19 #include "../warpzonelib/anglestransform.qh"
20 #include "../warpzonelib/mathlib.qh"
21 #include "../warpzonelib/common.qh"
22 #include "../warpzonelib/util_server.qh"
23 #include "../warpzonelib/server.qh"
24 #include "constants.qh"
27 // Full list of all stat constants, included in a single location for easy reference
28 // 255 is the current limit (MAX_CL_STATS - 1), engine will need to be modified if you wish to add more stats
30 const int MAX_CL_STATS = 256;
31 const int STAT_HEALTH = 0;
33 const int STAT_WEAPON = 2;
34 const int STAT_AMMO = 3;
35 const int STAT_ARMOR = 4;
36 const int STAT_WEAPONFRAME = 5;
37 const int STAT_SHELLS = 6;
38 const int STAT_NAILS = 7;
39 const int STAT_ROCKETS = 8;
40 const int STAT_CELLS = 9;
41 const int STAT_ACTIVEWEAPON = 10;
42 const int STAT_TOTALSECRETS = 11;
43 const int STAT_TOTALMONSTERS = 12;
44 const int STAT_SECRETS = 13;
45 const int STAT_MONSTERS = 14;
46 const int STAT_ITEMS = 15;
47 const int STAT_VIEWHEIGHT = 16;
52 const int STAT_VIEWZOOM = 21;
63 const int STAT_KH_KEYS = 32;
64 const int STAT_CTF_STATE = 33;
66 const int STAT_WEAPONS = 35;
67 const int STAT_SWITCHWEAPON = 36;
68 const int STAT_GAMESTARTTIME = 37;
69 const int STAT_STRENGTH_FINISHED = 38;
70 const int STAT_INVINCIBLE_FINISHED = 39;
72 const int STAT_ARC_HEAT = 41;
73 const int STAT_PRESSED_KEYS = 42;
74 const int STAT_ALLOW_OLDVORTEXBEAM = 43; // this stat could later contain some other bits of info, like, more server-side particle config
75 const int STAT_FUEL = 44;
76 const int STAT_NB_METERSTART = 45;
77 const int STAT_SHOTORG = 46; // compressShotOrigin
78 const int STAT_LEADLIMIT = 47;
79 const int STAT_WEAPON_CLIPLOAD = 48;
80 const int STAT_WEAPON_CLIPSIZE = 49;
81 const int STAT_VORTEX_CHARGE = 50;
82 const int STAT_LAST_PICKUP = 51;
83 const int STAT_HUD = 52;
84 const int STAT_VORTEX_CHARGEPOOL = 53;
85 const int STAT_HIT_TIME = 54;
86 const int STAT_DAMAGE_DEALT_TOTAL = 55;
87 const int STAT_TYPEHIT_TIME = 56;
88 const int STAT_LAYED_MINES = 57;
89 const int STAT_HAGAR_LOAD = 58;
90 const int STAT_SWITCHINGWEAPON = 59;
91 const int STAT_SUPERWEAPONS_FINISHED = 60;
92 const int STAT_VEHICLESTAT_HEALTH = 61;
93 const int STAT_VEHICLESTAT_SHIELD = 62;
94 const int STAT_VEHICLESTAT_ENERGY = 63;
95 const int STAT_VEHICLESTAT_AMMO1 = 64;
96 const int STAT_VEHICLESTAT_RELOAD1 = 65;
97 const int STAT_VEHICLESTAT_AMMO2 = 66;
98 const int STAT_VEHICLESTAT_RELOAD2 = 67;
99 const int STAT_VEHICLESTAT_W2MODE = 68;
100 const int STAT_NADE_TIMER = 69;
101 const int STAT_SECRETS_TOTAL = 70;
102 const int STAT_SECRETS_FOUND = 71;
103 const int STAT_RESPAWN_TIME = 72;
104 const int STAT_ROUNDSTARTTIME = 73;
105 const int STAT_WEAPONS2 = 74;
106 const int STAT_WEAPONS3 = 75;
107 const int STAT_MONSTERS_TOTAL = 76;
108 const int STAT_MONSTERS_KILLED = 77;
109 const int STAT_BUFFS = 78;
110 const int STAT_NADE_BONUS = 79;
111 const int STAT_NADE_BONUS_TYPE = 80;
112 const int STAT_NADE_BONUS_SCORE = 81;
113 const int STAT_HEALING_ORB = 82;
114 const int STAT_HEALING_ORB_ALPHA = 83;
115 const int STAT_PLASMA = 84;
116 const int STAT_OK_AMMO_CHARGE = 85;
117 const int STAT_OK_AMMO_CHARGEPOOL = 86;
133 /* The following stats change depending on the gamemode, so can share the same ID */
134 // IDs 100 to 104 reserved for gamemodes
136 // freeze tag, clan arena, jailbreak
137 const int STAT_REDALIVE = 100;
138 const int STAT_BLUEALIVE = 101;
139 const int STAT_YELLOWALIVE = 102;
140 const int STAT_PINKALIVE = 103;
143 const int STAT_DOM_TOTAL_PPS = 100;
144 const int STAT_DOM_PPS_RED = 101;
145 const int STAT_DOM_PPS_BLUE = 102;
146 const int STAT_DOM_PPS_YELLOW = 103;
147 const int STAT_DOM_PPS_PINK = 104;
150 const int STAT_VIP = 100;
151 const int STAT_VIP_RED = 101;
152 const int STAT_VIP_BLUE = 102;
153 const int STAT_VIP_YELLOW = 103;
154 const int STAT_VIP_PINK = 104;
157 const int STAT_KH_REDKEY_TEAM = 100;
158 const int STAT_KH_BLUEKEY_TEAM = 101;
159 const int STAT_KH_YELLOWKEY_TEAM = 102;
160 const int STAT_KH_PINKKEY_TEAM = 103;
162 /* Gamemode-specific stats end here */
165 const int STAT_FROZEN = 105;
166 const int STAT_REVIVE_PROGRESS = 106;
281 const int STAT_MOVEVARS_AIRACCEL_QW_STRETCHFACTOR = 220;
282 const int STAT_MOVEVARS_AIRCONTROL_PENALTY = 221;
283 const int STAT_MOVEVARS_AIRSPEEDLIMIT_NONQW = 222;
284 const int STAT_MOVEVARS_AIRSTRAFEACCEL_QW = 223;
285 const int STAT_MOVEVARS_AIRCONTROL_POWER = 224;
286 const int STAT_MOVEFLAGS = 225;
287 const int STAT_MOVEVARS_WARSOWBUNNY_AIRFORWARDACCEL = 226;
288 const int STAT_MOVEVARS_WARSOWBUNNY_ACCEL = 227;
289 const int STAT_MOVEVARS_WARSOWBUNNY_TOPSPEED = 228;
290 const int STAT_MOVEVARS_WARSOWBUNNY_TURNACCEL = 229;
291 const int STAT_MOVEVARS_WARSOWBUNNY_BACKTOSIDERATIO = 230;
292 const int STAT_MOVEVARS_AIRSTOPACCELERATE = 231;
293 const int STAT_MOVEVARS_AIRSTRAFEACCELERATE = 232;
294 const int STAT_MOVEVARS_MAXAIRSTRAFESPEED = 233;
295 const int STAT_MOVEVARS_AIRCONTROL = 234;
296 const int STAT_FRAGLIMIT = 235;
297 const int STAT_TIMELIMIT = 236;
298 const int STAT_MOVEVARS_WALLFRICTION = 237;
299 const int STAT_MOVEVARS_FRICTION = 238;
300 const int STAT_MOVEVARS_WATERFRICTION = 239;
301 const int STAT_MOVEVARS_TICRATE = 240;
302 const int STAT_MOVEVARS_TIMESCALE = 241;
303 const int STAT_MOVEVARS_GRAVITY = 242;
304 const int STAT_MOVEVARS_STOPSPEED = 243;
305 const int STAT_MOVEVARS_MAXSPEED = 244;
306 const int STAT_MOVEVARS_SPECTATORMAXSPEED = 245;
307 const int STAT_MOVEVARS_ACCELERATE = 246;
308 const int STAT_MOVEVARS_AIRACCELERATE = 247;
309 const int STAT_MOVEVARS_WATERACCELERATE = 248;
310 const int STAT_MOVEVARS_ENTGRAVITY = 249;
311 const int STAT_MOVEVARS_JUMPVELOCITY = 250;
312 const int STAT_MOVEVARS_EDGEFRICTION = 251;
313 const int STAT_MOVEVARS_MAXAIRSPEED = 252;
314 const int STAT_MOVEVARS_STEPHEIGHT = 253;
315 const int STAT_MOVEVARS_AIRACCEL_QW = 254;
316 const int STAT_MOVEVARS_AIRACCEL_SIDEWAYS_FRICTION = 255;