a27e99b621e311753cc494986222b3a5fb71d273
[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
89 REGISTER_STAT(LAST_PICKUP, float)
90 REGISTER_STAT(HUD, int)
91 REGISTER_STAT(HIT_TIME, float)
92 REGISTER_STAT(DAMAGE_DEALT_TOTAL, int)
93 REGISTER_STAT(TYPEHIT_TIME, float)
94 REGISTER_STAT(SUPERWEAPONS_FINISHED, float)
95 REGISTER_STAT(VEHICLESTAT_HEALTH, int)
96 REGISTER_STAT(VEHICLESTAT_SHIELD, int)
97 REGISTER_STAT(VEHICLESTAT_ENERGY, int)
98 REGISTER_STAT(VEHICLESTAT_AMMO1, int)
99 REGISTER_STAT(VEHICLESTAT_RELOAD1, int)
100 REGISTER_STAT(VEHICLESTAT_AMMO2, int)
101 REGISTER_STAT(VEHICLESTAT_RELOAD2, int)
102 REGISTER_STAT(VEHICLESTAT_W2MODE, int)
103 REGISTER_STAT(NADE_TIMER, float)
104 REGISTER_STAT(SECRETS_TOTAL, float)
105 REGISTER_STAT(SECRETS_FOUND, float)
106 REGISTER_STAT(RESPAWN_TIME, float)
107 REGISTER_STAT(ROUNDSTARTTIME, float, round_starttime)
108 REGISTER_STAT(MONSTERS_TOTAL, int)
109 REGISTER_STAT(MONSTERS_KILLED, int)
110 REGISTER_STAT(BUFFS, int)
111 REGISTER_STAT(NADE_BONUS, float)
112 REGISTER_STAT(NADE_BONUS_TYPE, int)
113 REGISTER_STAT(NADE_BONUS_SCORE, float)
114 REGISTER_STAT(HEALING_ORB, float)
115 REGISTER_STAT(HEALING_ORB_ALPHA, float)
116 REGISTER_STAT(PLASMA, int)
117 REGISTER_STAT(FROZEN, int)
118 REGISTER_STAT(REVIVE_PROGRESS, float)
119 REGISTER_STAT(ROUNDLOST, int)
120 REGISTER_STAT(BUFF_TIME, float)
121 REGISTER_STAT(CTF_FLAGSTATUS, int)
122 REGISTER_STAT(CAPTURE_PROGRESS, float)
123 REGISTER_STAT(ENTRAP_ORB, float)
124 REGISTER_STAT(ENTRAP_ORB_ALPHA, float)
125 REGISTER_STAT(ITEMSTIME, int, autocvar_sv_itemstime)
126 REGISTER_STAT(KILL_TIME, float)
127 REGISTER_STAT(VEIL_ORB, float)
128 REGISTER_STAT(VEIL_ORB_ALPHA, float)
129
130 #ifdef SVQC
131 float autocvar_sv_showfps = 5;
132 #endif
133 REGISTER_STAT(SHOWFPS, float, autocvar_sv_showfps)
134
135 #ifdef SVQC
136 bool autocvar_g_ctf_leaderboard;
137 #endif
138 REGISTER_STAT(CTF_SHOWLEADERBOARD, bool, autocvar_g_ctf_leaderboard)
139
140 #ifdef SVQC
141 int autocvar_g_multijump;
142 float autocvar_g_multijump_add;
143 float autocvar_g_multijump_speed;
144 float autocvar_g_multijump_maxspeed;
145 float autocvar_g_multijump_dodging = 1;
146 #endif
147 REGISTER_STAT(MULTIJUMP_DODGING, int, autocvar_g_multijump_dodging)
148 REGISTER_STAT(MULTIJUMP_MAXSPEED, float, autocvar_g_multijump_maxspeed)
149 REGISTER_STAT(MULTIJUMP_ADD, int, autocvar_g_multijump_add)
150 REGISTER_STAT(MULTIJUMP_SPEED, float, autocvar_g_multijump_speed)
151 .int multijump_count;
152 REGISTER_STAT(MULTIJUMP_COUNT, int, this.multijump_count)
153 REGISTER_STAT(MULTIJUMP, int, autocvar_g_multijump)
154 REGISTER_STAT(DOUBLEJUMP, int, autocvar_sv_doublejump)
155
156 #ifdef SVQC
157 bool g_bugrigs;
158 bool g_bugrigs_planar_movement;
159 bool g_bugrigs_planar_movement_car_jumping;
160 float g_bugrigs_reverse_spinning;
161 float g_bugrigs_reverse_speeding;
162 float g_bugrigs_reverse_stopping;
163 float g_bugrigs_air_steering;
164 float g_bugrigs_angle_smoothing;
165 float g_bugrigs_friction_floor;
166 float g_bugrigs_friction_brake;
167 float g_bugrigs_friction_air;
168 float g_bugrigs_accel;
169 float g_bugrigs_speed_ref;
170 float g_bugrigs_speed_pow;
171 float g_bugrigs_steer;
172 #endif
173 REGISTER_STAT(BUGRIGS, int, g_bugrigs)
174 REGISTER_STAT(BUGRIGS_ACCEL, float, g_bugrigs_accel)
175 REGISTER_STAT(BUGRIGS_AIR_STEERING, int, g_bugrigs_air_steering)
176 REGISTER_STAT(BUGRIGS_ANGLE_SMOOTHING, int, g_bugrigs_angle_smoothing)
177 REGISTER_STAT(BUGRIGS_CAR_JUMPING, int, g_bugrigs_planar_movement_car_jumping)
178 REGISTER_STAT(BUGRIGS_FRICTION_AIR, float, g_bugrigs_friction_air)
179 REGISTER_STAT(BUGRIGS_FRICTION_BRAKE, float, g_bugrigs_friction_brake)
180 REGISTER_STAT(BUGRIGS_FRICTION_FLOOR, float, g_bugrigs_friction_floor)
181 REGISTER_STAT(BUGRIGS_PLANAR_MOVEMENT, int, g_bugrigs_planar_movement)
182 REGISTER_STAT(BUGRIGS_REVERSE_SPEEDING, int, g_bugrigs_reverse_speeding)
183 REGISTER_STAT(BUGRIGS_REVERSE_SPINNING, int, g_bugrigs_reverse_spinning)
184 REGISTER_STAT(BUGRIGS_REVERSE_STOPPING, int, g_bugrigs_reverse_stopping)
185 REGISTER_STAT(BUGRIGS_SPEED_POW, float, g_bugrigs_speed_pow)
186 REGISTER_STAT(BUGRIGS_SPEED_REF, float, g_bugrigs_speed_ref)
187 REGISTER_STAT(BUGRIGS_STEER, float, g_bugrigs_steer)
188
189 #ifdef SVQC
190 int autocvar_sv_gameplayfix_downtracesupportsongroundflag;
191 int autocvar_sv_gameplayfix_easierwaterjump;
192 int autocvar_sv_gameplayfix_stepdown;
193 int autocvar_sv_gameplayfix_stepmultipletimes;
194 int autocvar_sv_gameplayfix_unstickplayers;
195 int autocvar_sv_gameplayfix_fixedcheckwatertransition;
196 #endif
197 REGISTER_STAT(GAMEPLAYFIX_DOWNTRACEONGROUND, int, autocvar_sv_gameplayfix_downtracesupportsongroundflag)
198 REGISTER_STAT(GAMEPLAYFIX_EASIERWATERJUMP, int, autocvar_sv_gameplayfix_easierwaterjump)
199 REGISTER_STAT(GAMEPLAYFIX_STEPDOWN, int, autocvar_sv_gameplayfix_stepdown)
200 REGISTER_STAT(GAMEPLAYFIX_STEPMULTIPLETIMES, int, autocvar_sv_gameplayfix_stepmultipletimes)
201 REGISTER_STAT(GAMEPLAYFIX_UNSTICKPLAYERS, int, autocvar_sv_gameplayfix_unstickplayers)
202 REGISTER_STAT(GAMEPLAYFIX_UPVELOCITYCLEARSONGROUND, int, autocvar_sv_gameplayfix_upwardvelocityclearsongroundflag)
203 REGISTER_STAT(GAMEPLAYFIX_WATERTRANSITION, int, autocvar_sv_gameplayfix_fixedcheckwatertransition)
204
205 REGISTER_STAT(MOVEVARS_JUMPSTEP, int, cvar("sv_jumpstep"))
206 REGISTER_STAT(NOSTEP, int, cvar("sv_nostep"))
207
208 REGISTER_STAT(MOVEVARS_FRICTION, float)
209 REGISTER_STAT(MOVEVARS_FRICTION_SLICK, float, autocvar_sv_friction_slick)
210 REGISTER_STAT(MOVEVARS_FRICTION_ONLAND, float, autocvar_sv_friction_on_land)
211
212 REGISTER_STAT(MOVEVARS_JUMPSPEEDCAP_DISABLE_ONRAMPS, int, autocvar_sv_jumpspeedcap_max_disable_on_ramps)
213 REGISTER_STAT(MOVEVARS_TRACK_CANJUMP, int)
214 /** cvar loopback */
215 REGISTER_STAT(MOVEVARS_CL_TRACK_CANJUMP, int)
216
217 #ifdef SVQC
218 int g_dodging;
219 float autocvar_sv_dodging_delay;
220 float autocvar_sv_dodging_wall_distance_threshold;
221 bool autocvar_sv_dodging_frozen;
222 bool autocvar_sv_dodging_frozen_doubletap;
223 float autocvar_sv_dodging_height_threshold;
224 float autocvar_sv_dodging_horiz_speed_min;
225 float autocvar_sv_dodging_horiz_speed_max;
226 float autocvar_sv_dodging_horiz_force_slowest;
227 float autocvar_sv_dodging_horiz_force_fastest;
228 float autocvar_sv_dodging_horiz_force_frozen;
229 float autocvar_sv_dodging_ramp_time;
230 float autocvar_sv_dodging_up_speed;
231 bool autocvar_sv_dodging_wall_dodging;
232 bool autocvar_sv_dodging_air_dodging;
233 float autocvar_sv_dodging_maxspeed;
234 float autocvar_sv_dodging_air_maxspeed;
235 #endif
236
237 #if 0
238 REGISTER_STAT(DODGING, int, g_dodging)
239 REGISTER_STAT(DODGING_DELAY, float, autocvar_sv_dodging_delay)
240 REGISTER_STAT(DODGING_DISTANCE_THRESHOLD, float, autocvar_sv_dodging_wall_distance_threshold)
241 REGISTER_STAT(DODGING_FROZEN_DOUBLETAP, int, autocvar_sv_dodging_frozen_doubletap)
242 REGISTER_STAT(DODGING_HEIGHT_THRESHOLD, float, autocvar_sv_dodging_height_threshold)
243 REGISTER_STAT(DODGING_HORIZ_SPEED_MIN, float, autocvar_sv_dodging_horiz_speed_min)
244 REGISTER_STAT(DODGING_HORIZ_SPEED_MAX, float, autocvar_sv_dodging_horiz_speed_max)
245 REGISTER_STAT(DODGING_HORIZ_FORCE_SLOWEST, float, autocvar_sv_dodging_horiz_force_slowest)
246 REGISTER_STAT(DODGING_HORIZ_FORCE_FASTEST, float, autocvar_sv_dodging_horiz_force_fastest)
247 REGISTER_STAT(DODGING_HORIZ_FORCE_FROZEN, float, autocvar_sv_dodging_horiz_force_frozen)
248 REGISTER_STAT(DODGING_RAMP_TIME, float, autocvar_sv_dodging_ramp_time)
249 REGISTER_STAT(DODGING_UP_SPEED, float, autocvar_sv_dodging_up_speed)
250 REGISTER_STAT(DODGING_WALL, bool, autocvar_sv_dodging_wall_dodging)
251 REGISTER_STAT(DODGING_AIR, bool, autocvar_sv_dodging_air_dodging)
252 REGISTER_STAT(DODGING_MAXSPEED, float, autocvar_sv_dodging_maxspeed)
253 REGISTER_STAT(DODGING_AIR_MAXSPEED, float, autocvar_sv_dodging_air_maxspeed)
254 #endif
255 /** cvar loopback */
256 REGISTER_STAT(DODGING_FROZEN, int, autocvar_sv_dodging_frozen)
257 REGISTER_STAT(DODGING_TIMEOUT, float)
258
259 REGISTER_STAT(JETPACK_ACCEL_SIDE, float, autocvar_g_jetpack_acceleration_side)
260 REGISTER_STAT(JETPACK_ACCEL_UP, float, autocvar_g_jetpack_acceleration_up)
261 REGISTER_STAT(JETPACK_ANTIGRAVITY, float, autocvar_g_jetpack_antigravity)
262 REGISTER_STAT(JETPACK_FUEL, float, autocvar_g_jetpack_fuel)
263 REGISTER_STAT(JETPACK_MAXSPEED_SIDE, float, autocvar_g_jetpack_maxspeed_side)
264 REGISTER_STAT(JETPACK_MAXSPEED_UP, float, autocvar_g_jetpack_maxspeed_up)
265 REGISTER_STAT(JETPACK_REVERSE_THRUST, float, autocvar_g_jetpack_reverse_thrust)
266
267 REGISTER_STAT(MOVEVARS_HIGHSPEED, float)
268
269 #ifdef SVQC
270 AUTOCVAR(g_walljump, bool, false, "Enable wall jumping mutator");
271 AUTOCVAR(g_walljump_delay, float, 1, "Minimum delay between wall jumps");
272 AUTOCVAR(g_walljump_force, float, 300, "How far to bounce/jump off the wall");
273 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");
274 AUTOCVAR(g_walljump_velocity_z_factor, float, 0.5, "Upwards velocity factor, multiplied by normal jump velocity");
275 #endif
276 REGISTER_STAT(WALLJUMP, int, autocvar_g_walljump)
277 REGISTER_STAT(WALLJUMP_VELOCITY_Z_FACTOR, float, autocvar_g_walljump_velocity_z_factor)
278 REGISTER_STAT(WALLJUMP_VELOCITY_XY_FACTOR, float, autocvar_g_walljump_velocity_xy_factor)
279 REGISTER_STAT(WALLJUMP_DELAY, float, autocvar_g_walljump_delay)
280 REGISTER_STAT(WALLJUMP_FORCE, float, autocvar_g_walljump_force)
281 REGISTER_STAT(LASTWJ, float)
282
283 // freeze tag, clan arena
284 REGISTER_STAT(REDALIVE, int)
285 REGISTER_STAT(BLUEALIVE, int)
286 REGISTER_STAT(YELLOWALIVE, int)
287 REGISTER_STAT(PINKALIVE, int)
288
289 // domination
290 REGISTER_STAT(DOM_TOTAL_PPS, float)
291 REGISTER_STAT(DOM_PPS_RED, float)
292 REGISTER_STAT(DOM_PPS_BLUE, float)
293 REGISTER_STAT(DOM_PPS_YELLOW, float)
294 REGISTER_STAT(DOM_PPS_PINK, float)
295
296 REGISTER_STAT(TELEPORT_MAXSPEED, float, autocvar_g_teleport_maxspeed)
297 REGISTER_STAT(TELEPORT_TELEFRAG_AVOID, int, autocvar_g_telefrags_avoid)
298
299 REGISTER_STAT(CAMERA_SPECTATOR, int)
300
301 REGISTER_STAT(SPECTATORSPEED, float)
302
303 #ifdef SVQC
304 bool autocvar_sv_slick_applygravity;
305 #endif
306 REGISTER_STAT(SLICK_APPLYGRAVITY, bool, autocvar_sv_slick_applygravity)
307
308 #ifdef SVQC
309 bool autocvar_sv_vq3compat;
310 #endif
311 REGISTER_STAT(VQ3COMPAT, bool, autocvar_sv_vq3compat)
312
313 #ifdef SVQC
314 #include "physics/movetypes/movetypes.qh"
315 float warmup_limit;
316 #endif
317
318 #ifdef SVQC
319 bool autocvar_g_shootfromcenter;
320 bool autocvar_g_shootfromeye;
321 #endif
322 REGISTER_STAT(SHOOTFROMEYE, bool, autocvar_g_shootfromeye)
323 REGISTER_STAT(SHOOTFROMCENTER, bool, autocvar_g_shootfromcenter)
324
325 REGISTER_STAT(MOVEVARS_AIRACCEL_QW_STRETCHFACTOR, float)
326 REGISTER_STAT(MOVEVARS_AIRCONTROL_PENALTY, float)
327 REGISTER_STAT(MOVEVARS_AIRSPEEDLIMIT_NONQW, float)
328 REGISTER_STAT(MOVEVARS_AIRSTRAFEACCEL_QW, float)
329 REGISTER_STAT(MOVEVARS_AIRCONTROL_POWER, float)
330 REGISTER_STAT(MOVEVARS_AIRCONTROL_BACKWARDS, bool)
331 REGISTER_STAT(MOVEVARS_AIRCONTROL_SIDEWARDS, bool)
332 noref bool autocvar_sv_gameplayfix_nogravityonground;
333 REGISTER_STAT(MOVEFLAGS, int, MOVEFLAG_VALID
334                               | (autocvar_sv_gameplayfix_q2airaccelerate ? MOVEFLAG_Q2AIRACCELERATE : 0)
335                               | (autocvar_sv_gameplayfix_nogravityonground ? MOVEFLAG_NOGRAVITYONGROUND : 0)
336                               | (autocvar_sv_gameplayfix_gravityunaffectedbyticrate ? MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE : 0))
337
338 REGISTER_STAT(MOVEVARS_WARSOWBUNNY_AIRFORWARDACCEL, float)
339 REGISTER_STAT(MOVEVARS_WARSOWBUNNY_ACCEL, float)
340 REGISTER_STAT(MOVEVARS_WARSOWBUNNY_TOPSPEED, float)
341 REGISTER_STAT(MOVEVARS_WARSOWBUNNY_TURNACCEL, float)
342 REGISTER_STAT(MOVEVARS_WARSOWBUNNY_BACKTOSIDERATIO, float)
343
344 REGISTER_STAT(MOVEVARS_AIRSTOPACCELERATE, float)
345 REGISTER_STAT(MOVEVARS_AIRSTRAFEACCELERATE, float)
346 REGISTER_STAT(MOVEVARS_MAXAIRSTRAFESPEED, float)
347 REGISTER_STAT(MOVEVARS_AIRCONTROL, float)
348 REGISTER_STAT(FRAGLIMIT, float, autocvar_fraglimit)
349 REGISTER_STAT(TIMELIMIT, float, autocvar_timelimit)
350 REGISTER_STAT(WARMUP_TIMELIMIT, float, warmup_limit)
351 #ifdef SVQC
352 float autocvar_sv_wallfriction;
353 #endif
354 REGISTER_STAT(MOVEVARS_WALLFRICTION, int, autocvar_sv_wallfriction)
355 REGISTER_STAT(MOVEVARS_TICRATE, float, autocvar_sys_ticrate)
356 REGISTER_STAT(MOVEVARS_TIMESCALE, float, autocvar_slowmo)
357 REGISTER_STAT(MOVEVARS_GRAVITY, float, autocvar_sv_gravity)
358 REGISTER_STAT(MOVEVARS_STOPSPEED, float)
359 REGISTER_STAT(MOVEVARS_MAXSPEED, float)
360 REGISTER_STAT(MOVEVARS_ACCELERATE, float)
361 REGISTER_STAT(MOVEVARS_AIRACCELERATE, float)
362 .float gravity;
363 // FIXME: Was 0 on server, 1 on client. Still want that?
364 REGISTER_STAT(MOVEVARS_ENTGRAVITY, float, (this.gravity) ? this.gravity : 1)
365 REGISTER_STAT(MOVEVARS_JUMPVELOCITY, float)
366 REGISTER_STAT(MOVEVARS_JUMPVELOCITY_CROUCH, float)
367 REGISTER_STAT(MOVEVARS_MAXAIRSPEED, float)
368 REGISTER_STAT(MOVEVARS_STEPHEIGHT, float, autocvar_sv_stepheight)
369 REGISTER_STAT(MOVEVARS_AIRACCEL_QW, float)
370 REGISTER_STAT(MOVEVARS_AIRACCEL_SIDEWAYS_FRICTION, float)
371 REGISTER_STAT(MOVEVARS_SPECIALCOMMAND, bool)
372 #ifdef SVQC
373 int autocvar_sv_wallclip;
374 #endif
375 REGISTER_STAT(MOVEVARS_WALLCLIP, int, autocvar_sv_wallclip)
376
377 REGISTER_STAT(GUNALIGN, int)
378 #ifdef SVQC
379 SPECTATE_COPYFIELD(_STAT(GUNALIGN))
380 #endif