mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
SetSheathedCategory(slot, category) picks where a sheathed hand item hangs: Default (its own place), Back, Side, or Hide. It also adds Enum.TransmogOutfitSlotOptionSheatheCategory. 1.12.1 finds the sheath attachment from the item's ItemStats sheath type through GetSheathAttachment (0x0047A070): 1 is the back pair (26/27), 2 is a large weapon on the back (30/31), 3 is the hip (32/33), 4 is the shield (28), and 0 has no sheath point. AttachItemModel (0x0047A0C0) and DetachHeldItemSlot (0x0047A310) both use the type they are given. So a category comes down to a different type for the lane: Back turns 3 into 1, Side turns 1 or 2 into 3, and Hide gives 0. Shields and held off-hand items keep their own type. The lane holds the type it hangs with, so every engine detach (Undress, UndressSlot, a TryOn that replaces the hand) removes the model from the place it hangs at. The actor keeps each lane's own type and category, and re-hangs a lane after each write (SetModelByUnit, TryOn, DressPlayerSlot). UseUnitSheatheCategory(true) uses every item's own type, because 1.12.1 units have no category.