Advertisement
Guest User

Untitled

a guest
May 5th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. void CInstanceBase::ChangeWeapon(DWORD eWeapon, DWORD eArrow)
  2. {
  3. CItemData * pItemData;
  4. m_awPart[CRaceData::PART_ARROW_TYPE] = eArrow;
  5.  
  6. if (eWeapon == m_GraphicThingInstance.GetPartItemID(CRaceData::PART_WEAPON))
  7. if (CItemManager::Instance().GetItemDataPointer(eWeapon, &pItemData))
  8. if (!m_kHorse.IsMounting() && pItemData->GetSubType() == CItemData::WEAPON_BOW)
  9. if (eArrow == CItemData::WEAPON_QUIVER)
  10. SetMotionMode(CRaceMotionData::MODE_BOW_SPECIAL);
  11. else
  12. SetMotionMode(CRaceMotionData::MODE_BOW);
  13.  
  14. return;
  15.  
  16. if (SetWeapon(eWeapon, eArrow))
  17. RefreshState(CRaceMotionData::NAME_WAIT, true);
  18.  
  19. // #ifdef ENABLE_WEAPON_COSTUME_SYSTEM
  20. // else if (!m_kHorse.IsMounting() && pItemData->GetType() == CItemData::ITEM_TYPE_COSTUME && pItemData->GetValue(3) == CItemData::WEAPON_BOW)
  21. // {
  22. // if (eArrow == CItemData::WEAPON_QUIVER)
  23. // SetMotionMode(CRaceMotionData::MODE_BOW_SPECIAL);
  24. // else
  25. // SetMotionMode(CRaceMotionData::MODE_BOW);
  26. // }
  27. // #endif
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement