]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/stats.qh
Merge branch 'master' into Mario/ctf_updates
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / stats.qh
1 #ifndef STATS_H
2 #define STATS_H
3
4 // Full list of all stat constants, included in a single location for easy reference
5 // 255 is the current limit (MAX_CL_STATS - 1), engine will need to be modified if you wish to add more stats
6
7 const int MAX_CL_STATS                = 256;
8 // -Wdouble-declaration
9 // const int STAT_HEALTH                 = 0;
10 // 1 empty?
11 const int STAT_WEAPON                 = 2;
12 // -Wdouble-declaration
13 // const int STAT_AMMO                   = 3;
14 // -Wdouble-declaration
15 // const int STAT_ARMOR                  = 4;
16 // -Wdouble-declaration
17 // const int STAT_WEAPONFRAME            = 5;
18 // -Wdouble-declaration
19 // const int STAT_SHELLS                 = 6;
20 // -Wdouble-declaration
21 // const int STAT_NAILS                  = 7;
22 // -Wdouble-declaration
23 // const int STAT_ROCKETS                = 8;
24 // -Wdouble-declaration
25 // const int STAT_CELLS                  = 9;
26 // -Wdouble-declaration
27 // const int STAT_ACTIVEWEAPON           = 10;
28 // -Wdouble-declaration
29 // const int STAT_TOTALSECRETS           = 11;
30 // -Wdouble-declaration
31 // const int STAT_TOTALMONSTERS          = 12;
32 // -Wdouble-declaration
33 // const int STAT_SECRETS                = 13;
34 // -Wdouble-declaration
35 // const int STAT_MONSTERS               = 14;
36 // -Wdouble-declaration
37 // const int STAT_ITEMS                  = 15;
38 // -Wdouble-declaration
39 // const int STAT_VIEWHEIGHT             = 16;
40 // 17 empty?
41 // 18 empty?
42 // 19 empty?
43 // 20 empty?
44 const int STAT_VIEWZOOM               = 21;
45 // 22 empty?
46 // 23 empty?
47 // 24 empty?
48 // 25 empty?
49 // 26 empty?
50 // 27 empty?
51 // 28 empty?
52 // 29 empty?
53 // 30 empty?
54 // 31 empty?
55 const int STAT_KH_KEYS                = 32;
56 const int STAT_CTF_STATE              = 33;
57 // 34 empty?
58 const int STAT_WEAPONS                = 35;
59 const int STAT_SWITCHWEAPON           = 36;
60 const int STAT_GAMESTARTTIME          = 37;
61 const int STAT_STRENGTH_FINISHED      = 38;
62 const int STAT_INVINCIBLE_FINISHED    = 39;
63 // 40 empty?
64 const int STAT_ARC_HEAT               = 41;
65 const int STAT_PRESSED_KEYS           = 42;
66 const int STAT_ALLOW_OLDVORTEXBEAM    = 43; // this stat could later contain some other bits of info, like, more server-side particle config
67 const int STAT_FUEL                   = 44;
68 const int STAT_NB_METERSTART          = 45;
69 const int STAT_SHOTORG                = 46; // compressShotOrigin
70 const int STAT_LEADLIMIT              = 47;
71 const int STAT_WEAPON_CLIPLOAD        = 48;
72 const int STAT_WEAPON_CLIPSIZE        = 49;
73 const int STAT_VORTEX_CHARGE          = 50;
74 const int STAT_LAST_PICKUP            = 51;
75 const int STAT_HUD                    = 52;
76 const int STAT_VORTEX_CHARGEPOOL      = 53;
77 const int STAT_HIT_TIME               = 54;
78 const int STAT_DAMAGE_DEALT_TOTAL     = 55;
79 const int STAT_TYPEHIT_TIME           = 56;
80 const int STAT_LAYED_MINES            = 57;
81 const int STAT_HAGAR_LOAD             = 58;
82 const int STAT_SWITCHINGWEAPON        = 59;
83 const int STAT_SUPERWEAPONS_FINISHED  = 60;
84 const int STAT_VEHICLESTAT_HEALTH     = 61;
85 const int STAT_VEHICLESTAT_SHIELD     = 62;
86 const int STAT_VEHICLESTAT_ENERGY     = 63;
87 const int STAT_VEHICLESTAT_AMMO1      = 64;
88 const int STAT_VEHICLESTAT_RELOAD1    = 65;
89 const int STAT_VEHICLESTAT_AMMO2      = 66;
90 const int STAT_VEHICLESTAT_RELOAD2    = 67;
91 const int STAT_VEHICLESTAT_W2MODE     = 68;
92 const int STAT_NADE_TIMER             = 69;
93 const int STAT_SECRETS_TOTAL          = 70;
94 const int STAT_SECRETS_FOUND          = 71;
95 const int STAT_RESPAWN_TIME           = 72;
96 const int STAT_ROUNDSTARTTIME         = 73;
97 const int STAT_WEAPONS2               = 74;
98 const int STAT_WEAPONS3               = 75;
99 const int STAT_MONSTERS_TOTAL         = 76;
100 const int STAT_MONSTERS_KILLED        = 77;
101 const int STAT_BUFFS                  = 78;
102 const int STAT_NADE_BONUS             = 79;
103 const int STAT_NADE_BONUS_TYPE        = 80;
104 const int STAT_NADE_BONUS_SCORE       = 81;
105 const int STAT_HEALING_ORB            = 82;
106 const int STAT_HEALING_ORB_ALPHA      = 83;
107 const int STAT_PLASMA                 = 84;
108 const int STAT_OK_AMMO_CHARGE         = 85;
109 const int STAT_OK_AMMO_CHARGEPOOL     = 86;
110 const int STAT_CTF_FLAGSTATUS         = 87;
111 const int STAT_FROZEN                 = 88;
112 const int STAT_REVIVE_PROGRESS        = 89;
113 // 89 empty?
114 // 90 empty?
115 // 91 empty?
116 // 92 empty?
117 // 93 empty?
118 // 94 empty?
119 // 95 empty?
120 // 96 empty?
121 // 97 empty?
122 // 98 empty?
123 // 99 empty?
124
125
126 /* The following stats change depending on the gamemode, so can share the same ID */
127 // IDs 100 to 104 reserved for gamemodes
128
129 // freeze tag, clan arena, jailbreak
130 const int STAT_REDALIVE               = 100;
131 const int STAT_BLUEALIVE              = 101;
132 const int STAT_YELLOWALIVE            = 102;
133 const int STAT_PINKALIVE              = 103;
134
135 // domination
136 const int STAT_DOM_TOTAL_PPS          = 100;
137 const int STAT_DOM_PPS_RED            = 101;
138 const int STAT_DOM_PPS_BLUE           = 102;
139 const int STAT_DOM_PPS_YELLOW         = 103;
140 const int STAT_DOM_PPS_PINK           = 104;
141
142 // vip
143 const int STAT_VIP                    = 100;
144 const int STAT_VIP_RED                = 101;
145 const int STAT_VIP_BLUE               = 102;
146 const int STAT_VIP_YELLOW             = 103;
147 const int STAT_VIP_PINK               = 104;
148
149 // key hunt
150 const int STAT_KH_REDKEY_TEAM         = 100;
151 const int STAT_KH_BLUEKEY_TEAM        = 101;
152 const int STAT_KH_YELLOWKEY_TEAM      = 102;
153 const int STAT_KH_PINKKEY_TEAM        = 103;
154
155 /* Gamemode-specific stats end here */
156
157 const int STAT_PL_VIEW_OFS1           = 105;
158 const int STAT_PL_VIEW_OFS2           = 106;
159 const int STAT_PL_VIEW_OFS3           = 107;
160 const int STAT_PL_MIN1                = 108;
161 const int STAT_PL_MIN2                = 109;
162 const int STAT_PL_MIN3                = 110;
163 const int STAT_PL_MAX1                = 111;
164 const int STAT_PL_MAX2                = 112;
165 const int STAT_PL_MAX3                = 113;
166 const int STAT_PL_CROUCH_MIN1         = 114;
167 const int STAT_PL_CROUCH_MIN2         = 115;
168 const int STAT_PL_CROUCH_MIN3         = 116;
169 const int STAT_PL_CROUCH_MAX1         = 117;
170 const int STAT_PL_CROUCH_MAX2         = 118;
171 const int STAT_PL_CROUCH_MAX3         = 119;
172 const int STAT_PL_CROUCH_VIEW_OFS1    = 117;
173 const int STAT_PL_CROUCH_VIEW_OFS2    = 118;
174 const int STAT_PL_CROUCH_VIEW_OFS3    = 119;
175 // 120 empty?
176 // 121 empty?
177 // 122 empty?
178 // 123 empty?
179 // 124 empty?
180 // 125 empty?
181 // 126 empty?
182 // 127 empty?
183 // 128 empty?
184 // 129 empty?
185 // 130 empty?
186 // 131 empty?
187 // 132 empty?
188 // 133 empty?
189 // 134 empty?
190 // 135 empty?
191 // 136 empty?
192 // 137 empty?
193 // 138 empty?
194 // 139 empty?
195 // 140 empty?
196 // 141 empty?
197 // 142 empty?
198 // 143 empty?
199 // 144 empty?
200 // 145 empty?
201 // 146 empty?
202 // 147 empty?
203 // 148 empty?
204 // 149 empty?
205 // 150 empty?
206 // 151 empty?
207 // 152 empty?
208 // 153 empty?
209 // 154 empty?
210 // 155 empty?
211 // 156 empty?
212 // 157 empty?
213 // 158 empty?
214 // 159 empty?
215 // 160 empty?
216 // 161 empty?
217 // 162 empty?
218 // 162 empty?
219 // 163 empty?
220 // 164 empty?
221 // 165 empty?
222 // 166 empty?
223 // 167 empty?
224 const int STAT_GAMEPLAYFIX_UPVELOCITYCLEARSONGROUND   = 168;
225 const int STAT_BUGRIGS_REVERSE_STOPPING               = 169;
226 const int STAT_BUGRIGS_REVERSE_SPINNING               = 170;
227 const int STAT_BUGRIGS_CAR_JUMPING                    = 171;
228 const int STAT_BUGRIGS_FRICTION_AIR                   = 172;
229 const int STAT_BUGRIGS_STEER                          = 173;
230 const int STAT_BUGRIGS_SPEED_POW                      = 174;
231 const int STAT_BUGRIGS_SPEED_REF                      = 175;
232 const int STAT_BUGRIGS_ACCEL                          = 176;
233 const int STAT_BUGRIGS_FRICTION_BRAKE                 = 177;
234 const int STAT_BUGRIGS_AIR_STEERING                   = 178;
235 const int STAT_BUGRIGS_FRICTION_FLOOR                 = 179;
236 const int STAT_BUGRIGS_REVERSE_SPEEDING               = 180;
237 const int STAT_BUGRIGS_PLANAR_MOVEMENT                = 181;
238 const int STAT_BUGRIGS_ANGLE_SMOOTHING                = 182;
239 const int STAT_BUGRIGS                                = 183;
240 const int STAT_GAMEPLAYFIX_STEPDOWN                   = 184;
241 const int STAT_MOVEVARS_JUMPSTEP                      = 185;
242 const int STAT_NOSTEP                                 = 186;
243 const int STAT_GAMEPLAYFIX_UNSTICKPLAYERS             = 187;
244 const int STAT_GAMEPLAYFIX_STEPMULTIPLETIMES          = 188;
245 const int STAT_GAMEPLAYFIX_DOWNTRACEONGROUND          = 189;
246 const int STAT_GAMEPLAYFIX_EASIERWATERJUMP            = 190;
247 const int STAT_MOVEVARS_FRICTION_SLICK                = 191;
248 const int STAT_MOVEVARS_FRICTION_ONLAND               = 192;
249 const int STAT_MOVEVARS_JUMPSPEEDCAP_DISABLE_ONRAMPS  = 193;
250 const int STAT_MOVEVARS_JUMPSPEEDCAP_MAX              = 194;
251 const int STAT_MOVEVARS_JUMPSPEEDCAP_MIN              = 195;
252 const int STAT_DOUBLEJUMP                             = 196;
253 const int STAT_MOVEVARS_TRACK_CANJUMP                 = 197;
254 const int STAT_MULTIJUMP_ADD                          = 198;
255 const int STAT_MULTIJUMP_SPEED                        = 199;
256 const int STAT_MULTIJUMP                              = 200;
257 const int STAT_DODGING_TIMEOUT                        = 201;
258 const int STAT_DODGING_WALL                           = 202;
259 const int STAT_DODGING_UP_SPEED                       = 203;
260 const int STAT_DODGING_RAMP_TIME                      = 204;
261 const int STAT_DODGING_HEIGHT_THRESHOLD               = 205;
262 const int STAT_DODGING_DISTANCE_THRESHOLD             = 206;
263 const int STAT_DODGING_HORIZ_SPEED                    = 207;
264 const int STAT_DODGING_DELAY                          = 208;
265 const int STAT_DODGING_FROZEN_NO_DOUBLETAP            = 209;
266 const int STAT_DODGING_HORIZ_SPEED_FROZEN             = 210;
267 const int STAT_DODGING                                = 211;
268 const int STAT_DODGING_FROZEN                         = 212;
269 const int STAT_JETPACK_MAXSPEED_UP                    = 213;
270 const int STAT_JETPACK_MAXSPEED_SIDE                  = 214;
271 const int STAT_JETPACK_FUEL                           = 215;
272 const int STAT_JETPACK_ANTIGRAVITY                    = 216;
273 const int STAT_JETPACK_ACCEL_SIDE                     = 217;
274 const int STAT_JETPACK_ACCEL_UP                       = 218;
275 const int STAT_MOVEVARS_HIGHSPEED                     = 219;
276 const int STAT_MOVEVARS_AIRACCEL_QW_STRETCHFACTOR     = 220;
277 const int STAT_MOVEVARS_AIRCONTROL_PENALTY            = 221;
278 const int STAT_MOVEVARS_AIRSPEEDLIMIT_NONQW           = 222;
279 const int STAT_MOVEVARS_AIRSTRAFEACCEL_QW             = 223;
280 const int STAT_MOVEVARS_AIRCONTROL_POWER              = 224;
281 const int STAT_MOVEFLAGS                              = 225;
282 const int STAT_MOVEVARS_WARSOWBUNNY_AIRFORWARDACCEL   = 226;
283 const int STAT_MOVEVARS_WARSOWBUNNY_ACCEL             = 227;
284 const int STAT_MOVEVARS_WARSOWBUNNY_TOPSPEED          = 228;
285 const int STAT_MOVEVARS_WARSOWBUNNY_TURNACCEL         = 229;
286 const int STAT_MOVEVARS_WARSOWBUNNY_BACKTOSIDERATIO   = 230;
287 const int STAT_MOVEVARS_AIRSTOPACCELERATE             = 231;
288 const int STAT_MOVEVARS_AIRSTRAFEACCELERATE           = 232;
289 const int STAT_MOVEVARS_MAXAIRSTRAFESPEED             = 233;
290 const int STAT_MOVEVARS_AIRCONTROL                    = 234;
291 // -Wdouble-declaration
292 // const int STAT_FRAGLIMIT                              = 235;
293 // -Wdouble-declaration
294 // const int STAT_TIMELIMIT                              = 236;
295 const int STAT_MOVEVARS_WALLFRICTION                  = 237;
296 const int STAT_MOVEVARS_FRICTION                      = 238;
297 const int STAT_MOVEVARS_WATERFRICTION                 = 239;
298 // -Wdouble-declaration
299 // const int STAT_MOVEVARS_TICRATE                       = 240;
300 // -Wdouble-declaration
301 // const int STAT_MOVEVARS_TIMESCALE                     = 241;
302 // -Wdouble-declaration
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;
317 #endif