CCamera::OnFrame
function · uicamera · orchestration
- Address
0x511bc0· 130 bytes, up to0x511c41- Signature
uint32_t __fastcall (uint32_t unused, CCamera *camera)- Meaning
- Sets the clip planes and updates the camera or its cinematic, then the listener liquid
- Confidence
- verified, proof one
- Finding
- uicamera/solver#the-per-frame-outer-call
Finding: The per-frame outer call in uicamera: the near and far solver and the water bands
The world frame calls 0x511bc0(frame, now) for the camera each update. It stores the near clip, the CVar nearclip,
at +0x38 and the far clip, the CVar farclip, at +0x3c. If a cinematic is playing (+0x48 nonzero) it runs the
cinematic update 0x50f060. Otherwise it resolves the target GUID at +0x88 and calls the driver. Either way it then
calls 0x511a80, which asks the world for the liquid type at the camera and, when that differs from the
cached one at +0x250, updates the listener's submerged sound flag; it returns 1.
The derivation is in the doc.
Callers 1
Callees 5
- OsGetAsyncTimeMs core
- ClntObjMgrObjectPtr objectlayer
- CCamera::Update uicamera
- CCamera::UpdateShot uicamera
- CCamera::UpdateListenerLiquid uicamera
Calls and jumps by a bare address, from tables/calls.tsv.