void CActorInstance::__ProcessMotionAttackSuccess(DWORD dwMotionKey, CActorInstance & rVictim) { CRaceMotionData * c_pMotionData; if (!m_pkCurRaceData->GetMotionDataPointer(dwMotionKey, &c_pMotionData)) return; const D3DXVECTOR3& c_rv3VictimPos=rVictim.GetPositionVectorRef(); __ProcessDataAttackSuccess(c_pMotionData->GetMotionAttackDataReference(), rVictim, c_rv3VictimPos); }
void CActorInstance::__ProcessMotionEventAttackSuccess(DWORD dwMotionKey, BYTE byEventIndex, CActorInstance & rVictim) { CRaceMotionData * pMotionData; if (!m_pkCurRaceData->GetMotionDataPointer(dwMotionKey, &pMotionData)) return; if (byEventIndex >= pMotionData->GetMotionEventDataCount()) return; const CRaceMotionData::TMotionAttackingEventData * pMotionEventData; if (!pMotionData->GetMotionAttackingEventDataPointer(byEventIndex, &pMotionEventData)) return; const D3DXVECTOR3& c_rv3VictimPos=rVictim.GetPositionVectorRef(); __ProcessDataAttackSuccess(pMotionEventData->AttackData, rVictim, c_rv3VictimPos); }