diff --git a/src/RustToDust.Ymir/WalkerLocomotion.cs b/src/RustToDust.Ymir/WalkerLocomotion.cs index 88c3fbe..49d3798 100644 --- a/src/RustToDust.Ymir/WalkerLocomotion.cs +++ b/src/RustToDust.Ymir/WalkerLocomotion.cs @@ -1483,7 +1483,7 @@ namespace RustToDust.Ymir { Vector3 curPelvisShift = Vector3.Transform(ws.PelvisOffset, qYaw); Quaternion curQTotal = Quaternion.Normalize(qYaw * Quaternion.CreateFromYawPitchRoll(0f, ws.LeanPitch, ws.LeanRoll)); - float breakFrac = n == 4 ? 0.940f : 0.945f; + float breakFrac = n == 4 ? 0.945f : 0.955f; for (int i = 0; i < n; i++) { if (!ws.Planted[i]) continue; diff --git a/tests/RustToDust.Tests/CultNetMultiplayerTests.cs b/tests/RustToDust.Tests/CultNetMultiplayerTests.cs index a5dc0aa..19dfaa1 100644 --- a/tests/RustToDust.Tests/CultNetMultiplayerTests.cs +++ b/tests/RustToDust.Tests/CultNetMultiplayerTests.cs @@ -853,6 +853,8 @@ namespace RustToDust.Tests else if (i == rivalId) host.Session.SetContenderPose(i, 16f, 0f, 0f); else host.Session.SetContenderPose(i, 900f + i * 20f, 900f); } + host.Session.State.SpawnChassisDrop(0f, 0f, Catalog.Breaker); + Assert.True(host.Session.TrySwapNearbyChassis(slot)); host.Session.State.SpawnChassisDrop(16f, 0f, Catalog.Breaker); Assert.True(host.Session.TrySwapNearbyChassis(rivalId));