BindHairTexture
function · charactermodel · orchestration
- Address
0x478220· 190 bytes, up to0x4782dd- Signature
void __thiscall (void *this, uint32_t variation)- Meaning
- Loads a hair variation's first texture name and binds it as replaceable type 6
- Confidence
- verified, proof one
- Finding
- charactermodel/customization#hair
- Test
charactermodel::cm_fanout_g_face_texid
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
- SetCharacterHairColor charactermodel
- SetCharacterFacialHair charactermodel
Callees 5
- HandleClose base
- TextureCreate gx
- HasCustomizationRow charactermodel
- CGxTexFlags::CGxTexFlags gx
- CM2Model::SetReplaceableTexture models
Calls and jumps by a bare address, from tables/calls.tsv.