]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add patch from Juhu/strafehud-fixes branch: "strafehud: also reset maxspeed to ground...
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Wed, 14 Sep 2022 09:36:44 +0000 (11:36 +0200)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Wed, 14 Sep 2022 09:36:44 +0000 (11:36 +0200)
qcsrc/client/hud/panel/strafehud.qc

index 599b1f2c6dc699015f018c71a7675d32bc580c93..b7d79a38e021f3194208a9ae49587a2191bffdd6 100644 (file)
@@ -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));