CInputControl::HandOffPitch
function · input · primitive
- Address
0x515330· 84 bytes, up to0x515383- Meaning
- Gives the camera pitch to the body when the pitch gate holds, then clears bit 0x80000
- Confidence
- verified, proof one
- Finding
- input#mouse-turning-and-the-camera
- Test
ui::glue_503_515330_negate
Finding: Mouse turning and the camera in input
A mouse motion (0x514400, the delta message class) first rotates the camera and then hands the new facing to the body only when 0x5145e0(unit) holds: not stunned (so alive), the mouse-turn bit 0x1 is held and the unit's stand state is 0. The hand-off functions 0x5152e0 and 0x515330 repeat the health, flags and stand tests (0x5151b0, 0x515250).
A dead player therefore still orbits the camera and cannot turn the body.
The derivation is in the doc.
Callers 2
- CCamera::Update uicamera
- CCamera::CommitFacing uicamera
Callees 3
- ClntObjMgrObjectPtr objectlayer
- CInputControl::PitchGate input
- CGUnit_C::SetPitch objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.