benilla-re systems structs docs

CInputControl::Tick

function · input · orchestration

Address
0x514640 · 458 bytes, up to 0x514809
Meaning
Applies the command bits to the driven unit: moves, turns, pitches and stops, honouring root and stun
Confidence
verified, proof one
Finding
input#the-tick

Finding: The tick in input

0x514640(time, apply) acts on the unit the client drives (0xc4da98, type mask 8); with none it returns. With apply nonzero it evaluates 0x514560 (may translate) and 0x5145b0 (not stunned); with apply zero both read as false. If it may translate, it runs the forward and strafe emitters (0x514da0, 0x514e80). If it may not, it stops auto-movement (0x60fb60(0, 1)) when the unit is also stunned, stops a pending forward move (bit 0x10000) and strafe move (0x20000) and clears the autorun bit 0x1000. Then a unit that is not stunned runs the turn emitter (0x514f50) and, while swimming, the pitch emitter (0x515010); a stunned unit clears the turn latch (0x40000) and pitch latch (0x80000), sending the pitch stop only while swimming.

The derivation is in the doc.

Callers 11

Callees 13

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