SetCharacterHairColor
function · charactermodel · orchestration
- Address
0x4783f0· 205 bytes, up to0x4784bc- Signature
void __thiscall (void *this, int32_t colour, bool detail)- Meaning
- Sets a character component's hair colour index
- Confidence
- verified, proof one
- Finding
- charactermodel/customization#hair
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 3
- CycleCreateCustomization glue
- RandomizeCreateCustomizations glue
- SetCharacterHairStyle charactermodel
Callees 3
- HasCustomizationRow charactermodel
- BindHairTexture charactermodel
- MakeSectionCell charactermodel
Calls and jumps by a bare address, from tables/calls.tsv.