REDIVIVUS

Proposals / #1705

Name Mac twin of HandleItemIndirectSwapBodyItem

checked · by rossimo · submitted 2026-11-08

Mac 0x00102582 (default FUN_00102582) is the Mac build of Win 0x004c3070 HandleItemIndirectSwapBodyItem. Both are the item-swap-on-body packet handler: switch on itemDetails.nBodyLoc over the weapon-swap slots 4/5/0xb/0xc mapping to the paired slot (4/0xb -> 5, 5/0xc -> 4, else return), remove the currently equipped item in the paired slot (stats, gfx component, mode flags, and for the local player the cursor state), then reuse or create the incoming item (ITEM_CreateItemFromBodyPacket, dropping the old one when not RELOAD), place it in the body location, update the primary weapon and reload the unit COF, and revalidate the equipped set. Named ITEM_HandleItemIndirectSwapBodyItem: carries the module prefix the checker requires and still ends with the Windows name, per the pairing rule. Its own comment says 'no Windows twin'; the Win function refutes that.

Changes 1, applied together

  1. Rename function mac 0x00102582

    nameFUN_00102582→ITEM_HandleItemIndirectSwapBodyItem