BobbingNeedsClear
function · uicamera · primitive
- Address
0x5106f0· 89 bytes, up to0x510748- Signature
bool __thiscall (CCamera *this)- Meaning
- Returns whether the bob offsets are nonzero while bobbing is not active
- Confidence
- verified, proof one
- Finding
- uicamera/cvars#clear-and-band-tests
- Test
ui::glue_eps_predicates
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
- CCamera::UpdateTransitions uicamera
Callees 2
- ClntObjMgrObjectPtr objectlayer
- BobbingActive uicamera
Calls and jumps by a bare address, from tables/calls.tsv.