HasCustomizationRow
function · charactermodel · primitive
- Address
0x477c20· 94 bytes, up to0x477c7d- Signature
bool __thiscall (void *this, int32_t section, int32_t variation, int32_t colour)- Meaning
- Returns whether the grid has a row for the race, sex, section, variation and colour
- Confidence
- verified, proof one
- Finding
- charactermodel/customization#grid-lookup
- Test
charactermodel::charsec_predicate
Finding: Grid lookup in charactermodel: customization
0x477c20(section, variation, colour) is true when 0 ≤ section < 5, 0 ≤ variation < count of the component's entry, the entry's count is nonzero, 0 ≤ colour < colours of the variation's record and that count is nonzero. The entry is the component's race and sex.
The row for a colour is [0xc0df6c][ids[colour]] when the id is within [0xc0df70], else null. Five counts read the grid for a race and sex: 0x47a3e0 hair styles, 0x47a400 hair colours of a style, 0x47a440 skin colours
(the base count of skin variation 0), 0x47a4a0 faces, and 0x47a4c0 facial hair styles from the count table. 0x47a470 returns the colour count of skin variation 0 and nothing calls it.
The derivation is in the doc.
Callers 8
- InitCharacterComponent charactermodel
- ApplyBodySkin charactermodel
- BindHairTexture charactermodel
- MakeSectionCell charactermodel
- SetCharacterHairColor charactermodel
- SetCharacterHairStyle charactermodel
- SetCharacterFace charactermodel
- SetCharacterSkinColor charactermodel
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.