Code
- Hallo Community ich habe in meinem files das Sashsystem von keine ahnung :D
- ich habe ein neues model eingefügt aber bekomme immer das Herrscherband ingame als model und textur angezeigt..
- instansbase.cpp part:
- void CInstanceBase::ChangeAcce(DWORD eAcce)
- {
- if (IsPC() == false)
- return;
- SetAcce(eAcce);
- //RefreshState(CRaceMotionData::NAME_WAIT, true);
- }
- void CInstanceBase::SetAcce(DWORD eAcce)
- {
- if (eAcce != 0)
- eAcce = eAcce + 85000;
- if (!IsPC() || IsPoly())
- return;
- if (__IsShapeAnimalWear())
- return;
- //TraceError("eAcce in SetAcce %d", eAcce);
- m_GraphicThingInstance.SetAcce(eAcce);
- if (!eAcce)
- {
- m_GraphicThingInstance.SetScale(1.0f, 1.0f, 1.0f);
- m_GraphicThingInstance.SetScalePosition(0.0f, 0.0f, 0.0f);
- m_awPart[CRaceData::PART_ACCE] = 0;
- //m_byAcceDrainRate = 0;
- }
- else
- {
- CItemData * pItemData;
- if (CItemManager::Instance().GetItemDataPointer(eAcce, &pItemData))
- {
- DWORD Race = GetRace();
- DWORD Job = RaceToJob(Race);
- DWORD Sex = RaceToSex(Race);
- if (GetInstanceType() == CActorInstance::TYPE_NPC)
- {
- D3DXVECTOR3 scale = pItemData->GetItemScale(Job, Sex);
- scale.x = scale.x * (0.5f + 0.02f*m_dwLevel);
- scale.y = scale.y * (0.5f + 0.02f*m_dwLevel);
- scale.z = scale.z * (0.5f + 0.02f*m_dwLevel);
- D3DXVECTOR3 pos = pItemData->GetItemScalePosition(Job, Sex);
- pos.x = pos.x * (0.5f + 0.02f*m_dwLevel);
- pos.y = pos.y * (0.5f + 0.02f*m_dwLevel);
- pos.z = pos.z * (0.5f + 0.02f*m_dwLevel);
- m_GraphicThingInstance.SetScaleNew(scale);
- m_GraphicThingInstance.SetScalePosition(pos);
- }
- else
- {
- m_GraphicThingInstance.SetScaleNew(pItemData->GetItemScale(Job, Sex));
- m_GraphicThingInstance.SetScalePosition(pItemData->GetItemScalePosition(Job, Sex));
- }
- m_awPart[CRaceData::PART_ACCE] = eAcce;
- }
- }
- //RefreshAcceRefineEffect();
- }
- Vielen dank schonmal.