Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. #ifdef ENABLE_WEAPON_COSTUME_SYSTEM
  2.                 else if (GetSubType() == COSTUME_WEAPON)
  3.                 {
  4.                     toSetPart = PART_WEAPON;
  5.                     if (false == bAdd)
  6.                     {
  7.                         const CItem* pWeapon = m_pOwner->GetWear(WEAR_WEAPON);
  8. #ifdef __CHANGE_LOOK_SYSTEM__
  9.                         toSetValue = (NULL != pWeapon) ? pWeapon->GetItemLook() > 0 ? pWeapon->GetItemLook() : pWeapon->GetVnum() : m_pOwner->GetOriginalPart(PART_WEAPON);
  10. #else
  11.                         toSetValue = (NULL != pWeapon) ? pWeapon->GetVnum() : m_pOwner->GetOriginalPart(PART_WEAPON);
  12. #endif
  13.                     }
  14.                 }
  15. #endif
  16.  
  17.                 if (PART_MAX_NUM != toSetPart)
  18.                 {
  19.                     m_pOwner->SetPart((BYTE)toSetPart, toSetValue);
  20.                     m_pOwner->UpdatePacket();
  21.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement