lgbot: friction boost 1.2 (1.3 overshot to 353 u/s when the AI didn't push back)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
esefandClaude Opus 5.5 committed 2026-10-15 14:49:50 +03:00
1 parent aa457014e6
commit e7812902a1
2 files changed
+5 -4

No files matched your search

+4 -3
View File
@@ -9,10 +9,11 @@ import random
import time
RUN_SPEED = 320 # QL ground run speed, units/s
# Ground friction takes ~25% of the velocity we set before the frame's move happens (measured:
# 288 set -> ~220 actual), so on the ground we set this much more to end up at the wanted speed.
# Ground friction takes ~15% of the velocity we set before the frame's move happens at sv_fps 40
# (measured: 416 set -> 353 actual; up to ~25% while the bot AI pushes the other way), so on the
# ground we set this much more to end up at about the wanted speed.
# In the air there is no friction, so no boost (vertical speed 0 = on the ground, near enough).
FRICTION_COMP = 1.3
FRICTION_COMP = 1.2
KEYS = ["strafe_min", "strafe_max", "fake", "range", "range_play", "speed", "lane"]
LIMITS = {"strafe_min": (50, 2000), "strafe_max": (50, 2000), "fake": (0, 100),