1 // Full list of all stat constants, icnluded in a single location for easy reference
2 // 255 is the current limit (MAX_CL_STATS - 1), engine will need to be modified if you wish to add more stats
4 const float MAX_CL_STATS = 256;
5 const float STAT_HEALTH = 0;
7 const float STAT_WEAPON = 2;
8 const float STAT_AMMO = 3;
9 const float STAT_ARMOR = 4;
10 const float STAT_WEAPONFRAME = 5;
11 const float STAT_SHELLS = 6;
12 const float STAT_NAILS = 7;
13 const float STAT_ROCKETS = 8;
14 const float STAT_CELLS = 9;
15 const float STAT_ACTIVEWEAPON = 10;
16 const float STAT_TOTALSECRETS = 11;
17 const float STAT_TOTALMONSTERS = 12;
18 const float STAT_SECRETS = 13;
19 const float STAT_MONSTERS = 14;
20 const float STAT_ITEMS = 15;
21 const float STAT_VIEWHEIGHT = 16;
26 const float STAT_VIEWZOOM = 21;
37 const float STAT_KH_KEYS = 32;
38 const float STAT_CTF_STATE = 33;
40 const float STAT_WEAPONS = 35;
41 const float STAT_SWITCHWEAPON = 36;
42 const float STAT_GAMESTARTTIME = 37;
43 const float STAT_STRENGTH_FINISHED = 38;
44 const float STAT_INVINCIBLE_FINISHED = 39;
47 const float STAT_PRESSED_KEYS = 42;
48 const float STAT_ALLOW_OLDNEXBEAM = 43; // this stat could later contain some other bits of info, like, more server-side particle config
49 const float STAT_FUEL = 44;
50 const float STAT_NB_METERSTART = 45;
51 const float STAT_SHOTORG = 46; // compressShotOrigin
52 const float STAT_LEADLIMIT = 47;
53 const float STAT_WEAPON_CLIPLOAD = 48;
54 const float STAT_WEAPON_CLIPSIZE = 49;
55 const float STAT_NEX_CHARGE = 50;
56 const float STAT_LAST_PICKUP = 51;
57 const float STAT_HUD = 52;
58 const float STAT_NEX_CHARGEPOOL = 53;
59 const float STAT_HIT_TIME = 54;
60 const float STAT_TYPEHIT_TIME = 55;
61 const float STAT_LAYED_MINES = 56;
62 const float STAT_HAGAR_LOAD = 57;
63 const float STAT_SWITCHINGWEAPON = 58;
64 const float STAT_SUPERWEAPONS_FINISHED = 59;
65 const float STAT_VEHICLESTAT_HEALTH = 60;
66 const float STAT_VEHICLESTAT_SHIELD = 61;
67 const float STAT_VEHICLESTAT_ENERGY = 62;
68 const float STAT_VEHICLESTAT_AMMO1 = 63;
69 const float STAT_VEHICLESTAT_RELOAD1 = 64;
70 const float STAT_VEHICLESTAT_AMMO2 = 65;
71 const float STAT_VEHICLESTAT_RELOAD2 = 66;
72 const float STAT_VEHICLESTAT_W2MODE = 67;
75 const float STAT_SECRETS_TOTAL = 70;
76 const float STAT_SECRETS_FOUND = 71;
77 const float STAT_RESPAWN_TIME = 72;
78 const float STAT_ROUNDSTARTTIME = 73;
79 const float STAT_WEAPONS2 = 74;
80 const float STAT_WEAPONS3 = 75;
81 const float STAT_MONSTERS_TOTAL = 76;
82 const float STAT_MONSTERS_KILLED = 77;
83 const float STAT_BUFFS = 78;
102 /* The following stats change depending on the gamemode, so can share the same ID */
103 // IDs 100 to 104 reserved for gamemodes
105 // freeze tag, clan arena, jailbreak
106 const float STAT_REDALIVE = 100;
107 const float STAT_BLUEALIVE = 101;
108 const float STAT_YELLOWALIVE = 102;
109 const float STAT_PINKALIVE = 103;
112 const float STAT_DOM_TOTAL_PPS = 100;
113 const float STAT_DOM_PPS_RED = 101;
114 const float STAT_DOM_PPS_BLUE = 102;
115 const float STAT_DOM_PPS_YELLOW = 103;
116 const float STAT_DOM_PPS_PINK = 104;
119 const float STAT_VIP = 100;
120 const float STAT_VIP_RED = 101;
121 const float STAT_VIP_BLUE = 102;
122 const float STAT_VIP_YELLOW = 103;
123 const float STAT_VIP_PINK = 104;
126 const float STAT_KH_REDKEY_TEAM = 100;
127 const float STAT_KH_BLUEKEY_TEAM = 101;
128 const float STAT_KH_YELLOWKEY_TEAM = 102;
129 const float STAT_KH_PINKKEY_TEAM = 103;
131 /* Gamemode-specific stats end here */
134 const float STAT_FROZEN = 105;
135 const float STAT_REVIVE_PROGRESS = 106;
250 const float STAT_MOVEVARS_AIRACCEL_QW_STRETCHFACTOR = 220;
251 const float STAT_MOVEVARS_AIRCONTROL_PENALTY = 221;
252 const float STAT_MOVEVARS_AIRSPEEDLIMIT_NONQW = 222;
253 const float STAT_MOVEVARS_AIRSTRAFEACCEL_QW = 223;
254 const float STAT_MOVEVARS_AIRCONTROL_POWER = 224;
255 const float STAT_MOVEFLAGS = 225;
256 const float STAT_MOVEVARS_WARSOWBUNNY_AIRFORWARDACCEL = 226;
257 const float STAT_MOVEVARS_WARSOWBUNNY_ACCEL = 227;
258 const float STAT_MOVEVARS_WARSOWBUNNY_TOPSPEED = 228;
259 const float STAT_MOVEVARS_WARSOWBUNNY_TURNACCEL = 229;
260 const float STAT_MOVEVARS_WARSOWBUNNY_BACKTOSIDERATIO = 230;
261 const float STAT_MOVEVARS_AIRSTOPACCELERATE = 231;
262 const float STAT_MOVEVARS_AIRSTRAFEACCELERATE = 232;
263 const float STAT_MOVEVARS_MAXAIRSTRAFESPEED = 233;
264 const float STAT_MOVEVARS_AIRCONTROL = 234;
265 const float STAT_FRAGLIMIT = 235;
266 const float STAT_TIMELIMIT = 236;
267 const float STAT_MOVEVARS_WALLFRICTION = 237;
268 const float STAT_MOVEVARS_FRICTION = 238;
269 const float STAT_MOVEVARS_WATERFRICTION = 239;
270 const float STAT_MOVEVARS_TICRATE = 240;
271 const float STAT_MOVEVARS_TIMESCALE = 241;
272 const float STAT_MOVEVARS_GRAVITY = 242;
273 const float STAT_MOVEVARS_STOPSPEED = 243;
274 const float STAT_MOVEVARS_MAXSPEED = 244;
275 const float STAT_MOVEVARS_SPECTATORMAXSPEED = 245;
276 const float STAT_MOVEVARS_ACCELERATE = 246;
277 const float STAT_MOVEVARS_AIRACCELERATE = 247;
278 const float STAT_MOVEVARS_WATERACCELERATE = 248;
279 const float STAT_MOVEVARS_ENTGRAVITY = 249;
280 const float STAT_MOVEVARS_JUMPVELOCITY = 250;
281 const float STAT_MOVEVARS_EDGEFRICTION = 251;
282 const float STAT_MOVEVARS_MAXAIRSPEED = 252;
283 const float STAT_MOVEVARS_STEPHEIGHT = 253;
284 const float STAT_MOVEVARS_AIRACCEL_QW = 254;
285 const float STAT_MOVEVARS_AIRACCEL_SIDEWAYS_FRICTION = 255;