CGUnit_C::GetAutoMoveTarget
function · objectlayer · primitive
- Address
0x610e40· 593 bytes, up to0x611090- Meaning
- Returns an auto-move's target point and squared distance, horizontal unless swimming, by mode
- Confidence
- verified, proof one
- Finding
- objectlayer/unitmovement#steering-an-auto-move
- Test
objectlayer::move_dist_squares_difftest,objectlayer::move_goal_radius_difftest
Finding: Steering an auto-move in objectlayer: unit movement
0x6106b0 runs each frame for the active mover. It reads the target (0x610e40), turns toward it
by at most the CVar turn speed, pitches a swimmer, and arrives inside the stop distance. Arrival
runs the mode's action through 0x60f940, and 0x60fa20 completes a pending interaction after
the move.
The derivation is in the doc.
Callers 1
- CGUnit_C::UpdateAutoMove objectlayer
Callees 3
- ClntObjMgrObjectPtr objectlayer
- CMovement::TransportToWorld collision
- CMovement::GetCurrentSpeed collision
Calls and jumps by a bare address, from tables/calls.tsv.