benilla-re systems structs docs

SetCharacterFacialHair

function · charactermodel · orchestration

Address
0x478660 · 214 bytes, up to 0x478735
Signature
void __thiscall (void *this, int32_t style, bool detail)
Meaning
Sets a character component's facial hair index
Confidence
verified, proof one
Finding
charactermodel/customization#facial-hair
Test
charactermodel::geoset_base_select

Finding: Facial hair in charactermodel: customization

0x478660(style, detail) takes a facial hair style from 0 to the count of 0x47a4c0 inclusive, stores +0x30, and looks the style up in [0xc0df28] (0x478740: race +0, sex +4, style +8). A row sets the bases +0x148 = +0x18 + 0x64, +0x150 = +0x1c + 0x12c and +0x14c = +0x20 + 0xc8 and marks the geosets dirty. When the row has a nonzero geoset and the section 3 cells for group 9 and 8 are not both set, it binds the hair texture of variation 1 with 0x478220(1). Unless baked and with the detail flag, it makes the section 2 cells (sub 0 for group 9, sub 1 for group 8).

The derivation is in the doc.

Callers 3

Callees 4

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