mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
DressPlayerSlot puts one inventory slot of a SetModelByUnit actor back to what its unit wears. An armor slot copies the unit's own character component record for the body slot (the dword array at component+0x4A8 that UnequipCharacterSlot 0x00478960 reads and clears) onto the actor's clone with UnequipCharacterSlot + EquipBodySlotById (0x00478AA0), so a helm or cloak the unit hides stays off: the unit's component has no record there. A hand slot re-reads the unit's held-item lane, display row and enchant glow and hangs only that lane, the other hand untouched. IsSlotAllowed answers with TryOn's arms: the hands on any model, armor slots when the actor has a component or a dressed display and is not shapeshifted. IsSlotVisible gives the same answer; no 1.12 model hides a slot it allows. Outfit's slot map is now public (ComponentSlotOf) and HangWeapons hangs each lane through one HangLane step that DressSlot shares.