From 08dda66e056e14a4a2f4e6b26a90e51c13c2abae Mon Sep 17 00:00:00 2001 From: Samual Date: Sun, 8 Jan 2012 18:35:42 -0500 Subject: [PATCH] Working on improving stairsmoothing so that it doesn't jitter --- view.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/view.c b/view.c index 6e5de158..30de56b3 100644 --- a/view.c +++ b/view.c @@ -487,9 +487,13 @@ void V_CalcRefdefUsing (const matrix4x4_t *entrendermatrix, const vec3_t clviewa } else { + Con_Printf("last on ground time: %f, with z velocity of: %f\n", cl.lastongroundtime, cl.velocity[2]); + // smooth stair stepping, but only if clonground and enabled - if (!clonground || cl_stairsmoothspeed.value <= 0 || teleported) + if (smoothtime == 0.1 || cl_stairsmoothspeed.value <= 0 || teleported) + { cl.stairsmoothz = vieworg[2]; + } else { if (cl.stairsmoothz < vieworg[2]) -- 2.39.2