|
Патчи Если кто-то хочет выложить не свой готовый патч - не забудьте указать автора и источник.
Если кто-то хочет задать вопрос по патчу - велкам. |
|
Опции темы | Поиск в этой теме | Опции просмотра |
09.05.2012, 12:16 | #1 |
Пользователь
|
[not correct]TARGET_DYNAMIC_OBJECT_
Код:
case TARGET_DYNAMIC_OBJECT_FRONT: case TARGET_DYNAMIC_OBJECT_BEHIND: case TARGET_DYNAMIC_OBJECT_LEFT_SIDE: case TARGET_DYNAMIC_OBJECT_RIGHT_SIDE: { if (!(m_targets.m_targetMask & TARGET_FLAG_DEST_LOCATION)) { // General override, we don't want to use max spell range here. // Note: 0.0 radius is also for index 36. It is possible that 36 must be defined as // "at the base of", in difference to 0 which appear to be "directly in front of". // TODO: some summoned will make caster be half inside summoned object. Need to fix // that in the below code (nearpoint vs closepoint, etc). if (m_spellInfo->EffectRadiusIndex[effIndex] == 0) radius = 0.0f; if (m_spellInfo->Id == 50019) // Hawk Hunting, problematic 50K radius radius = 10.0f; float angle = m_caster->GetOrientation(); switch(targetMode) { case TARGET_DYNAMIC_OBJECT_FRONT: break; case TARGET_DYNAMIC_OBJECT_BEHIND: angle += M_PI_F; break; case TARGET_DYNAMIC_OBJECT_LEFT_SIDE: angle += M_PI_F / 2; break; case TARGET_DYNAMIC_OBJECT_RIGHT_SIDE: angle -= M_PI_F / 2; break; } float x, y; m_caster->GetNearPoint2D(x, y, radius, angle); m_targets.setDestination(x, y, m_caster->GetPositionZ()); } targetUnitMap.push_back(m_caster); break; } don`t working correctly. http://www.wowhead.com/item=34480 item He calls the three object Код:
Effect 0: Id 76 (SPELL_EFFECT_SUMMON_OBJECT_WILD) BasePoints = 1 Targets (47, 0) (TARGET_DYNAMIC_OBJECT_FRONT, TARGET_NONE) EffectMiscValueA = 185899 Effect 1: Id 50 (SPELL_EFFECT_TRANS_DOOR) BasePoints = 1 Targets (47, 0) (TARGET_DYNAMIC_OBJECT_FRONT, TARGET_NONE) EffectMiscValueA = 187267 Radius (Id 16) 1,00 Effect 0: Id 76 (SPELL_EFFECT_SUMMON_OBJECT_WILD) BasePoints = 1 Targets (49, 0) (TARGET_DYNAMIC_OBJECT_LEFT_SIDE, TARGET_NONE) EffectMiscValueA = 187265 Radius (Id 16) 1,00 http://www.youtube.com/watch?v=jkUktXTdVtQ http://www.youtube.com/watch?v=NJWgSfFDaok We have
__________________
Когда-нибудь на оффе поставят Mangos... Последний раз редактировалось partizanes; 09.05.2012 в 12:19. |
|
|
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
[11228] Correct constant in CalculateRewardHonor | newsbot | CMaNGOS Commits | 0 | 06.03.2011 18:40 |
[11076] Override radius for TARGET_DYNAMIC_OBJECT_* (47-50) | newsbot | CMaNGOS Commits | 0 | 28.01.2011 20:10 |
[10856] Correct two whitespace errors | newsbot | CMaNGOS Commits | 0 | 11.12.2010 11:40 |