Preserve retained Jimmy update order on initial story entry
This commit is contained in:
1 parent
4cd62d3627
commit
ea04210f52
24 files changed
+1209
-22
No files matched your search
@@ -0,0 +1,32 @@
|
||||
using GamePort.Game;
|
||||
|
||||
namespace GamePort.Application;
|
||||
|
||||
/// <summary>Exercise grounded neutral input after skipping the real Carl chain.
|
||||
/// Kept separate from the held-input check, which cannot detect stale bank.</summary>
|
||||
internal static class CutsceneIdleSmoke
|
||||
{
|
||||
public static void LandWhileLocked(PlayerSceneBinding binding, SceneDirector director, LabSimulation player)
|
||||
{
|
||||
for (var tick = 0; tick < 180; tick++) binding.Step(default);
|
||||
if (director.Controlled || !player.Grounded || player.MovementMode != 1 || player.TurnRate == 0)
|
||||
throw new InvalidOperationException("Carl idle fixture did not retain airborne mode/turn through an uncontrolled landing");
|
||||
}
|
||||
|
||||
public static void VerifyReturn(PlayerSceneBinding binding, SceneDirector director, LabSimulation player)
|
||||
{
|
||||
var yaw = player.Yaw;
|
||||
for (var tick = 0; tick < 300; tick++)
|
||||
{
|
||||
binding.Step(default);
|
||||
if (!director.Controlled || player.MovementMode != 0 || player.TurnRate != 0
|
||||
|| MathF.Abs(MathF.IEEERemainder(player.Pitch, 360)) > .001f
|
||||
|| MathF.Abs(MathF.IEEERemainder(player.Roll, 360)) > .001f
|
||||
|| MathF.Abs(MathF.IEEERemainder(player.Yaw - yaw, 360)) > .001f
|
||||
|| MathF.Abs(player.FacingTarget.X) > .001f || MathF.Abs(player.FacingTarget.Z) > .001f)
|
||||
throw new InvalidOperationException($"Carl neutral return republished airborne bank on tick{tick}: "
|
||||
+ $"inputAfterPlayer={player.InputAfterPlayerUpdate}, Euler={player.Rotation}, target={player.FacingTarget}, mode={player.MovementMode}, turn={player.TurnRate}");
|
||||
}
|
||||
Console.WriteLine("Carl neutral return: upright on first resumed input and300 idle ticks; heading preserved.");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user