CMovement::StartSplinePath
function · collision · orchestration
- Address
0x6187a0· 146 bytes, up to0x618831- Signature
uint32_t __thiscall (CMovement *this, const float *points, uint32_t count, uint32_t a3, uint32_t a4, uint32_t a5)- Meaning
- Flushes and stops the unit; unless rooted, installs a spline through the points and activates it
- Confidence
- verified, proof one
- Finding
- collision/eventapply#queue-flush
Finding: Queue flush in collision: event applies
0x6185f0(keep, endSpline) zeroes +0x148 and +0x14c and dispatches every queued event at once
through 0x618080, first to last, whatever its time. With keep 0 it saves flag 0x800, holds it
set during the flush and restores it after. Its callers:
| caller | flush | then |
|---|---|---|
0x617fc0(arg) | (0, arg) | 0x619e80(arg) |
0x618680(position, facing), unreached | (0, 1) | 0x617e90(0, 0, position, facing, 1, 0) |
0x618750(a, point) | (0, 0) | 0x61aa70, 0x619300(point), 0x7c6a20(a), 0x616d30, 0x619de0 |
0x6187a0(points, n, …) | (0, 0) | 0x61aa70, 0x619e80(0); with 0x1000 set returns 0 |
Unrooted, 0x6187a0 gives the spline at +0xa4 the last point (0x7c62c0), calls 0x7c6a50,
which hands the points to the path object, activates the movement, calls 0x453390(1.0, spline+0x58, 1) on spline +0x2c and returns 1; what the path object and 0x453390 do with them
is not read here.
The derivation is in the doc.
Callers 2
- CGPlayer_C::StartSplineRun objectlayer
- CGUnit_C::OnMonsterMove objectlayer
Callees 8
- EvaluateSplinePoint spline
- CMovement::FlushEvents collision
- CMovement::Activate collision
- CMovement::Deactivate collision
- CMovement::StopAllMotion collision
- MovementGetGlobals collision
- CMovement::InitSpline collision
- CMovement::StartSpline collision
Calls and jumps by a bare address, from tables/calls.tsv.