ApplyHelmetModel
function · charactermodel · primitive
- Address
0x4799a0· 409 bytes, up to0x479b38- Signature
void __thiscall (void *this)- Meaning
- Attaches the worn helm model and replaces the geoset bases its race-masked hide row names
- Confidence
- verified, proof one
- Finding
- charactermodel/geosets#helm-mask
- Test
charactermodel::cm_fanout_h_helmet_geoset_flags,charactermodel::cm_fanout_h_helmet_head_gate
Finding: Helm mask in charactermodel: geosets
0x4799a0 applies the head item. It does nothing when the head record is null, its first model name is empty, the race is out of range or the race record is null. Otherwise it loads the helm model and attaches it at attachment 11, and looks up the HelmetGeosetVisData row of the
record's sex (+0x30 male, +0x34 female). For each of five fields of that row (+4 to +0x14), a bit set for the component's race replaces one geoset base with its group default: hair 1, facial hair 0x65, 0xc9, 0x12d and the ears 0x2bd. The next geoset pass then shows those defaults.
The derivation is in the doc.
Callers 1
- EquipBodySlot charactermodel
Callees 3
- AttachItemModelFile charactermodel
- SStrPrintf storm
- strrchr crt
Calls and jumps by a bare address, from tables/calls.tsv.