32 #define g_stat_HEALTH getstati(STAT_HEALTH) 33 #define g_stat_ARMOR getstati(STAT_ARMOR) 34 #define g_stat_SHELLS getstati(STAT_SHELLS) 35 #define g_stat_NAILS getstati(STAT_NAILS) 36 #define g_stat_ROCKETS getstati(STAT_ROCKETS) 37 #define g_stat_CELLS getstati(STAT_CELLS) 38 #define g_stat_ITEMS getstat_int(STAT_ITEMS) 39 #define g_stat_VIEWHEIGHT getstati(STAT_VIEWHEIGHT) 41 #define stat_HEALTH health 42 #define stat_ARMOR armorvalue 43 #define stat_SHELLS ammo_shells 44 #define stat_NAILS ammo_nails 45 #define stat_ROCKETS ammo_rockets 46 #define stat_CELLS ammo_cells 47 #define stat_ITEMS items 48 #define stat_VIEWHEIGHT view_ofs_z 80 float round_starttime;
81 int autocvar_leadlimit;
86 #define autocvar_fraglimit cvar("fraglimit") 87 #define autocvar_fraglimit_override cvar("fraglimit_override") 88 #define autocvar_timelimit cvar("timelimit") 89 #define autocvar_timelimit_override cvar("timelimit_override") 143 float autocvar_sv_showfps = 0;
148 bool autocvar_g_ctf_leaderboard;
150 REGISTER_STAT(CTF_SHOWLEADERBOARD,
bool, autocvar_g_ctf_leaderboard)
153 int autocvar_g_multijump;
154 float autocvar_g_multijump_add;
155 float autocvar_g_multijump_speed;
156 float autocvar_g_multijump_maxspeed;
157 float autocvar_g_multijump_dodging = 1;
158 bool autocvar_g_multijump_client =
true;
160 REGISTER_STAT(MULTIJUMP_DODGING,
int, autocvar_g_multijump_dodging)
161 REGISTER_STAT(MULTIJUMP_MAXSPEED,
float, autocvar_g_multijump_maxspeed)
163 REGISTER_STAT(MULTIJUMP_SPEED,
float, autocvar_g_multijump_speed)
164 REGISTER_STAT(MULTIJUMP_CLIENT,
bool, autocvar_g_multijump_client)
172 bool g_bugrigs_planar_movement;
173 bool g_bugrigs_planar_movement_car_jumping;
174 float g_bugrigs_reverse_spinning;
175 float g_bugrigs_reverse_speeding;
176 float g_bugrigs_reverse_stopping;
177 float g_bugrigs_air_steering;
178 float g_bugrigs_angle_smoothing;
179 float g_bugrigs_friction_floor;
180 float g_bugrigs_friction_brake;
181 float g_bugrigs_friction_air;
182 float g_bugrigs_accel;
183 float g_bugrigs_speed_ref;
184 float g_bugrigs_speed_pow;
185 float g_bugrigs_steer;
190 REGISTER_STAT(BUGRIGS_AIR_STEERING,
int, g_bugrigs_air_steering)
191 REGISTER_STAT(BUGRIGS_ANGLE_SMOOTHING,
int, g_bugrigs_angle_smoothing)
192 REGISTER_STAT(BUGRIGS_CAR_JUMPING,
int, g_bugrigs_planar_movement_car_jumping)
193 REGISTER_STAT(BUGRIGS_FRICTION_AIR,
float, g_bugrigs_friction_air)
194 REGISTER_STAT(BUGRIGS_FRICTION_BRAKE,
float, g_bugrigs_friction_brake)
195 REGISTER_STAT(BUGRIGS_FRICTION_FLOOR,
float, g_bugrigs_friction_floor)
196 REGISTER_STAT(BUGRIGS_PLANAR_MOVEMENT,
int, g_bugrigs_planar_movement)
197 REGISTER_STAT(BUGRIGS_REVERSE_SPEEDING,
int, g_bugrigs_reverse_speeding)
198 REGISTER_STAT(BUGRIGS_REVERSE_SPINNING,
int, g_bugrigs_reverse_spinning)
199 REGISTER_STAT(BUGRIGS_REVERSE_STOPPING,
int, g_bugrigs_reverse_stopping)
206 int autocvar_sv_gameplayfix_downtracesupportsongroundflag = 1;
207 int autocvar_sv_gameplayfix_easierwaterjump = 1;
208 int autocvar_sv_gameplayfix_stepdown = 2;
209 float autocvar_sv_gameplayfix_stepdown_maxspeed = 0;
210 int autocvar_sv_gameplayfix_stepmultipletimes = 1;
211 int autocvar_sv_gameplayfix_unstickplayers = 2;
212 int autocvar_sv_gameplayfix_fixedcheckwatertransition = 1;
213 int autocvar_sv_gameplayfix_slidemoveprojectiles = 1;
214 int autocvar_sv_gameplayfix_grenadebouncedownslopes = 1;
215 int autocvar_sv_gameplayfix_noairborncorpse = 1;
216 int autocvar_sv_gameplayfix_noairborncorpse_allowsuspendeditems = 1;
217 int autocvar_sv_gameplayfix_delayprojectiles = 0;
218 bool autocvar_sv_gameplayfix_upwardvelocityclearsongroundflag =
true;
226 REGISTER_STAT(GAMEPLAYFIX_UPVELOCITYCLEARSONGROUND,
int, autocvar_sv_gameplayfix_upwardvelocityclearsongroundflag)
238 float autocvar_sv_friction_on_land;
239 var
float autocvar_sv_friction_slick = 0.5;
242 REGISTER_STAT(MOVEVARS_FRICTION_SLICK,
float, autocvar_sv_friction_slick)
243 REGISTER_STAT(MOVEVARS_FRICTION_ONLAND,
float, autocvar_sv_friction_on_land)
245 REGISTER_STAT(MOVEVARS_JUMPSPEEDCAP_DISABLE_ONRAMPS,
int, autocvar_sv_jumpspeedcap_max_disable_on_ramps)
252 float autocvar_sv_dodging_delay;
253 float autocvar_sv_dodging_wall_distance_threshold;
254 bool autocvar_sv_dodging_frozen;
255 bool autocvar_sv_dodging_frozen_doubletap;
256 float autocvar_sv_dodging_height_threshold;
257 float autocvar_sv_dodging_horiz_speed_min;
258 float autocvar_sv_dodging_horiz_speed_max;
259 float autocvar_sv_dodging_horiz_force_slowest;
260 float autocvar_sv_dodging_horiz_force_fastest;
261 float autocvar_sv_dodging_horiz_force_frozen;
262 float autocvar_sv_dodging_ramp_time;
263 float autocvar_sv_dodging_up_speed;
264 bool autocvar_sv_dodging_wall_dodging;
265 bool autocvar_sv_dodging_air_dodging;
266 float autocvar_sv_dodging_maxspeed;
267 float autocvar_sv_dodging_air_maxspeed;
268 bool autocvar_sv_dodging_clientselect;
273 REGISTER_STAT(DODGING_DELAY,
float, autocvar_sv_dodging_delay)
274 REGISTER_STAT(DODGING_DISTANCE_THRESHOLD,
float, autocvar_sv_dodging_wall_distance_threshold)
275 REGISTER_STAT(DODGING_FROZEN_DOUBLETAP,
int, autocvar_sv_dodging_frozen_doubletap)
276 REGISTER_STAT(DODGING_HEIGHT_THRESHOLD,
float, autocvar_sv_dodging_height_threshold)
277 REGISTER_STAT(DODGING_HORIZ_SPEED_MIN,
float, autocvar_sv_dodging_horiz_speed_min)
278 REGISTER_STAT(DODGING_HORIZ_SPEED_MAX,
float, autocvar_sv_dodging_horiz_speed_max)
279 REGISTER_STAT(DODGING_HORIZ_FORCE_SLOWEST,
float, autocvar_sv_dodging_horiz_force_slowest)
280 REGISTER_STAT(DODGING_HORIZ_FORCE_FASTEST,
float, autocvar_sv_dodging_horiz_force_fastest)
281 REGISTER_STAT(DODGING_HORIZ_FORCE_FROZEN,
float, autocvar_sv_dodging_horiz_force_frozen)
282 REGISTER_STAT(DODGING_RAMP_TIME,
float, autocvar_sv_dodging_ramp_time)
283 REGISTER_STAT(DODGING_UP_SPEED,
float, autocvar_sv_dodging_up_speed)
284 REGISTER_STAT(DODGING_WALL,
bool, autocvar_sv_dodging_wall_dodging)
285 REGISTER_STAT(DODGING_AIR,
bool, autocvar_sv_dodging_air_dodging)
286 REGISTER_STAT(DODGING_MAXSPEED,
float, autocvar_sv_dodging_maxspeed)
287 REGISTER_STAT(DODGING_AIR_MAXSPEED,
float, autocvar_sv_dodging_air_maxspeed)
288 REGISTER_STAT(DODGING_CLIENTSELECT,
bool, autocvar_sv_dodging_clientselect)
291 REGISTER_STAT(DODGING_FROZEN,
int, autocvar_sv_dodging_frozen)
295 float autocvar_g_jetpack_acceleration_side;
296 float autocvar_g_jetpack_acceleration_up;
297 float autocvar_g_jetpack_antigravity;
298 int autocvar_g_jetpack_fuel;
299 float autocvar_g_jetpack_maxspeed_side;
300 float autocvar_g_jetpack_maxspeed_up;
301 float autocvar_g_jetpack_reverse_thrust;
303 REGISTER_STAT(JETPACK_ACCEL_SIDE,
float, autocvar_g_jetpack_acceleration_side)
304 REGISTER_STAT(JETPACK_ACCEL_UP,
float, autocvar_g_jetpack_acceleration_up)
305 REGISTER_STAT(JETPACK_ANTIGRAVITY,
float, autocvar_g_jetpack_antigravity)
307 REGISTER_STAT(JETPACK_MAXSPEED_SIDE,
float, autocvar_g_jetpack_maxspeed_side)
308 REGISTER_STAT(JETPACK_MAXSPEED_UP,
float, autocvar_g_jetpack_maxspeed_up)
309 REGISTER_STAT(JETPACK_REVERSE_THRUST,
float, autocvar_g_jetpack_reverse_thrust)
314 AUTOCVAR(g_walljump,
bool,
false,
"Enable wall jumping mutator");
315 AUTOCVAR(g_walljump_delay,
float, 1,
"Minimum delay between wall jumps");
316 AUTOCVAR(g_walljump_force,
float, 300,
"How far to bounce/jump off the wall");
317 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");
318 AUTOCVAR(g_walljump_velocity_z_factor,
float, 0.5,
"Upwards velocity factor, multiplied by normal jump velocity");
321 REGISTER_STAT(WALLJUMP_VELOCITY_Z_FACTOR,
float, autocvar_g_walljump_velocity_z_factor)
322 REGISTER_STAT(WALLJUMP_VELOCITY_XY_FACTOR,
float, autocvar_g_walljump_velocity_xy_factor)
323 REGISTER_STAT(WALLJUMP_DELAY,
float, autocvar_g_walljump_delay)
324 REGISTER_STAT(WALLJUMP_FORCE,
float, autocvar_g_walljump_force)
328 float autocvar_g_bloodloss;
349 float autocvar_g_teleport_maxspeed;
351 REGISTER_STAT(TELEPORT_MAXSPEED,
float, autocvar_g_teleport_maxspeed)
352 REGISTER_STAT(TELEPORT_TELEFRAG_AVOID,
int, autocvar_g_telefrags_avoid)
359 bool autocvar_sv_slick_applygravity;
361 REGISTER_STAT(SLICK_APPLYGRAVITY,
bool, autocvar_sv_slick_applygravity)
372 bool autocvar_g_shootfromcenter;
373 bool autocvar_g_shootfromeye;
376 REGISTER_STAT(SHOOTFROMCENTER,
bool, autocvar_g_shootfromcenter)
386 float autocvar_sv_gameplayfix_q2airaccelerate = 1;
387 bool autocvar_sv_gameplayfix_nogravityonground =
true;
388 bool autocvar_sv_gameplayfix_gravityunaffectedbyticrate =
true;
410 float autocvar_sv_wallfriction;
411 #define autocvar_sv_gravity cvar("sv_gravity") 412 float autocvar_sv_stepheight;
414 REGISTER_STAT(MOVEVARS_WALLFRICTION,
int, autocvar_sv_wallfriction)
428 REGISTER_STAT(MOVEVARS_STEPHEIGHT,
float, autocvar_sv_stepheight)
432 int autocvar_sv_wallclip;
#define GAMEPLAYFIX_DOWNTRACEONGROUND(s)
#define GAMEPLAYFIX_WATERTRANSITION(s)
#define GAMEPLAYFIX_STEPMULTIPLETIMES(s)
#define GAMEPLAYFIX_EASIERWATERJUMP(s)
const int MOVEFLAG_NOGRAVITYONGROUND
const int MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE
float autocvar_sys_ticrate
#define GAMEPLAYFIX_UNSTICKPLAYERS(s)
#define GAMEPLAYFIX_DELAYPROJECTILES(s)
const int MOVEFLAG_Q2AIRACCELERATE
int multijump_count
arc heat in [0,1]
int autocvar_leadlimit_and_fraglimit
#define SPECTATE_COPYFIELD(fld)
#define GAMEPLAYFIX_STEPDOWN(s)
vector(float skel, float bonenum) _skel_get_boneabs_hidden
REGISTER_STAT(MOVEFLAGS, int, MOVEFLAG_VALID|(autocvar_sv_gameplayfix_q2airaccelerate ? MOVEFLAG_Q2AIRACCELERATE :0)|(autocvar_sv_gameplayfix_nogravityonground ? MOVEFLAG_NOGRAVITYONGROUND :0)|(autocvar_sv_gameplayfix_gravityunaffectedbyticrate ? MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE :0)) .float gravity
cvar loopback
#define NOAIRBORNCORPSE_ALLOWSUSPENDED(s)
#define GAMEPLAYFIX_NOAIRBORNCORPSE(s)
#define GAMEPLAYFIX_SLIDEMOVEPROJECTILES(s)
float W_WeaponRateFactor(entity this)
#define GAMEPLAYFIX_GRENADEBOUNCESLOPES(s)
#define GAMEPLAYFIX_STEPDOWN_MAXSPEED(s)