Cut 6a: headless orbital drop kinematics, hover-slam, wave respawns, and DropPodEvent net seam

This commit is contained in:
Meta Vens 2026-12-05 11:26:18 +01:00
commit c2f1e5bf90
25 changed files with 2931 additions and 118 deletions

View file

@ -67,7 +67,11 @@ namespace RustToDust.Tests
}
}
// 3. All 14 non-Jackal chassis drops exist in GroundDrops
// 3. Step 4.5s (270 ticks) so Wave 0 gear pods touch down into GroundDrops; all 14 non-Jackal chassis exist
for (int t = 0; t < 270; t++)
{
session.Step();
}
var droppedChassisIds = state.GroundDrops
.Where(d => d.Chassis is not null)
.Select(d => d.Chassis!.Id)
@ -91,15 +95,17 @@ namespace RustToDust.Tests
$"Sion Seed={seed}: Expected >= 3 reachable drops within 110-190m ring sector, got {nearRingDrops}");
}
// 4. Zero tick-0 spawn ambush
var player = state.Contenders[0];
// 4. Zero tick-0 spawn ambush (instant ground start check)
using var instantSession = new ArenaSession(seed, map, skipInitialDrop: true);
var instantState = instantSession.State;
var player = instantState.Contenders[0];
float initialHp = player.Grid.CoreHp;
session.SetHumanInput(0, new PlayerInput(0f, 0f, player.X, player.Z + 10f, false, false, true));
session.Step();
instantSession.SetHumanInput(0, new PlayerInput(0f, 0f, player.X, player.Z + 10f, false, false, true));
instantSession.Step();
for (int i = 1; i < state.Contenders.Count; i++)
for (int i = 1; i < instantState.Contenders.Count; i++)
{
var ai = state.Contenders[i];
var ai = instantState.Contenders[i];
Assert.False(ai.FireCmd, $"Map={map}, Seed={seed}: AI {ai.Id} fired on tick 0!");
}
Assert.Equal(initialHp, player.Grid.CoreHp);
@ -293,7 +299,7 @@ namespace RustToDust.Tests
[Fact]
public void RenderInterpolation_CameraAnchorAndContenderPose_ZeroHorizPhaseMismatchAcrossAlpha()
{
using var session = new ArenaSession(seed: 42, ArenaMapKind.Desert, slot0Human: true);
using var session = new ArenaSession(seed: 42, ArenaMapKind.Desert, slot0Human: true, skipInitialDrop: true);
IsolateContenders(session, 0);
var player = session.State.Contenders[0];