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