CMovement::UpdateCurrentSpeed
function · collision · orchestration
- Address
0x7c5c20· 34 bytes, up to0x7c5c41- Signature
void __thiscall (CMovement *this, uint32_t force)- Meaning
- Stores the selected speed at +0x84 unless falling without force
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- collision/kinematics#current-speed-selector
Finding: Current speed selector in collision: kinematics
0x7c4c90(walk) returns the current speed from the flags +0x40, first match:
| test | result |
|---|---|
no bit of 0xf | 0.0 |
spline +0xa4 set, its +0x18 bit 2 clear | its +0x30 / +0x24 · 1000, unrounded |
0x00200000 and 0x2 | +0x98 if +0x98 ≤ +0x94, else +0x94 |
0x00200000 | +0x94 |
0x100 or walk ≠ 0 | +0x88 if +0x8c > +0x88, else +0x8c |
0x2 | +0x90 if +0x90 ≤ +0x8c, else +0x8c |
| otherwise | +0x8c |
0x7c5c20(force) stores 0x7c4c90(force) at +0x84 as a float, unless 0x2000 is set and force is 0.
The derivation is in the doc.
Callers 19
- CMovement::ApplyEventStatus collision
- CMovement::ResolveDisplacement collision
- CMovement::StopFalling collision
- CMovement::ClearSpline collision
- CMovement::ReadStatusPosition collision
- CMovement::SetPositionAndFacing collision
- CMovement::StartMove collision
- CMovement::ForceStopMove collision
- CMovement::StartStrafe collision
- CMovement::ForceStopStrafe collision
- CMovement::StartSwimming collision
- CMovement::StopSwimming collision
- CMovement::SetRunSpeed collision
- CMovement::SetRunBackSpeed collision
- CMovement::SetWalkSpeed collision
- CMovement::SetSwimSpeed collision
- CMovement::SetSwimBackSpeed collision
- CMovement::SetRunMode collision
- CMovement::SetRoot collision
Callees 1
- CMovement::GetCurrentSpeed collision
Calls and jumps by a bare address, from tables/calls.tsv.