CGUnit_C::IsAutoMovingInModes
function · objectlayer · primitive
- Address
0x611590· 75 bytes, up to0x6115da- Meaning
- Returns whether the unit is the active mover in an auto-move mode whose bit is in the mask
- Confidence
- verified, proof one
- Finding
- objectlayer/unitmovement#auto-move-modes
Finding: Auto-move modes in objectlayer: unit movement
Auto-move drives the active mover toward a target in a mode, 0xc4d888, 12 meaning none. Each
mode has a 12-byte row of 0x860a58: enabled, a maximum squared distance, and two flags.
| mode | use | maximum | stop distance² |
|---|---|---|---|
| 0, 1 | keep facing the target or channel object | none | none |
| 2 | face a direction | none | none |
| 8 | walk along a heading | none | none |
| 3 | follow (AUTOFOLLOW_BEGIN) | 900 | 9 |
| 4 | walk to a point | none | 0.25 |
| 5 | walk to an NPC | 6400 | 7.7160487 |
| 6, 10 | loot; walk to attack | 6400 | the reaches + 4/3, at least 5 |
| 7 | walk to a game object | 6400 | 0xc4d998² |
| 9 | walk into spell range | 6400 | range · 0.9, squared |
The derivation is in the doc.
Callers 6
- UnitClearPrecastSpell objectlayer
- CGUnit_C::OnChannelSpellChanged objectlayer
- CGUnit_C::EndPrecast objectlayer
- HandleUnitCombatMessage objectlayer
- SpellFailedHandler spell
- EndSpellPrecastVisual spell
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.