From 0d8cf4b6fa4832f92453d8c48973998d8afae025 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 11 Jan 2020 01:39:03 +1000 Subject: [PATCH] Update the view smoothing cvars to Xonotic values in code --- qcsrc/lib/csqcmodel/cl_player.qc | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/qcsrc/lib/csqcmodel/cl_player.qc b/qcsrc/lib/csqcmodel/cl_player.qc index 12fa926e2..2af309c02 100644 --- a/qcsrc/lib/csqcmodel/cl_player.qc +++ b/qcsrc/lib/csqcmodel/cl_player.qc @@ -208,8 +208,8 @@ bool CSQCPlayer_IsLocalPlayer(entity this) } float stairsmoothz; -float autocvar_cl_stairsmoothspeed = 160; -float autocvar_cl_smoothviewheight = 0; +float autocvar_cl_stairsmoothspeed = 200; +float autocvar_cl_smoothviewheight = 0.05; float smooth_prevtime; float viewheightavg; vector CSQCPlayer_ApplySmoothing(entity this, vector v) @@ -262,18 +262,18 @@ void CSQCPlayer_ApplyIdleScaling(entity this) //setproperty(VF_CL_VIEWANGLES, view_angles); // update view angles as well so we can aim } -float autocvar_cl_bob; -float autocvar_cl_bobcycle; -float autocvar_cl_bob_limit; -float autocvar_cl_bob_limit_heightcheck; -float autocvar_cl_bob_velocity_limit; -float autocvar_cl_bobup; -float autocvar_cl_bobfall; -float autocvar_cl_bobfallcycle; -float autocvar_cl_bobfallminspeed; -float autocvar_cl_bob2; -float autocvar_cl_bob2cycle; -float autocvar_cl_bob2smooth; +float autocvar_cl_bob = 0; +float autocvar_cl_bobcycle = 0.5; +float autocvar_cl_bob_limit = 7; +float autocvar_cl_bob_limit_heightcheck = 0; +float autocvar_cl_bob_velocity_limit = 400; +float autocvar_cl_bobup = 0.5; +float autocvar_cl_bobfall = 0.05; +float autocvar_cl_bobfallcycle = 3; +float autocvar_cl_bobfallminspeed = 200; +float autocvar_cl_bob2 = 0; +float autocvar_cl_bob2cycle = 1; +float autocvar_cl_bob2smooth = 0.05; float bobfall_swing; float bobfall_speed; float bob2_smooth; -- 2.39.2