benilla-re systems structs docs

CreateGroupDoodadDef

function · terrain · orchestration

Address
0x694e90 · 617 bytes, up to 0x6950f8
Signature
void * __fastcall (uint32_t index, const void *record, const char *path, uint32_t instanceId, const NTempest::C44Matrix *matrix)
Meaning
Makes or returns the doodad def of a map object group's doodad with its matrices and light, and its model
Confidence
verified, proof one
Finding
terrain/doodads#group-doodad-def

Finding: Group doodad def in terrain: doodad defs

0x694e90 makes the def for one doodad of a map object group, or returns the one already made for the same key. A new def takes the record's position moved by the group matrix, its scale and a matrix of translate, rotate (the record's quaternion) and scale, multiplied by the group matrix. The def's directional light is the record's colour raised to a floor of 0x70 and its ambient the colour lowered to a cap of 0x60 (0x6a77e0). It then makes the def's model and registers the def in the pending list.

The derivation is in the doc.

Callers 1

Callees 13

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