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://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=21d11c60c712b035bfb746be27260030086802f6;hp=c726884106c898a2e1d3f33cf0bf0bb2542fe5e1 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 f49c5f6dbd..12fa926e27 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)