Set a default value for cl_stairsmoothspeed in code so that it works in any engine
[xonotic/xonotic-data.pk3dir.git] / 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)