fix(ymir): restore 0.65f swing arc scale for bastion so downhill earlyBreak stays under 1.68m
This commit is contained in:
parent
fd706b52c6
commit
6e41de5c99
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue