benilla-re systems structs docs

Script::MoveForwardStart

function · input · orchestration

Address
0x513e20 · 42 bytes, up to 0x513e49
Signature
int __fastcall (lua_State *L)
Meaning
Presses command bit 0x10 (move forward), when 0x494a50(0) allows
Confidence
verified, proof one
Name from
the community database (idb)
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 0

None by a direct call or jump.

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.