Document architecture checkpoint and restore original task callback order
This commit is contained in:
1 parent
69d0187a21
commit
531883aaac
45 files changed
+2935
-43
No files matched your search
@@ -528,8 +528,28 @@ public sealed class SceneDirector
|
||||
// animated actor's TaskName activation contract. Applying the latter
|
||||
// here disables the lab exit even when SCENE reaches60.
|
||||
if (source.Kind == "LOAD") return;
|
||||
// Carl413F30 captures SCENE before generic40E340, then executes his
|
||||
// derived policy in the same callback, before the next registry actor.
|
||||
var carlScene = source.Kind == "3CAR" ? tasks.Get("SCENE") : 0;
|
||||
var active = source.Kind == "3PIC" ? TaskActivation.Pickup(source, state) : TaskActivation.Animated(source, state);
|
||||
if (active.HasValue) { actor.Active = actor.Visible = active.Value; ActorChanged?.Invoke(actor); }
|
||||
if (active.HasValue) actor.Active = actor.Visible = active.Value;
|
||||
var carlOverride = source.Kind == "3CAR" && level.Code == "LV1B";
|
||||
if (carlOverride)
|
||||
{
|
||||
//414068..414118. Other levels' derived policies remain unported.
|
||||
if (carlScene is < 0 or > 60) actor.Active = actor.Visible = false;
|
||||
else
|
||||
{
|
||||
if (carlScene > 30 && FindActor("CARLESC3") is { } marker)
|
||||
{
|
||||
actor.AIstate = 6;
|
||||
actor.Position = marker.Position;
|
||||
}
|
||||
// At60 retain the generic activation result.
|
||||
if (carlScene < 60) actor.Active = actor.Visible = true;
|
||||
}
|
||||
}
|
||||
if (active.HasValue || carlOverride) ActorChanged?.Invoke(actor);
|
||||
}
|
||||
|
||||
private void Block(GamEntity source, string detail, string? next)
|
||||
|
||||
Reference in new issue
Block a user