ChooseArmLowerCell
function · charactermodel · primitive
- Address
0x479210· 116 bytes, up to0x479283- Signature
void __thiscall (void *this, uint32_t bodySlot, void *record, bool store)- Meaning
- Sets or clears the lower arm cell, using column 6 for hands and 5 for a chest with a sleeve geoset
- Confidence
- verified, proof one
- Finding
- charactermodel/equipment#layer-choosers
Finding: Layer choosers in charactermodel: equipment
A record carries eight texture names, one per composite group g (+0x38 + 4·g). For body slots 2 to 9, 0x478ad0 calls chooser g as (body slot, record, 1) for every group whose name is not empty and whose cell in the slot table is not -1. A chooser sets the item's cell at
column c of group g's row and ORs 1 << g into +0x10; with the store flag 0 it clears the cell instead. Group 6 also marks +0x0a when it overrides the column. The column is the table value [0x803bf8 + 0x28·slot + 4·g], with the exceptions below.
| slot | g0 | g1 | g2 | g3 | g4 | g5 | g6 | g7 |
|---|---|---|---|---|---|---|---|---|
| 2 shirt | 0 | 0 | - | 0 | 0 | - | - | - |
| 3 chest | 1 | 1 | - | 1 | 1 | 1 | 1 | - |
| 4 waist | - | - | - | - | - | 2 | - | - |
| 5 legs | - | - | - | - | - | 0 | 0 | - |
| 6 feet | - | - | - | - | - | - | 2 | 0 |
| 7 wrists | - | 2 | - | - | - | - | - | - |
| 8 hands | - | 3 | 0 | - | - | - | - | - |
| 9 tabard | - | - | - | 4 | 4 | - | - | - |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 3
- HasGeosetGroup charactermodel
- StoreEquipmentRecord charactermodel
- ClearEquipmentCell charactermodel
Calls and jumps by a bare address, from tables/calls.tsv.