cut11b: keep breakFrac headroom and swap local slot to walker in net test

This commit is contained in:
Meta Vens 2026-12-06 02:19:32 +01:00
commit 89f0759d3a
2 changed files with 3 additions and 1 deletions

View file

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

View file

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