]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/cl_physics.qc
I have no idea why, but this fixes the mine layer.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / cl_physics.qc
index c9531bbc630d45f2cca4bfc2aeb97e5b248e2072..d9394deaf26a968573d2331a5c78d87d227a5ccd 100644 (file)
@@ -1328,12 +1328,12 @@ void SV_PlayerPhysics()
 
        float f;
        float xyspeed;
-       f = cvar("g_balance_nex_velocitydependent_falloff_factor");
+       f = cvar("g_balance_nex_velocitydependent_falloff_rate");
        xyspeed = vlen('1 0 0' * self.velocity_x + '0 1 0' * self.velocity_y);
        if(xyspeed > self.nexspeed)
                self.nexspeed = min(xyspeed, cvar("g_balance_nex_velocitydependent_maxspeed"));
        else
-               self.nexspeed = (1 - f) * self.nexspeed;
+               self.nexspeed = max(cvar("g_balance_nex_velocitydependent_minspeed"), self.nexspeed - f * frametime);
 :end
        if(self.flags & FL_ONGROUND)
                self.lastground = time;