benilla-re systems structs docs

CMovement::ReadStatusTransport

function · collision · primitive

Address
0x7c6900 · 152 bytes, up to 0x7c6997
Signature
uint64_t __thiscall (CMovement *this, const CMovementStatus *status)
Meaning
Applies a status record's transport-frame position and facing when its transport resolves; returns the GUID
Confidence
verified, proof one
Finding
collision/falling#status-record-read
Test
collision::tf_setfacingto_residual_difftest

Finding: Status record read in collision: falling

0x7c6420(status) copies status +0x24 to the position +0x10 and the anchor +0x44, +0x30 to the facing +0x1c and +0x50, +0x34 to the pitch +0x20 and +0x54, and +0x4c to +0x80 whatever the flags; it zeroes +0x58 and calls 0x7c5c20(0). 0x7c6490(status, unused) copies +0x38 to +0x78 and +0x3c to +0xa0, sets +0x7c to 0x7c5f30(+0x38), copies +0x40 and +0x44 to +0x68, +0x6c and to +0x5c, +0x60 with +0x64 = 0, and +0x48 to +0x84. 0x7c6900(status) acts when status +0x08 names a transport that 0x630a80 accepts: it puts status +0x14 in +0x10 and +0x44, +0x20 in +0x1c and +0x50, sets +0x7c to 0x7c5f30(+0x78), and subtracts (+0x2c − +0x1c) from +0x80. It returns that GUID, else 0.

The derivation is in the doc.

Callers 1

Callees 2

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