From: FruitieX Date: Tue, 25 May 2010 18:15:27 +0000 (+0300) Subject: always perform the trace before speedcap, independent of sv_doublejump :-P (untested... X-Git-Tag: xonotic-v0.1.0preview~572 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=1d6afe45aaa54ca8bedc4a0a1b4f0c86b3c7ba4c;ds=inline always perform the trace before speedcap, independent of sv_doublejump :-P (untested due to lack of time, but should work) --- 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");