benilla-re systems structs docs

EquipBodySlot

function · charactermodel · orchestration

Address
0x478ad0 · 256 bytes, up to 0x478bcf
Signature
void __thiscall (void *this, uint32_t bodySlot, void *record)
Meaning
Stores a display record on a body slot and runs its helm, shoulder, cloak, quiver or layer choosers
Confidence
verified, proof one
Finding
charactermodel/equipment#entry-points
Test
charactermodel::cm_fanout_g_equip_item_slot_index, charactermodel::cm_fanout_g_equip_validity_index

Finding: Entry points in charactermodel: equipment

Four callers set or clear a slot. 0x479010(inventory type, display id) clears the type's slot, then, for a positive id, sets it: an armor, cloak or tabard type goes to 0x478aa0, a weapon type to a held-item loader. 0x478cb0(equipment slot, id) and 0x478bd0(equipment slot) set and clear by equipment slot; weapons, rings, trinkets and the neck have no body slot there. 0x478aa0(body slot, id) looks up the display record and calls 0x478ad0(body slot, record), which stores it, marks +0x0a and fills the cells. 0x478960(body slot) clears.

equipment slotbody slot
0 head0
2 shoulders1
3 shirt2
4 chest3
5 waist4
6 legs5
7 feet6
8 wrists7
9 hands8
18 tabard9
14 back10
quiver (record only)11

The derivation is in the doc.

Callers 1

Callees 5

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