benilla-re systems structs docs

CCamera::EnterAbsoluteFrame

function · uicamera · primitive

Address
0x50d3b0 · 129 bytes, up to 0x50d430
Signature
void __thiscall (CCamera *this)
Meaning
Raises the absolute frame counter and bakes the facing into the yaw offsets on the first
Confidence
verified, proof one
Finding
uicamera/transitions#relative-and-absolute-frames

Finding: Relative and absolute frames in uicamera: transitions

The yaw offset is normally relative to the target's facing. Two counters change that. While +0xa4 is above 0 the camera is in the absolute frame: the view yaw is the offset alone. Raising the counter from 0 adds the target's facing to the yaw offsets so the picture does not move, and lowering it to 0 takes the facing off again. +0xa8 does the same for the terrain pitch, which is added to the view pitch only while the counter is 0. Mouselook raises both counters when it begins and lowers them when it ends; the external-move flag of uicamera/follow raises the first.

The derivation is in the doc.

Callers 3

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.