PitchNeedsMove
function · uicamera · orchestration
- Address
0x510760· 140 bytes, up to0x5107eb- Signature
bool __thiscall (CCamera *this, float low, float high)- Meaning
- Returns whether pitch smoothing is on and the pitch is outside the band
- 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
- CCamera::ArmAutoReturn uicamera
Callees 1
- ClntObjMgrObjectPtr objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.