Merge branch 'martin-t/limit'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / stats.qh
1 #pragma once
2
3 #ifdef SVQC
4 #include <server/autocvars.qh>
5 #include <server/client.qh>
6 #endif
7
8 // Full list of all stat constants, included in a single location for easy reference
9 // 255 is the current limit (MAX_CL_STATS - 1), engine will need to be modified if you wish to add more stats
10
11 const int MAX_CL_STATS = 256;
12
13 // const int STAT_HEALTH = 0;
14 // const int STAT_ARMOR = 4;
15 // const int STAT_SHELLS = 6;
16 // const int STAT_NAILS = 7;
17 // const int STAT_ROCKETS = 8;
18 // const int STAT_CELLS = 9;
19 // const int STAT_ACTIVEWEAPON = 10;
20 // const int STAT_ITEMS = 15; // .items | .items2 << 23 | serverflags << 28
21 // const int STAT_VIEWHEIGHT = 16;
22
23 #if defined(CSQC)
24     #define g_stat_HEALTH getstati(STAT_HEALTH)
25     #define g_stat_ARMOR getstat_int(STAT_ARMOR)
26     #define g_stat_SHELLS getstat_int(STAT_SHELLS)
27     #define g_stat_NAILS getstat_int(STAT_NAILS)
28     #define g_stat_ROCKETS getstat_int(STAT_ROCKETS)
29     #define g_stat_CELLS getstat_int(STAT_CELLS)
30     #define g_stat_ACTIVEWEAPON getstat_int(STAT_ACTIVEWEAPON)
31     #define g_stat_ITEMS getstat_int(STAT_ITEMS)
32     #define g_stat_VIEWHEIGHT getstati(STAT_VIEWHEIGHT)
33 #elif defined(SVQC)
34     #define stat_HEALTH health
35     #define stat_ARMOR armorvalue
36     #define stat_SHELLS ammo_shells
37     #define stat_NAILS ammo_nails
38     #define stat_ROCKETS ammo_rockets
39     #define stat_CELLS ammo_cells
40     #define stat_ACTIVEWEAPON weapon
41     #define stat_ITEMS items
42     #define stat_VIEWHEIGHT view_ofs_z
43 #endif
44
45 #ifdef SVQC
46 /// all the weapons actually spawned in the map, does not include filtered items
47 vector weaponsInMap;
48 /// all the weapons placed by the mapper (weaponreplace applied), ignores most filters
49 vector weaponsInMapAll;
50 #endif
51
52 REGISTER_STAT(WEAPONS, vectori)
53 REGISTER_STAT(WEAPONSINMAP, vectori, weaponsInMap)
54
55 REGISTER_STAT(PL_VIEW_OFS, vector)
56 REGISTER_STAT(PL_CROUCH_VIEW_OFS, vector)
57
58 REGISTER_STAT(PL_MIN, vector)
59 REGISTER_STAT(PL_CROUCH_MIN, vector)
60
61 REGISTER_STAT(PL_MAX, vector)
62 REGISTER_STAT(PL_CROUCH_MAX, vector)
63
64 REGISTER_STAT(KH_KEYS, int)
65
66 #ifdef SVQC
67 float W_WeaponRateFactor(entity this);
68 float game_stopped;
69 float game_starttime;
70 float round_starttime;
71 bool autocvar_g_allow_oldvortexbeam;
72 int autocvar_leadlimit;
73 #endif
74 REGISTER_STAT(WEAPONRATEFACTOR, float, W_WeaponRateFactor(this))
75 REGISTER_STAT(GAME_STOPPED, int, game_stopped)
76 REGISTER_STAT(GAMESTARTTIME, float, game_starttime)
77 REGISTER_STAT(STRENGTH_FINISHED, float)
78 REGISTER_STAT(INVINCIBLE_FINISHED, float)
79 /** arc heat in [0,1] */
80 REGISTER_STAT(PRESSED_KEYS, int)
81 /** this stat could later contain some other bits of info, like, more server-side particle config */
82 REGISTER_STAT(ALLOW_OLDVORTEXBEAM, bool, autocvar_g_allow_oldvortexbeam)
83 REGISTER_STAT(FUEL, int)
84 REGISTER_STAT(NB_METERSTART, float)
85 /** compressShotOrigin */
86 REGISTER_STAT(SHOTORG, int)
87 REGISTER_STAT(LEADLIMIT, float, autocvar_leadlimit)
88 REGISTER_STAT(LEADLIMIT_AND_FRAGLIMIT, float, autocvar_leadlimit_and_fraglimit)
89
90 REGISTER_STAT(LAST_PICKUP, float)
91 REGISTER_STAT(HUD, int)
92 REGISTER_STAT(HIT_TIME, float)
93 REGISTER_STAT(DAMAGE_DEALT_TOTAL, int)
94 REGISTER_STAT(TYPEHIT_TIME, float)
95 REGISTER_STAT(SUPERWEAPONS_FINISHED, float)
96 REGISTER_STAT(AIR_FINISHED, float)
97 REGISTER_STAT(VEHICLESTAT_HEALTH, int)
98 REGISTER_STAT(VEHICLESTAT_SHIELD, int)
99 REGISTER_STAT(VEHICLESTAT_ENERGY, int)
100 REGISTER_STAT(VEHICLESTAT_AMMO1, int)
101 REGISTER_STAT(VEHICLESTAT_RELOAD1, int)
102 REGISTER_STAT(VEHICLESTAT_AMMO2, int)
103 REGISTER_STAT(VEHICLESTAT_RELOAD2, int)
104 REGISTER_STAT(VEHICLESTAT_W2MODE, int)
105 REGISTER_STAT(NADE_TIMER, float)
106 REGISTER_STAT(SECRETS_TOTAL, float)
107 REGISTER_STAT(SECRETS_FOUND, float)
108 REGISTER_STAT(RESPAWN_TIME, float)
109 REGISTER_STAT(ROUNDSTARTTIME, float, round_starttime)
110 REGISTER_STAT(MONSTERS_TOTAL, int)
111 REGISTER_STAT(MONSTERS_KILLED, int)
112 REGISTER_STAT(BUFFS, int)
113 REGISTER_STAT(NADE_BONUS, float)
114 REGISTER_STAT(NADE_BONUS_TYPE, int)
115 REGISTER_STAT(NADE_BONUS_SCORE, float)
116 REGISTER_STAT(HEALING_ORB, float)
117 REGISTER_STAT(HEALING_ORB_ALPHA, float)
118 REGISTER_STAT(PLASMA, int)
119 REGISTER_STAT(FROZEN, int)
120 REGISTER_STAT(REVIVE_PROGRESS, float)
121 REGISTER_STAT(ROUNDLOST, int)
122 REGISTER_STAT(BUFF_TIME, float)
123 REGISTER_STAT(CTF_FLAGSTATUS, int)
124 REGISTER_STAT(CAPTURE_PROGRESS, float)
125 REGISTER_STAT(ENTRAP_ORB, float)
126 REGISTER_STAT(ENTRAP_ORB_ALPHA, float)
127 REGISTER_STAT(ITEMSTIME, int, autocvar_sv_itemstime)
128 REGISTER_STAT(KILL_TIME, float)
129 REGISTER_STAT(VEIL_ORB, float)
130 REGISTER_STAT(VEIL_ORB_ALPHA, float)
131
132 #ifdef SVQC
133 float autocvar_sv_showfps = 5;
134 #endif
135 REGISTER_STAT(SHOWFPS, float, autocvar_sv_showfps)
136
137 #ifdef SVQC
138 bool autocvar_g_ctf_leaderboard;
139 #endif
140 REGISTER_STAT(CTF_SHOWLEADERBOARD, bool, autocvar_g_ctf_leaderboard)
141
142 #ifdef SVQC
143 int autocvar_g_multijump;
144 float autocvar_g_multijump_add;
145 float autocvar_g_multijump_speed;
146 float autocvar_g_multijump_maxspeed;
147 float autocvar_g_multijump_dodging = 1;
148 bool autocvar_g_multijump_client = true;
149 #endif
150 REGISTER_STAT(MULTIJUMP_DODGING, int, autocvar_g_multijump_dodging)
151 REGISTER_STAT(MULTIJUMP_MAXSPEED, float, autocvar_g_multijump_maxspeed)
152 REGISTER_STAT(MULTIJUMP_ADD, int, autocvar_g_multijump_add)
153 REGISTER_STAT(MULTIJUMP_SPEED, float, autocvar_g_multijump_speed)
154 REGISTER_STAT(MULTIJUMP_CLIENT, bool, autocvar_g_multijump_client)
155 .int multijump_count;
156 REGISTER_STAT(MULTIJUMP_COUNT, int, this.multijump_count)
157 REGISTER_STAT(MULTIJUMP, int, autocvar_g_multijump)
158 REGISTER_STAT(DOUBLEJUMP, int, autocvar_sv_doublejump)
159
160 #ifdef SVQC
161 bool g_bugrigs;
162 bool g_bugrigs_planar_movement;
163 bool g_bugrigs_planar_movement_car_jumping;
164 float g_bugrigs_reverse_spinning;
165 float g_bugrigs_reverse_speeding;
166 float g_bugrigs_reverse_stopping;
167 float g_bugrigs_air_steering;
168 float g_bugrigs_angle_smoothing;
169 float g_bugrigs_friction_floor;
170 float g_bugrigs_friction_brake;
171 float g_bugrigs_friction_air;
172 float g_bugrigs_accel;
173 float g_bugrigs_speed_ref;
174 float g_bugrigs_speed_pow;
175 float g_bugrigs_steer;
176 #endif
177 REGISTER_STAT(BUGRIGS, int, g_bugrigs)
178 REGISTER_STAT(BUGRIGS_ACCEL, float, g_bugrigs_accel)
179 REGISTER_STAT(BUGRIGS_AIR_STEERING, int, g_bugrigs_air_steering)
180 REGISTER_STAT(BUGRIGS_ANGLE_SMOOTHING, int, g_bugrigs_angle_smoothing)
181 REGISTER_STAT(BUGRIGS_CAR_JUMPING, int, g_bugrigs_planar_movement_car_jumping)
182 REGISTER_STAT(BUGRIGS_FRICTION_AIR, float, g_bugrigs_friction_air)
183 REGISTER_STAT(BUGRIGS_FRICTION_BRAKE, float, g_bugrigs_friction_brake)
184 REGISTER_STAT(BUGRIGS_FRICTION_FLOOR, float, g_bugrigs_friction_floor)
185 REGISTER_STAT(BUGRIGS_PLANAR_MOVEMENT, int, g_bugrigs_planar_movement)
186 REGISTER_STAT(BUGRIGS_REVERSE_SPEEDING, int, g_bugrigs_reverse_speeding)
187 REGISTER_STAT(BUGRIGS_REVERSE_SPINNING, int, g_bugrigs_reverse_spinning)
188 REGISTER_STAT(BUGRIGS_REVERSE_STOPPING, int, g_bugrigs_reverse_stopping)
189 REGISTER_STAT(BUGRIGS_SPEED_POW, float, g_bugrigs_speed_pow)
190 REGISTER_STAT(BUGRIGS_SPEED_REF, float, g_bugrigs_speed_ref)
191 REGISTER_STAT(BUGRIGS_STEER, float, g_bugrigs_steer)
192
193 #ifdef SVQC
194 int autocvar_sv_gameplayfix_downtracesupportsongroundflag = 1;
195 int autocvar_sv_gameplayfix_easierwaterjump = 1;
196 int autocvar_sv_gameplayfix_stepdown = 2;
197 float autocvar_sv_gameplayfix_stepdown_maxspeed = 0;
198 int autocvar_sv_gameplayfix_stepmultipletimes = 1;
199 int autocvar_sv_gameplayfix_unstickplayers = 1;
200 int autocvar_sv_gameplayfix_fixedcheckwatertransition = 1;
201 int autocvar_sv_gameplayfix_slidemoveprojectiles = 1;
202 int autocvar_sv_gameplayfix_grenadebouncedownslopes = 1;
203 int autocvar_sv_gameplayfix_noairborncorpse = 1;
204 int autocvar_sv_gameplayfix_noairborncorpse_allowsuspendeditems = 1;
205 #endif
206 REGISTER_STAT(GAMEPLAYFIX_DOWNTRACEONGROUND, int, autocvar_sv_gameplayfix_downtracesupportsongroundflag)
207 REGISTER_STAT(GAMEPLAYFIX_EASIERWATERJUMP, int, autocvar_sv_gameplayfix_easierwaterjump)
208 REGISTER_STAT(GAMEPLAYFIX_STEPDOWN, int, autocvar_sv_gameplayfix_stepdown)
209 REGISTER_STAT(GAMEPLAYFIX_STEPDOWN_MAXSPEED, float, autocvar_sv_gameplayfix_stepdown_maxspeed)
210 REGISTER_STAT(GAMEPLAYFIX_STEPMULTIPLETIMES, int, autocvar_sv_gameplayfix_stepmultipletimes)
211 REGISTER_STAT(GAMEPLAYFIX_UNSTICKPLAYERS, int, autocvar_sv_gameplayfix_unstickplayers)
212 REGISTER_STAT(GAMEPLAYFIX_UPVELOCITYCLEARSONGROUND, int, autocvar_sv_gameplayfix_upwardvelocityclearsongroundflag)
213 REGISTER_STAT(GAMEPLAYFIX_WATERTRANSITION, int, autocvar_sv_gameplayfix_fixedcheckwatertransition)
214 REGISTER_STAT(GAMEPLAYFIX_SLIDEMOVEPROJECTILES, int, autocvar_sv_gameplayfix_slidemoveprojectiles)
215 REGISTER_STAT(GAMEPLAYFIX_GRENADEBOUNCESLOPES, int, autocvar_sv_gameplayfix_grenadebouncedownslopes)
216 REGISTER_STAT(GAMEPLAYFIX_NOAIRBORNCORPSE, int, autocvar_sv_gameplayfix_noairborncorpse)
217 REGISTER_STAT(NOAIRBORNCORPSE_ALLOWSUSPENDED, int, autocvar_sv_gameplayfix_noairborncorpse_allowsuspendeditems)
218
219 REGISTER_STAT(MOVEVARS_JUMPSTEP, int, cvar("sv_jumpstep"))
220 REGISTER_STAT(NOSTEP, int, cvar("sv_nostep"))
221
222 REGISTER_STAT(MOVEVARS_FRICTION, float)
223 REGISTER_STAT(MOVEVARS_FRICTION_SLICK, float, autocvar_sv_friction_slick)
224 REGISTER_STAT(MOVEVARS_FRICTION_ONLAND, float, autocvar_sv_friction_on_land)
225
226 REGISTER_STAT(MOVEVARS_JUMPSPEEDCAP_DISABLE_ONRAMPS, int, autocvar_sv_jumpspeedcap_max_disable_on_ramps)
227 REGISTER_STAT(MOVEVARS_TRACK_CANJUMP, int)
228 /** cvar loopback */
229 REGISTER_STAT(MOVEVARS_CL_TRACK_CANJUMP, int)
230
231 #ifdef SVQC
232 int g_dodging;
233 float autocvar_sv_dodging_delay;
234 float autocvar_sv_dodging_wall_distance_threshold;
235 bool autocvar_sv_dodging_frozen;
236 bool autocvar_sv_dodging_frozen_doubletap;
237 float autocvar_sv_dodging_height_threshold;
238 float autocvar_sv_dodging_horiz_speed_min;
239 float autocvar_sv_dodging_horiz_speed_max;
240 float autocvar_sv_dodging_horiz_force_slowest;
241 float autocvar_sv_dodging_horiz_force_fastest;
242 float autocvar_sv_dodging_horiz_force_frozen;
243 float autocvar_sv_dodging_ramp_time;
244 float autocvar_sv_dodging_up_speed;
245 bool autocvar_sv_dodging_wall_dodging;
246 bool autocvar_sv_dodging_air_dodging;
247 float autocvar_sv_dodging_maxspeed;
248 float autocvar_sv_dodging_air_maxspeed;
249 bool autocvar_sv_dodging_clientselect;
250 #endif
251
252 #if 0
253 REGISTER_STAT(DODGING, int, g_dodging)
254 REGISTER_STAT(DODGING_DELAY, float, autocvar_sv_dodging_delay)
255 REGISTER_STAT(DODGING_DISTANCE_THRESHOLD, float, autocvar_sv_dodging_wall_distance_threshold)
256 REGISTER_STAT(DODGING_FROZEN_DOUBLETAP, int, autocvar_sv_dodging_frozen_doubletap)
257 REGISTER_STAT(DODGING_HEIGHT_THRESHOLD, float, autocvar_sv_dodging_height_threshold)
258 REGISTER_STAT(DODGING_HORIZ_SPEED_MIN, float, autocvar_sv_dodging_horiz_speed_min)
259 REGISTER_STAT(DODGING_HORIZ_SPEED_MAX, float, autocvar_sv_dodging_horiz_speed_max)
260 REGISTER_STAT(DODGING_HORIZ_FORCE_SLOWEST, float, autocvar_sv_dodging_horiz_force_slowest)
261 REGISTER_STAT(DODGING_HORIZ_FORCE_FASTEST, float, autocvar_sv_dodging_horiz_force_fastest)
262 REGISTER_STAT(DODGING_HORIZ_FORCE_FROZEN, float, autocvar_sv_dodging_horiz_force_frozen)
263 REGISTER_STAT(DODGING_RAMP_TIME, float, autocvar_sv_dodging_ramp_time)
264 REGISTER_STAT(DODGING_UP_SPEED, float, autocvar_sv_dodging_up_speed)
265 REGISTER_STAT(DODGING_WALL, bool, autocvar_sv_dodging_wall_dodging)
266 REGISTER_STAT(DODGING_AIR, bool, autocvar_sv_dodging_air_dodging)
267 REGISTER_STAT(DODGING_MAXSPEED, float, autocvar_sv_dodging_maxspeed)
268 REGISTER_STAT(DODGING_AIR_MAXSPEED, float, autocvar_sv_dodging_air_maxspeed)
269 REGISTER_STAT(DODGING_CLIENTSELECT, bool, autocvar_sv_dodging_clientselect)
270 #endif
271 /** cvar loopback */
272 REGISTER_STAT(DODGING_FROZEN, int, autocvar_sv_dodging_frozen)
273 REGISTER_STAT(DODGING_TIMEOUT, float)
274
275 REGISTER_STAT(JETPACK_ACCEL_SIDE, float, autocvar_g_jetpack_acceleration_side)
276 REGISTER_STAT(JETPACK_ACCEL_UP, float, autocvar_g_jetpack_acceleration_up)
277 REGISTER_STAT(JETPACK_ANTIGRAVITY, float, autocvar_g_jetpack_antigravity)
278 REGISTER_STAT(JETPACK_FUEL, float, autocvar_g_jetpack_fuel)
279 REGISTER_STAT(JETPACK_MAXSPEED_SIDE, float, autocvar_g_jetpack_maxspeed_side)
280 REGISTER_STAT(JETPACK_MAXSPEED_UP, float, autocvar_g_jetpack_maxspeed_up)
281 REGISTER_STAT(JETPACK_REVERSE_THRUST, float, autocvar_g_jetpack_reverse_thrust)
282
283 REGISTER_STAT(MOVEVARS_HIGHSPEED, float)
284
285 #ifdef SVQC
286 AUTOCVAR(g_walljump, bool, false, "Enable wall jumping mutator");
287 AUTOCVAR(g_walljump_delay, float, 1, "Minimum delay between wall jumps");
288 AUTOCVAR(g_walljump_force, float, 300, "How far to bounce/jump off the wall");
289 AUTOCVAR(g_walljump_velocity_xy_factor, float, 1.15, "How much to slow down along horizontal axis, higher value = higher deceleration, if factor is < 1, you accelerate by wall jumping");
290 AUTOCVAR(g_walljump_velocity_z_factor, float, 0.5, "Upwards velocity factor, multiplied by normal jump velocity");
291 #endif
292 REGISTER_STAT(WALLJUMP, int, autocvar_g_walljump)
293 REGISTER_STAT(WALLJUMP_VELOCITY_Z_FACTOR, float, autocvar_g_walljump_velocity_z_factor)
294 REGISTER_STAT(WALLJUMP_VELOCITY_XY_FACTOR, float, autocvar_g_walljump_velocity_xy_factor)
295 REGISTER_STAT(WALLJUMP_DELAY, float, autocvar_g_walljump_delay)
296 REGISTER_STAT(WALLJUMP_FORCE, float, autocvar_g_walljump_force)
297 REGISTER_STAT(LASTWJ, float)
298
299 #ifdef SVQC
300 float autocvar_g_bloodloss;
301 #endif
302 REGISTER_STAT(BLOODLOSS, float, autocvar_g_bloodloss)
303
304 // freeze tag, clan arena
305 REGISTER_STAT(REDALIVE, int)
306 REGISTER_STAT(BLUEALIVE, int)
307 REGISTER_STAT(YELLOWALIVE, int)
308 REGISTER_STAT(PINKALIVE, int)
309
310 // domination
311 REGISTER_STAT(DOM_TOTAL_PPS, float)
312 REGISTER_STAT(DOM_PPS_RED, float)
313 REGISTER_STAT(DOM_PPS_BLUE, float)
314 REGISTER_STAT(DOM_PPS_YELLOW, float)
315 REGISTER_STAT(DOM_PPS_PINK, float)
316
317 REGISTER_STAT(TELEPORT_MAXSPEED, float, autocvar_g_teleport_maxspeed)
318 REGISTER_STAT(TELEPORT_TELEFRAG_AVOID, int, autocvar_g_telefrags_avoid)
319
320 REGISTER_STAT(CAMERA_SPECTATOR, int)
321
322 REGISTER_STAT(SPECTATORSPEED, float)
323
324 #ifdef SVQC
325 bool autocvar_sv_slick_applygravity;
326 #endif
327 REGISTER_STAT(SLICK_APPLYGRAVITY, bool, autocvar_sv_slick_applygravity)
328
329 #ifdef SVQC
330 bool autocvar_sv_q3defragcompat;
331 #endif
332 REGISTER_STAT(Q3DEFRAGCOMPAT, bool, autocvar_sv_q3defragcompat)
333
334 #ifdef SVQC
335 #include "physics/movetypes/movetypes.qh"
336 float warmup_limit;
337 #endif
338
339 #ifdef SVQC
340 bool autocvar_g_shootfromcenter;
341 bool autocvar_g_shootfromeye;
342 #endif
343 REGISTER_STAT(SHOOTFROMEYE, bool, autocvar_g_shootfromeye)
344 REGISTER_STAT(SHOOTFROMCENTER, bool, autocvar_g_shootfromcenter)
345
346 REGISTER_STAT(MOVEVARS_AIRACCEL_QW_STRETCHFACTOR, float)
347 REGISTER_STAT(MOVEVARS_AIRCONTROL_PENALTY, float)
348 REGISTER_STAT(MOVEVARS_AIRSPEEDLIMIT_NONQW, float)
349 REGISTER_STAT(MOVEVARS_AIRSTRAFEACCEL_QW, float)
350 REGISTER_STAT(MOVEVARS_AIRCONTROL_POWER, float)
351 REGISTER_STAT(MOVEVARS_AIRCONTROL_BACKWARDS, bool)
352 REGISTER_STAT(MOVEVARS_AIRCONTROL_SIDEWARDS, bool)
353 noref bool autocvar_sv_gameplayfix_nogravityonground = true;
354 REGISTER_STAT(MOVEFLAGS, int, MOVEFLAG_VALID
355                               | (autocvar_sv_gameplayfix_q2airaccelerate ? MOVEFLAG_Q2AIRACCELERATE : 0)
356                               | (autocvar_sv_gameplayfix_nogravityonground ? MOVEFLAG_NOGRAVITYONGROUND : 0)
357                               | (autocvar_sv_gameplayfix_gravityunaffectedbyticrate ? MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE : 0))
358
359 REGISTER_STAT(MOVEVARS_WARSOWBUNNY_AIRFORWARDACCEL, float)
360 REGISTER_STAT(MOVEVARS_WARSOWBUNNY_ACCEL, float)
361 REGISTER_STAT(MOVEVARS_WARSOWBUNNY_TOPSPEED, float)
362 REGISTER_STAT(MOVEVARS_WARSOWBUNNY_TURNACCEL, float)
363 REGISTER_STAT(MOVEVARS_WARSOWBUNNY_BACKTOSIDERATIO, float)
364
365 REGISTER_STAT(MOVEVARS_AIRSTOPACCELERATE, float)
366 REGISTER_STAT(MOVEVARS_AIRSTRAFEACCELERATE, float)
367 REGISTER_STAT(MOVEVARS_MAXAIRSTRAFESPEED, float)
368 REGISTER_STAT(MOVEVARS_AIRCONTROL, float)
369 REGISTER_STAT(FRAGLIMIT, float, autocvar_fraglimit)
370 REGISTER_STAT(TIMELIMIT, float, autocvar_timelimit)
371 REGISTER_STAT(WARMUP_TIMELIMIT, float, warmup_limit)
372 #ifdef SVQC
373 float autocvar_sv_wallfriction;
374 #endif
375 REGISTER_STAT(MOVEVARS_WALLFRICTION, int, autocvar_sv_wallfriction)
376 REGISTER_STAT(MOVEVARS_TICRATE, float, autocvar_sys_ticrate)
377 REGISTER_STAT(MOVEVARS_TIMESCALE, float, autocvar_slowmo)
378 REGISTER_STAT(MOVEVARS_GRAVITY, float, autocvar_sv_gravity)
379 REGISTER_STAT(MOVEVARS_STOPSPEED, float)
380 REGISTER_STAT(MOVEVARS_MAXSPEED, float)
381 REGISTER_STAT(MOVEVARS_ACCELERATE, float)
382 REGISTER_STAT(MOVEVARS_AIRACCELERATE, float)
383 .float gravity;
384 // FIXME: Was 0 on server, 1 on client. Still want that?
385 REGISTER_STAT(MOVEVARS_ENTGRAVITY, float, (this.gravity) ? this.gravity : 1)
386 REGISTER_STAT(MOVEVARS_JUMPVELOCITY, float)
387 REGISTER_STAT(MOVEVARS_JUMPVELOCITY_CROUCH, float)
388 REGISTER_STAT(MOVEVARS_MAXAIRSPEED, float)
389 REGISTER_STAT(MOVEVARS_STEPHEIGHT, float, autocvar_sv_stepheight)
390 REGISTER_STAT(MOVEVARS_AIRACCEL_QW, float)
391 REGISTER_STAT(MOVEVARS_AIRACCEL_SIDEWAYS_FRICTION, float)
392 REGISTER_STAT(MOVEVARS_SPECIALCOMMAND, bool)
393 #ifdef SVQC
394 int autocvar_sv_wallclip;
395 #endif
396 REGISTER_STAT(MOVEVARS_WALLCLIP, int, autocvar_sv_wallclip)
397
398 REGISTER_STAT(GUNALIGN, int)
399 #ifdef SVQC
400 SPECTATE_COPYFIELD(_STAT(GUNALIGN))
401 #endif