benilla-re systems structs docs

CMovement::SwitchTransport

function · collision · primitive

Address
0x618970 · 440 bytes, up to 0x618b27
Signature
uint32_t __thiscall (CMovement *this, uint32_t guidLo, uint32_t guidHi)
Meaning
Leaves the old transport and boards a new one, moving the model frame and facing; 0 when boarding fails
Confidence
inferred
Finding
collision/eventapply#transport-attach
Test
collision::negate_facing_618970_difftest

Finding: Transport attach in collision: event applies

0x618970(guid) returns 1 at once when the GUID is the current one. Leaving a transport, it reads that transport's angle (0x630b70), unlinks the movement's rider link at +0x08, zeroes +0x38 and +0x3c, clears flag 0x8000000 (0x7c6510), clears the model's parent frame and passes the angle to 0x601050 on the unit. Boarding, it returns 0 when 0x6309b0 refuses; otherwise it stores the GUID, takes the negated angle (fchs, stored as a float), fills an identity matrix through 0x630ac0, sets it as the model's parent frame and passes the negated angle. The model is the unit's +0xdc, else +0xd8. 0x618b30(status) passes the GUID 0x7c6900 takes from a status.

The derivation is in the doc.

Callers 2

Callees 6

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