benilla-re systems structs docs

CharSelectLightCallback

function · glue · orchestration

Address
0x472150 · 362 bytes, up to 0x4722b9
Signature
void __fastcall (void *model, void *lighting, void *arg)
Meaning
Adds one directional light from LightParams row 3 to a model's lighting when the selected record is a ghost
Confidence
verified, proof one
Finding
glue/selectghost#ghost-sun-colour

Finding: Ghost sun colour in glue: the select ghost look

The ghost light callback reads LightParams.dbc row id 3, fixed in the code, and takes LightIntBand ids 18·3 − 17 + k at time key 0: id 37 for the diffuse colour (CGLight+0x3c) and id 38 for the ambient (+0x30). Both shipped rows have one key, so the colour never changes: diffuse (94, 153, 198), ambient (26, 56, 85), specular 0. Row 3 is the Light.dbc death slot: column 11 holds it in 59 of 374 rows, and the world's ghost arm selects that column with mov ecx,4.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 12

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