From 1d6afe45aaa54ca8bedc4a0a1b4f0c86b3c7ba4c Mon Sep 17 00:00:00 2001 From: FruitieX Date: Tue, 25 May 2010 21:15:27 +0300 Subject: [PATCH] always perform the trace before speedcap, independent of sv_doublejump :-P (untested due to lack of time, but should work) --- qcsrc/server/cl_physics.qc | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/server/cl_physics.qc b/qcsrc/server/cl_physics.qc index f42e142091..d3425451c1 100644 --- a/qcsrc/server/cl_physics.qc +++ b/qcsrc/server/cl_physics.qc @@ -88,6 +88,7 @@ void PlayerJump (void) if(cvar_string("sv_jumpspeedcap_min") != "") self.velocity_z = max(cvar("sv_jumpvelocity") * cvar("sv_jumpspeedcap_min"), self.velocity_z); if(cvar_string("sv_jumpspeedcap_max") != "") { + tracebox(self.origin + '0 0 0.01', self.mins, self.maxs, self.origin - '0 0 0.01', MOVE_NORMAL, self); if(trace_fraction < 1 && trace_plane_normal_z < 0.98 && cvar("sv_jumpspeedcap_max_disable_on_ramps")) { // don't do jump speedcaps on ramps to preserve old xonotic ramjump style //print("Trace plane normal z: ", ftos(trace_plane_normal_z), ", disabling speed cap!\n"); -- 2.39.2