Run body and fire phases during scripted control locks

This commit is contained in:
UnixNight committed 2026-10-26 12:21:25 -04:00
1 parent 5876da112c
commit c285b57091
35 files changed
+1503 -45

No files matched your search

+49
View File
@@ -0,0 +1,49 @@
# Physics eligibility while control is absent
Static C3 follow-up,2026-10-26. Original EXE SHA256
`f5281076e1a2492f2d61f87aae3f4544b6d0f535ebe33f9fbb6f78710fe1aea8`.
Preferred-base VAs map to raw offset VA−400000 here; the helper independently
PE-maps and guards19 instruction sites and6 virtual targets. Investigator supplied
the initial trace; primary completed/checked it after investigator capacity ended.
No original physics routine was executed for these assertions.
## Separate owners and gates
47E531 invokes475CA0 before the frame's physics pass47E554→479BC0.475CA0 reads
5099AB and4F641C only: return `!5099AB ||4F641C`. It does not read controlled
pointer5099E4. The viewport additionally requires a supervisor and supervisor+8C
clear; valid QPC dt remains a separate frame condition (loop-motion.md).
Route game complete168 resolves44E450 on LV1B/VR04/LEV1. It stores its argument
to5099AB at44E458 and clears4F641C at44E465. Jimmy PostLoad calls168(0), while
modal callers use this state separately. Control118 instead resolves475A40 and
writes5099E4. Clearing control is not equivalent to calling168 to suspend play.
479BC0 tests body-list enable4F69E7 at479BE9, walks registered payloads rooted
695D3C and calls479D20 at479C2B. No raw-owner predicate selects that traversal.
479D58 calls body210→4719F0, reading interface13E; false skips integration.
Generic construction calls471030(1) at46FDDF..46FDE3, storing authored byte16
and invoking214→471A00 to set live13E. Init470612/47061B copies authored16
through getterB4→471020 and setter214. This is the integration gate, not the
similarly named GAM `CanMove` descriptor used by animated-object behavior.
When eligible, the body consumes pending impulse479EBB..479EF2, acceleration
479F01 and velocity479F8D regardless of Jimmy's raw ownership.43A750 camera
preparation clears speed/velocity XYZ but does not clear queued impulse or
acceleration; the earlier isolated body probe covers that narrow write contract.
CAM/MCA control transfer does not disable13E in the inspected paths.
## Implementation boundary
The port now runs its existing player body adapter during ordinary cutscene
control locks, skips controlled movement/input, and still ticks owned fire.
F1, practice, inspection and inactive-window policy remain whole-frame boundaries.
This does not reconstruct all supervisor/override/body-list modes, contact masks,
registration cleanup, static/dynamic response or source cadence. Source support
flags can differ from the provisional capsule's grounded flag. Other actor bodies
still use their existing subsystem adapters; this is not a full-scene scheduler.
`test_uncontrolled_physics.py` checks immutable gates/targets and a deliberately
separate predicate projection across NULL/Jimmy/other control and disabled gates.
Projection tests are not original execution. REA/Ghidra independently decompiled
475CA0 and479BC0; see rea.md and control-phase-implementation.md for Evidence IDs.