From 21d11c60c712b035bfb746be27260030086802f6 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 11 Jan 2020 01:12:10 +1000 Subject: [PATCH] Set a default value for cl_stairsmoothspeed in code so that it works in any engine --- qcsrc/lib/csqcmodel/cl_player.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2