CCamera::ArmAutoReturn
function · uicamera · primitive
- Address
0x510960· 1640 bytes, up to0x510fc7- Signature
void __thiscall (CCamera *this, CInputControl *input, bool stopping)- Meaning
- Picks the input state and arms the yaw, pitch and pivot bias to return to the view
- Confidence
- verified, proof one
- Finding
- uicamera/follow#the-input-state
- Test
ui::glue_510960_arith
Finding: The input state in uicamera: following and the auto-return
0x510960 turns the command mask MF and the mode word into a set of states. Fear is mode bit 12. Turn holds when a turn
key (0x300) or the right mouse button (bit 0) is down. Strafe holds for a strafe key (0xc0) or the right button with a turn
key. Move holds for a move key (0x1030) or both mouse buttons (bits 0 and 1). Track is mode bit 8. Stop is the second argument.
Idle holds when no move, strafe or turn key is down and none of the external-movement bits 0xf00000 is set. The
highest state wins, in the order Fear, Turn, Strafe, Move, Track, Stop, Idle. With no state nothing is armed.
The derivation is in the doc.
Callers 4
- CCamera::SetTrackFlag uicamera
- CCamera::SetExternalMove uicamera
- CInputControl::PressCommands input
- CInputControl::ReleaseCommands input
Callees 14
- OsGetAsyncTimeMs core
- AngleWrap fastmath
- ClntObjMgrObjectPtr objectlayer
- DistanceNeedsMove uicamera
- PitchNeedsMove uicamera
- PivotBiasNeedsClear uicamera
- YawNeedsMove uicamera
- AutoReturnAllowed uicamera
- CCamera::ArmDistance uicamera
- CCamera::ArmPitch uicamera
- CCamera::ArmPivotBias uicamera
- CCamera::ArmYaw uicamera
- CGUnit_C::UpdateDisplayFacing objectlayer
- GetTurnCommandFacing objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.