fix(ymir): restore 0.65f swing arc scale for bastion so downhill earlyBreak stays under 1.68m

This commit is contained in:
Meta Vens 2026-12-06 01:11:12 +01:00
commit 6e41de5c99

View file

@ -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);