benilla-re systems structs docs

AutoReturnAllowed

function · uicamera · primitive

Address
0x510940 · 31 bytes, up to 0x51095e
Signature
bool __thiscall (CCamera *this)
Meaning
Returns 0 when the camera's bit 5 is set, else whether the view is uncustomised or customised smoothing is on
Confidence
verified, proof one
Finding
uicamera/cvars#clear-and-band-tests

Finding: Clear and band tests in uicamera: the camera CVars

0x5106f0 and 0x5107f0 say the bob offsets (+0x110 to +0x118) or the pivot bias (+0x104) are at least 0.001 in size while the matching condition is false, so the effect has to be cleared. 0x510760(low, high) and 0x510850(low, high) say the pitch or the yaw is outside the band and the matching smoothing CVar (cameraSmoothPitch, cameraSmoothYaw) is nonzero; the yaw test also needs the target to exist and the camera not in mouselook. The distance test 0x510750 always answers 0. 0x510940 answers 0 when the camera's bit 5 is set and otherwise the view-customised test of uicamera/follow.

The derivation is in the doc.

Callers 1

Callees 1

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