2.5 KiB
Shared viewport handoff
2026-10-26. Static source evidence; implementation is deferred to the next bounded C5 chunk. camera_handoff.py guards50 instruction sites, four callbacks and the DEFAULT threshold; its four Python projections are not original execution. Text offsets below are preferred VA−400000 for the manifest's original EXE.
Shared viewport pointer509A50 stores eye at44/48/4C. MCA431677..43169D writes this same eye. DEFAULT447D54 has an already-Jimmy branch; on the other route it restores raw control, transforms Jimmy-local(0,500,−500) through384, computes Euclidean distance to the current shared eye, and writes eye only when distance>1000 (447E9D..447EC3). Equality does not snap. This block leaves orientation unchanged.
Walking input/follow438EF7..438F29 reads the current shared eye into complete 714/718/71C every invocation.439722..439742 uses it for desired-eye delta; 4397F8..43982D adds the filtered delta back to the shared viewport. Airborne 439E33..439E51 likewise captures the shared eye into locals. Therefore the first resumed input uses the final scripted eye, or DEFAULT's snapped eye, without relying on an old player-owned follow cache.
Normal walking gains are1.6/1.2/1.6 times dt and the separate ray gain. Aim derives from look point minus PRE-update eye (439830..439865; airborne43A09F..43A0CE), then quantized OMT angle conversion. The port's LookAt(newEye,target) is a separate orientation approximation. Other special follow fields/input branches remain open.
REA decompiled setup437740: ev_d2502f41c45731b86d4365634fbc6f0d1b3b70d880fd5741275fd36f1d585aa4. Selected DEFAULT/follow/viewport-write entries lacked recognized Ghidra procedures; explicit-offset attempts also failed. Complete successes/errors/exports/closed snapshots are under artifacts/camera-handoff/rea/ and rea-offsets/. Those negative provider results are limitations, not negative claims about the original code. The handoff conclusion is supported by the guarded direct instructions.
Current port still separates SceneDirector's scripted eye from LabSimulation's follow eye. C5 should move viewport eye/aim ownership into one state shared by script and follow, apply strict DEFAULT snapping only on the recovered boundary, and preserve pre-update-eye aiming. Test below/equal/above1000, already-owned, CAM/MCA→DEFAULT, held-input resume and RETURN continuity. Keep projection/fog/masks, full follow branches and original visual comparison separate. This investigation does not claim that camera handoff is implemented yet.