benilla-re systems structs docs

CMovement::StopSwimming

function · collision · orchestration

Address
0x7c6e80 · 42 bytes, up to 0x7c6ea9
Signature
void __thiscall (CMovement *this)
Meaning
Clears the swim bit, 0x40 and 0x80, zeroes the pitch, starts a fall and updates the current speed
Confidence
verified, proof one
Finding
collision/commands#swimming-on-and-off

Finding: Swimming on and off in collision: commands

0x7c6e50 clears 0x4000000 and sets 0x200000, re-anchors, runs the landing 0x7c6290 (which acts only when 0x2000 is set), and updates the speed. 0x7c6e80 clears 0x200000, 0x40 and 0x80, zeroes the pitch +0x20 and the anchor pitch +0x54, calls 0x7c61c0, and updates the speed. When 0x7c61c0 refuses (root, falling, swimming or 0x800 set, or a live spline with 0x200), nothing re-anchors: the anchor keeps its position and facing with its pitch zeroed, and the direction keeps its swim tilt.

The derivation is in the doc.

Callers 4

Callees 2

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