Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CInstanceBase::ChangeWeapon(DWORD eWeapon, DWORD eArrow)
- {
- CItemData * pItemData;
- m_awPart[CRaceData::PART_ARROW_TYPE] = eArrow;
- if (eWeapon == m_GraphicThingInstance.GetPartItemID(CRaceData::PART_WEAPON))
- if (CItemManager::Instance().GetItemDataPointer(eWeapon, &pItemData))
- if (!m_kHorse.IsMounting() && pItemData->GetSubType() == CItemData::WEAPON_BOW)
- if (eArrow == CItemData::WEAPON_QUIVER)
- SetMotionMode(CRaceMotionData::MODE_BOW_SPECIAL);
- else
- SetMotionMode(CRaceMotionData::MODE_BOW);
- return;
- if (SetWeapon(eWeapon, eArrow))
- RefreshState(CRaceMotionData::NAME_WAIT, true);
- // #ifdef ENABLE_WEAPON_COSTUME_SYSTEM
- // else if (!m_kHorse.IsMounting() && pItemData->GetType() == CItemData::ITEM_TYPE_COSTUME && pItemData->GetValue(3) == CItemData::WEAPON_BOW)
- // {
- // if (eArrow == CItemData::WEAPON_QUIVER)
- // SetMotionMode(CRaceMotionData::MODE_BOW_SPECIAL);
- // else
- // SetMotionMode(CRaceMotionData::MODE_BOW);
- // }
- // #endif
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement