benilla-re systems structs docs

GatherDoodadFacets

function · terrain · orchestration

Address
0x6abc40 · 329 bytes, up to 0x6abd88
Signature
uint32_t __fastcall (void *doodads, const float *box, void *list, uint32_t mask)
Meaning
Adds the facets of the doodads whose boxes overlap a box, failing at one not loaded
Confidence
verified, proof one
Finding
terrain/collide#doodad-gather-leg

Finding: Doodad gather leg in terrain: collide

0x6abc40(doodads, box, list, mask) returns 1 at once without any of 0xf0000f in the mask, else walks a doodad def list and returns 0 at the first def it would take that is not loaded. A def is passed over when its flag word +0xc has bit 0x100, its stamp +0x8c is the query id or it has no model +0x88; it is taken by the mask under 0xf00000 when it has a game object's owner pair +0x180, +0x184, else under 0xf. A taken def needs bit 0x80 (loaded); its box +0x14c overlapping the query box adds its facets (0x6abd90); either way it is stamped. It returns 1 at the list's end.

The derivation is in the doc.

Callers 2

Callees 1

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