Set a default value for cl_stairsmoothspeed in code so that it works in any engine
authorMario <mario.mario@y7mail.com>
Fri, 10 Jan 2020 15:12:10 +0000 (01:12 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 10 Jan 2020 15:12:10 +0000 (01:12 +1000)
qcsrc/lib/csqcmodel/cl_player.qc

index f49c5f6dbd93ab621aea33c531ea47d5c7653380..12fa926e27f6fbae56aa32ebe7f3591ac6968405 100644 (file)
@@ -208,8 +208,8 @@ bool CSQCPlayer_IsLocalPlayer(entity this)
 }
 
 float stairsmoothz;
-float autocvar_cl_stairsmoothspeed;
-float autocvar_cl_smoothviewheight;
+float autocvar_cl_stairsmoothspeed = 160;
+float autocvar_cl_smoothviewheight = 0;
 float smooth_prevtime;
 float viewheightavg;
 vector CSQCPlayer_ApplySmoothing(entity this, vector v)