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");