CInputControl::SetCommands
function · input · orchestration
- Address
0x515090· 284 bytes, up to0x5151ab- Signature
uint32_t __thiscall (CInputControl *this, uint32_t commands, uint32_t press, uint32_t time, uint32_t extra)- Meaning
- Sends commands to 0x514840 when press is nonzero, else to 0x514b70
- Confidence
- verified, proof one
- Finding
- input#the-commands
Finding: The commands in input
Each Lua movement function is a pair of handlers that call 0x515090(bits, press, time, 0) on the input control (0x5143e0) once 0x494a50(0) allows it (the gate that refuses a tainted caller). The bits in the word +0x4: MoveForward 0x10, MoveBackward 0x20, StrafeLeft 0x40, StrafeRight 0x80, TurnLeft 0x100, TurnRight 0x200, PitchUp 0x400, PitchDown 0x800,
the mouse turn command 0x1 and the mouse camera command 0x2. ToggleAutoRun (0x513de0) sets or clears 0x1000 by inverting the current bit. Jump and ToggleRun do not use the word.
The derivation is in the doc.
Callers 29
- Script::ToggleAutoRun input
- Script::MoveForwardStart input
- Script::MoveForwardStop input
- Script::MoveBackwardStart input
- Script::MoveBackwardStop input
- Script::TurnLeftStart input
- Script::TurnLeftStop input
- Script::TurnRightStart input
- Script::TurnRightStop input
- Script::StrafeLeftStart input
- Script::StrafeLeftStop input
- Script::StrafeRightStart input
- Script::StrafeRightStop input
- Script::PitchUpStart input
- Script::PitchUpStop input
- Script::PitchDownStart input
- Script::PitchDownStop input
- Script::TurnOrActionStart input
- Script::TurnOrActionStop input
- Script::CameraOrSelectOrMoveStart input
- Script::CameraOrSelectOrMoveStop input
- Script::MouselookStart input
- Script::MouselookStop input
- CGUnit_C::AutoMoveStart objectlayer
- CGUnit_C::AutoMoveStop objectlayer
- CGUnit_C::PressCommand200000 objectlayer
- CGUnit_C::ReleaseCommand200000 objectlayer
- CGUnit_C::PressCommand800000 objectlayer
- CGUnit_C::ReleaseCommand800000 objectlayer
Callees 9
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CInputControl::Tick input
- CInputControl::PressCommands input
- CInputControl::ReleaseCommands input
- GetCastSpellId spell
- IsSpellTargeting spell
- CancelCast spell
- SendCancelChannelling spell
Calls and jumps by a bare address, from tables/calls.tsv.