From 6e41de5c99abd02fbc494f2356961f1805ae8ef9 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 6 Dec 2026 01:11:12 +0100 Subject: [PATCH] fix(ymir): restore 0.65f swing arc scale for bastion so downhill earlyBreak stays under 1.68m --- src/RustToDust.Ymir/WalkerLocomotion.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/RustToDust.Ymir/WalkerLocomotion.cs b/src/RustToDust.Ymir/WalkerLocomotion.cs index 6196ed5..d46f650 100644 --- a/src/RustToDust.Ymir/WalkerLocomotion.cs +++ b/src/RustToDust.Ymir/WalkerLocomotion.cs @@ -1715,7 +1715,8 @@ namespace RustToDust.Ymir float sz = ws.SwingStartSole[i].Z + (ws.SwingTargetSole[i].Z - ws.SwingStartSole[i].Z) * s; float syBase = ws.SwingStartSole[i].Y + (ws.SwingTargetSole[i].Y - ws.SwingStartSole[i].Y) * s; float stepDiff = MathF.Min(MathF.Abs(ws.SwingTargetSole[i].Y - ws.SwingStartSole[i].Y), 1.0f * scale); - float arcLift = (geom.SwingArcHeight * scale * 0.85f + 0.12f * stepDiff) * MathF.Pow(env, 1.40f); + float arcScale = n == 4 && !geom.IsArachnidUp ? 0.65f : 0.85f; + float arcLift = (geom.SwingArcHeight * scale * arcScale + 0.12f * stepDiff) * MathF.Pow(env, 1.40f); var underHit = SampleGroundAt(terrain, world, sx, sz, comPos.Y + 0.8f); float minGround = underHit.SurfaceY + 0.10f * scale * env; ws.FootSole[i] = new Vector3(sx, MathF.Max(syBase + arcLift, minGround), sz);