X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fecs%2Fsystems%2Fsv_physics.qc;h=1454d0049fe76b0d6211f0e98e7379b47bb20857;hb=ae838b73ec88a21b5a7b27937b0b1405b56e217d;hp=45128393baee77d55b07b436b735291ae9c08e0c;hpb=879dac5094b8eb7890fb5fd970f822da31ee242f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/ecs/systems/sv_physics.qc b/qcsrc/ecs/systems/sv_physics.qc index 45128393b..1454d0049 100644 --- a/qcsrc/ecs/systems/sv_physics.qc +++ b/qcsrc/ecs/systems/sv_physics.qc @@ -1,5 +1,9 @@ #include "physics.qh" +float autocvar_sv_spectator_speed_multiplier; +float autocvar_sv_spectator_speed_multiplier_min = 1; +float autocvar_sv_spectator_speed_multiplier_max = 5; + void sys_phys_fix(entity this, float dt) { WarpZone_PlayerPhysics_FixVAngle(this); @@ -22,7 +26,7 @@ void sys_phys_monitor(entity this, float dt) { int buttons = PHYS_INPUT_BUTTON_MASK(this); anticheat_physics(this); - if (sv_maxidle > 0) { + if (autocvar_sv_maxidle > 0 || autocvar_sv_maxidle_playertospectator > 0) { if (buttons != CS(this).buttons_old || CS(this).movement != CS(this).movement_old || this.v_angle != CS(this).v_angle_old) { CS(this).parm_idlesince = time; }