From: Mario Date: Fri, 10 Jan 2020 15:12:10 +0000 (+1000) Subject: Set a default value for cl_stairsmoothspeed in code so that it works in any engine X-Git-Tag: xonotic-v0.8.5~1105^2~29 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;ds=sidebyside;h=21d11c60c712b035bfb746be27260030086802f6;p=xonotic%2Fxonotic-data.pk3dir.git Set a default value for cl_stairsmoothspeed in code so that it works in any engine --- diff --git a/qcsrc/lib/csqcmodel/cl_player.qc b/qcsrc/lib/csqcmodel/cl_player.qc index f49c5f6db..12fa926e2 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; -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)