From fc3d1530b428c3301ac384f6bc5d3bd8095c40ce Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Wed, 14 Sep 2022 11:36:44 +0200 Subject: [PATCH] Add patch from Juhu/strafehud-fixes branch: "strafehud: also reset maxspeed to ground physics in timeout code" --- qcsrc/client/hud/panel/strafehud.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc index 599b1f2c6..b7d79a38e 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -202,8 +202,12 @@ void HUD_StrafeHUD() if(!onground && !onground_expired) // if ground timeout hasn't expired yet use ground physics { onground = true; + if(!autocvar__hud_configure) + { + maxspeed = PHYS_MAXSPEED(strafeplayer) * maxspeed_mod; maxaccel = PHYS_ACCELERATE(strafeplayer); + } } movespeed = vlen(vec2(movement)); -- 2.39.2