feat(R3-W4): ground transitions + lifecycle verbatim; K-fix18 DELETED (closes J8, J10, J11-shape, J12, J13, J18, J19)
Core (dedicated agent, independently reviewed): HitGround 0x00528ac0 / LeaveGround 0x00528b00 verbatim (creature+gravity gates, the RemoveLinkAnimations seam — K-fix18's retail mechanism — velocity via GetLeaveGroundVelocity with the autonomous flag, jump-state resets, apply_current_movement re-sync); enter_default_state 0x00528c80 per A8 (fresh states, InitializeMotionTables seam, sentinel APPENDED without draining pending_motions — pinned, Initted=1, LeaveGround tail); Initted gates; the A3 IsThePlayer dual dispatch in apply_current_movement / ReportExhaustion / SetWeenieObject / SetPhysicsObject (a remote player routes INTERPRETED — the ACE-divergence pin); set_hold_run 0x00528b70 + SetHoldKey 0x00528bb0 (XOR guard, None-only-from-Run); adjust_motion creature guard wired (TS-34 retired); PhysicsBody.LastMoveWasAutonomous + set_local_velocity(autonomous). Port discovery: retail's apply_raw_movement 0x005287e0 / apply_interpreted_movement 0x00528600 ARE the already-shipped D6.2a/funnel functions — the dual dispatch composes them instead of duplicating. App cutover (orchestrator): the skipTransitionLink flag + both K-fix18 call sites DELETED (AP-74 retired). MotionInterpreter.DefaultSink routes apply_current_movement's interpreted branch through the REAL funnel dispatch when a sink is bound — so a remote's LeaveGround engages Falling via the contact-gated funnel, replacing the forced SetCycle (J19); the per-remote MotionTableDispatchSink is now PERSISTENT (EnsureRemoteMotionBindings: DefaultSink + RemoveLinkAnimations + InitializeMotionTables seams, idempotent from both the UM and VectorUpdate paths; wire velocity re-applied after LeaveGround so it stays authoritative). Player: seams bound to the player sequencer; the controller's grounded→airborne EDGE now fires LeaveGround (jump() clears OnWalkable and the same frame's transition detection fires it — retail's order; walk-off-a-ledge gets the momentum fallback + link strip it never had); the manual jump-block LeaveGround deleted; LastMoveWasAutonomous set at the controller chokepoint (W6 refines). Trace S8 re-expressed as the retail mechanism (Falling dispatch + RemoveAllLinkAnimations = same final state the flag produced). 43 new lifecycle tests. Registers: TS-34 + AP-74 retired; TS-38, AP-77, AP-78 added. Full suite: 3,665 passed. Live smoke: in-world clean. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
af4764443f
commit
e214acdf23
8 changed files with 1575 additions and 124 deletions
|
|
@ -335,12 +335,20 @@ public sealed class AnimationSequencerCutoverTraceTests
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public void S8_KFix18_FallingSkipsLink()
|
||||
public void S8_LeaveGroundLinkStrip_FallingEngagesInstantly()
|
||||
{
|
||||
// EXPECTED-DIFF(R3-W4): the K-fix18 skipTransitionLink flag is
|
||||
// DELETED. The instant-Falling engage is retail's own mechanism:
|
||||
// MotionInterpreter.LeaveGround (0x00528b00) fires the
|
||||
// RemoveLinkAnimations seam — bound to this sequencer's
|
||||
// RemoveAllLinkAnimations (CPhysicsObj::RemoveLinkAnimations
|
||||
// 0x0050fe20 → CSequence::remove_all_link_animations) — after the
|
||||
// Falling dispatch. Same final state the flag produced.
|
||||
var seq = NewSeq(out var loader);
|
||||
seq.SetCycle(NC, Ready);
|
||||
seq.SetCycle(NC, Walk, 1.0f);
|
||||
seq.SetCycle(NC, Falling, 1.0f, skipTransitionLink: true);
|
||||
seq.SetCycle(NC, Falling, 1.0f);
|
||||
seq.RemoveAllLinkAnimations(); // = LeaveGround's seam firing
|
||||
Assert.Equal(
|
||||
"10C@30.0*^ | frame=0.0 vel=(0.00,0.00,0.00) om=(0.00,0.00,0.00) style=8000003D motion=40000015 mod=1.00",
|
||||
Describe(seq, loader));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue