s_doodadDefDrawList
global · terrain
- Address
0xc7cae4· 12 bytes, up to0xc7caef- Type
uint32_t[3]- Meaning
- Holds the doodad def draw list: the link offset, the tail and the head
- Confidence
- verified, proof one
- Finding
- terrain/scene#doodad-def-cull
Finding: Doodad def cull in terrain: scene
0x683700 culls a band's doodad defs and 0x6838f0 those of a group. A def not seen this frame
(its +0x164 differs from the frame counter) gets the stamp and +0x94 of 1. A def with neither a
model nor a transform callback (+0x88, +0x174) is skipped. The others get the depth stored
and the same two tests; a def that passes clears bit 0 of +0x94, moves to the doodad def draw
list 0xc7cae8 and increments the visible counter 0xc7b600. A def that fails with a model is
set animated when its +0x90 bit 9 is set or its centre is within squared distance 10.0
(0x81017c) of the camera.
The derivation is in the doc.