benilla-re systems structs docs

CGUnit_C::IsSpeedWithinTwiceWalk

function · objectlayer · primitive

Address
0x5fc350 · 55 bytes, up to 0x5fc386
Signature
uint32_t __thiscall (CGUnit_C *this)
Meaning
Returns 0 when the unit's current speed is above twice its walk speed at +0xa30, else 1; equal gives 1
Confidence
verified, proof one
Finding
spell/records#range-bonuses-and-modifier
Test
objectlayer::diff_cast_time_elapsed

Finding: Range bonuses and modifier in spell: records

After either arm, with a unit in esi: when the movement flags at [unit+0x118]+0x40 of both the caster and that unit have a bit of 0x200d, 0x5fc350 returns 0 for both, and the row has flag bit 0 or the unit's type has bit 4, max += 8/3. Then, when +0x18 has bit 1 and the caster's type has bit 4, and the caster has more than 17 inventory slots whose slot 17 holds a cached item, max = (float)((W·0.01f)·max) with W the item record's float at +0x118. Last, the float applier with op 5 on max. A missing range row skips to the item step with both still 0.

The derivation is in the doc.

Callers 2

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.