benilla-re systems structs docs

LookupHairGeoset

function · charactermodel · primitive

Address
0x478540 · 103 bytes, up to 0x4785a6
Signature
int32_t __thiscall (void *this)
Meaning
Returns the hair geoset of the race, sex and style, 1 when no row gives a positive one
Confidence
verified, proof one
Finding
charactermodel/customization#hair
Test
charactermodel::geoset_variation_count

Finding: Hair in charactermodel: customization

0x4784c0(style) applies a hair style: it needs 0x477c20(3, style, hairColor), stores +0x34, sets the first geoset base +0x144 to the CharHairGeosets value of 0x478540 (the row of the race, sex and style, minimum 1, 1 when no row), makes the section 3 cells for the style (sub 1 for group 9, sub 2 for group 8) unless baked, applies the hair colour (0x4783f0 with the detail flag clear), and marks +0x08 and +0x0a. 0x4783f0(colour, detail) stores +0x20 after its own gate, binds the hair texture, and remakes the hair and facial hair cells with the new colour. 0x478220(variation) binds the section 3 row's first texture name as replaceable type 6.

The derivation is in the doc.

Callers 2

Callees 0

None by a direct call or jump.

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