cut11b: keep breakFrac headroom and swap local slot to walker in net test
This commit is contained in:
parent
6c12a79090
commit
89f0759d3a
2 changed files with 3 additions and 1 deletions
|
|
@ -1483,7 +1483,7 @@ namespace RustToDust.Ymir
|
||||||
{
|
{
|
||||||
Vector3 curPelvisShift = Vector3.Transform(ws.PelvisOffset, qYaw);
|
Vector3 curPelvisShift = Vector3.Transform(ws.PelvisOffset, qYaw);
|
||||||
Quaternion curQTotal = Quaternion.Normalize(qYaw * Quaternion.CreateFromYawPitchRoll(0f, ws.LeanPitch, ws.LeanRoll));
|
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++)
|
for (int i = 0; i < n; i++)
|
||||||
{
|
{
|
||||||
if (!ws.Planted[i]) continue;
|
if (!ws.Planted[i]) continue;
|
||||||
|
|
|
||||||
|
|
@ -853,6 +853,8 @@ namespace RustToDust.Tests
|
||||||
else if (i == rivalId) host.Session.SetContenderPose(i, 16f, 0f, 0f);
|
else if (i == rivalId) host.Session.SetContenderPose(i, 16f, 0f, 0f);
|
||||||
else host.Session.SetContenderPose(i, 900f + i * 20f, 900f);
|
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);
|
host.Session.State.SpawnChassisDrop(16f, 0f, Catalog.Breaker);
|
||||||
Assert.True(host.Session.TrySwapNearbyChassis(rivalId));
|
Assert.True(host.Session.TrySwapNearbyChassis(rivalId));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue