benilla-re systems structs docs

CCamera::UpdateListenerLiquid

function · uicamera · primitive

Address
0x511a80 · 65 bytes, up to 0x511ac0
Signature
void __thiscall (CCamera *this)
Meaning
Updates the listener's submerged flag when the liquid type at the camera changes
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 2

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