CMovement::StartSwimming
function · collision · orchestration
- Address
0x7c6e50· 44 bytes, up to0x7c6e7b- Signature
void __thiscall (CMovement *this)- Meaning
- Sets the swim bit and clears 0x4000000, re-anchors, ends any 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 1
- CMovement::EnterSwim collision
Callees 3
- CMovement::UpdateCurrentSpeed collision
- CMovement::UpdateAnchors collision
- CMovement::StopFalling collision
Calls and jumps by a bare address, from tables/calls.tsv.