SERVER: Add grace period before velocity-based sprint stop

This commit is contained in:
cypress 2024-05-20 22:21:22 -07:00
parent 86df8159a0
commit 00152d2053

View file

@ -1678,7 +1678,7 @@ void() CheckPlayer =
// predicted for our slowest possible weapon. This removes the need
// for an engine-side hack for toggle sprinting turning off when
// you're applying less pressure to the analog stick.
else if (vlen(self.velocity) <= 130)
else if (vlen(self.velocity) <= 130 && self.sprint_delay <= time + 0.75)
W_SprintStop();
}