benilla-re systems structs docs

CreateGroupLights

function · terrain · host

Address
0x695c00 · 660 bytes, up to 0x695e93
Signature
void __fastcall (void *def, void *group, uint32_t arg3, uint32_t arg4)
Meaning
Makes the map lights of a group's type 0 light entries and links them to the group
Confidence
inferred
Finding
terrain/doodads#group-lights
Test
terrain::detail_slope_recip_difftest, terrain::detail_color_scale_g1_difftest, terrain::detail_color_scale_g2_difftest

Finding: Group lights in terrain: doodad defs

0x695c00 makes the point lights of a map object group. For each light index it takes only type 0 entries not yet made and builds a map light at the entry's position moved by the object's matrix, with start and end from the entry (the end raised by 0.1 when the two differ by under 0.001), the falloff 1 / (end − start) and the colours times the entry's intensity, and links it to the group. It then sets bit 4 of the group's flags.

The derivation is in the doc.

Callers 1

Callees 8

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