benilla-re systems structs docs

CGPlayer_C::CanLootNow

function · objectlayer · primitive

Address
0x5ec110 · 302 bytes, up to 0x5ec23d
Meaning
Returns whether the player may loot an object now, in reach when it cannot walk there
Confidence
verified, proof one
Finding
objectlayer/interaction#looting
Test
objectlayer::p3_interact_reach_sq_5ec110, objectlayer::p3_interact_in_range_5ec110

Finding: Looting in objectlayer: interaction

0x5ec110(object) allows a loot when no loot is held, the player is alive with mover flag 0x2000 and unit flag 0x40000 clear, and in control; when the object cannot be reached by walking, it must also be within the reach (for a unit, both combat reaches plus 4/3, at least 5; else 5). 0x5df2a0(unit, walk) loots a unit: lootable, the mover still, it walks up beyond reach, then sends 0x15d, holds the GUID and plays animation 50. 0x5df130 does the same for a corpse, walking up beyond 5 yards (25 squared).

The derivation is in the doc.

Callers 4

Callees 3

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