benilla-re systems structs docs

UnusedGroup9Chooser

function · charactermodel · orchestration

Address
0x4792f0 · 3 bytes, up to 0x4792f2
Signature
void __thiscall (void *this, uint32_t bodySlot, void *record, bool store)
Meaning
Returns at once; the chooser table's slot 9
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.

slotg0g1g2g3g4g5g6g7
2 shirt00-00---
3 chest11-1111-
4 waist-----2--
5 legs-----00-
6 feet------20
7 wrists-2------
8 hands-30-----
9 tabard---44---

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.