fix(world): preserve portal materialization effects
Route accepted Hidden and UnHide transitions through retail's internal typed-script path so their DAT scripts queue while the owner is cell-less and resume at the destination. Consume ACE's successful teleport control statuses silently, matching retail HandleFailureEvent. Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
parent
bfb4b26dff
commit
4b1bceefbb
12 changed files with 142 additions and 8 deletions
|
|
@ -222,6 +222,30 @@ public sealed class EntityEffectControllerTests
|
|||
Assert.Equal([1u], EmitterIds(fixture.Sink));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CelllessOwner_HiddenTransitionQueuesTypedScriptUntilReentry()
|
||||
{
|
||||
var fixture = new Fixture();
|
||||
WorldEntity entity = fixture.ReadyLive();
|
||||
Assert.True(fixture.Runtime.WithdrawLiveEntityProjection(Guid));
|
||||
|
||||
// set_hidden resolves the table and calls play_script_internal
|
||||
// directly; it does not use CPhysicsObj::play_script's cell gate.
|
||||
Assert.True(fixture.Controller.PlayTypedFromHiddenTransition(
|
||||
entity.Id,
|
||||
RawType,
|
||||
0.5f));
|
||||
Assert.Equal(1, fixture.Runner.ActiveScriptCount);
|
||||
|
||||
fixture.Runner.Tick(1.0);
|
||||
Assert.Empty(fixture.Sink.Calls);
|
||||
|
||||
Assert.True(fixture.Runtime.RebucketLiveEntity(Guid, 0x01010001u));
|
||||
fixture.Runner.Tick(1.0);
|
||||
|
||||
Assert.Equal([2u], EmitterIds(fixture.Sink));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void FrozenOwnerPausesQueueUntilFreshStateUnfreezesIt()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue