benilla-re systems structs docs

s_cvarFarclip

global · uicamera

Address
0xbe0cc0 · 4 bytes, up to 0xbe0cc3
Type
void *
Meaning
Holds the CVar record of farclip, whose float at +0x24 the camera copies each frame
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.