Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef ENABLE_WEAPON_COSTUME_SYSTEM
- else if (GetSubType() == COSTUME_WEAPON)
- {
- toSetPart = PART_WEAPON;
- if (false == bAdd)
- {
- const CItem* pWeapon = m_pOwner->GetWear(WEAR_WEAPON);
- #ifdef __CHANGE_LOOK_SYSTEM__
- toSetValue = (NULL != pWeapon) ? pWeapon->GetItemLook() > 0 ? pWeapon->GetItemLook() : pWeapon->GetVnum() : m_pOwner->GetOriginalPart(PART_WEAPON);
- #else
- toSetValue = (NULL != pWeapon) ? pWeapon->GetVnum() : m_pOwner->GetOriginalPart(PART_WEAPON);
- #endif
- }
- }
- #endif
- if (PART_MAX_NUM != toSetPart)
- {
- m_pOwner->SetPart((BYTE)toSetPart, toSetValue);
- m_pOwner->UpdatePacket();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement