benilla-re systems structs docs

FindMapObjectGroupAt

function · terrain · orchestration

Address
0x69d4f0 · 159 bytes, up to 0x69d58e
Signature
uint32_t __thiscall (void *this, void **instance, void **model, void **groupNode, void **group)
Meaning
Finds the map object and group an entity is inside
Confidence
verified, proof one
Finding
terrain/world#entity-queries
Test
terrain::entity_outdoors_difftest

Finding: Entity queries in terrain: world

Wrappers over a map entity (ecx). 0x6704c0 returns 1 when the entity is non-null and its +0x94 is 0. 0x670630 returns 0 unless +0x90 bit 5 is set; then it copies +0x98, the three floats at +0xe4, +0xf0 and bit 8 of +0x90 to its outputs and returns 1. 0x670540 returns 0 unless +0x90 bit 0 (indoors) is set; then 0x69db30 writes three words naming the entity's map object group, [[model + 0x120] + 0x20], [map object model + 0x118] + 4 and the group key +0x7c, and returns 1 if a group is found. 0x672470 writes the camera liquid state to its argument when non-null and returns it.

The derivation is in the doc.

Callers 11

Callees 1

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