benilla-re systems structs docs

CMovement::ApplyMoveStop

function · collision · orchestration

Address
0x617b60 · 102 bytes, up to 0x617bc5
Signature
uint32_t __thiscall (CMovement *this, uint32_t time, const void *status)
Meaning
Applies a move stop now with tag 2; returns 1 when it stops and no strafe bit stays set
Confidence
verified, proof one
Finding
collision/events#apply-now-or-queue

Finding: Apply now or queue in collision: events

Each apply-now function passes its tag to 0x618f20(time, status, tag, value). When that returns 0 the event stays queued and the function returns 0; otherwise it applies:

functiontagon applyreturns
0x617520, 0x6178e00/1, 3/40x7c6ae0 or 0x7c6c50, then 0x619ca0 if it returned nonzero1 when both ran
0x61797070x7c6230(1), then 0x619ca0 if nonzero1 when both ran
0x617cf08/90x617c80(left), 0x619ca01
0x617b6020x7c6b70(flags before); idle check1 when it stopped and no 0xc bit is set
0x617c1050x7c6d00(flags before); idle check1 when it stopped and no 0x3 bit is set
0x617d80100x7c6dd0; idle checkwhat 0x7c6dd0 returned
0x617e3014/150x7c71c0(run)1

The idle check removes the movement from the active list, 0x619e80(1), when no flag of 0x20ff is set and the queue is empty; 0x618940 makes that test and otherwise adds it.

The derivation is in the doc.

Callers 1

Callees 4

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