From 89f0759d3a1ed52aeeb0b8d33fa5c36fc60144eb Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 6 Dec 2026 02:19:32 +0100 Subject: [PATCH] cut11b: keep breakFrac headroom and swap local slot to walker in net test --- src/RustToDust.Ymir/WalkerLocomotion.cs | 2 +- tests/RustToDust.Tests/CultNetMultiplayerTests.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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));