Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case ITEM_WEAPON:
- {
- #ifdef COSTUME_WEAPON
- if (0 != m_pOwner->GetWear(WEAR_COSTUME_WEAPON))
- break;
- #endif
- if (bAdd)
- {
- if (m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON)
- m_pOwner->SetPart(PART_WEAPON, GetVnum());
- }
- else
- {
- if (m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON)
- m_pOwner->SetPart(PART_WEAPON, m_pOwner->GetOriginalPart(PART_WEAPON));
- }
- }
- break;
Advertisement
Add Comment
Please, Sign In to add comment