|
Patch-Submissions Patch Submissions |
|
Опции темы | Поиск в этой теме | Опции просмотра |
20.10.2012, 01:26 | #1 |
Новичок
Регистрация: 30.05.2010
Сообщений: 23
Сказал(а) спасибо: 2
Поблагодарили 0 раз(а) в 0 сообщениях
|
Sentry totem minimap ping at attack
Credits Feanordev
Код:
diff --git "a/C:\\Users\\Axxl\\AppData\\Local\\Temp\\Tot37F1.tmp\\TotemAI-91c2376-left.cpp" "b/E:\\Wow Git Sources\\Wotlk\\cmangos\\src\\game\\TotemAI.cpp" index 32006d1..ef18907 100644 --- "a/C:\\Users\\Axxl\\AppData\\Local\\Temp\\Tot37F1.tmp\\TotemAI-91c2376-left.cpp" +++ "b/E:\\Wow Git Sources\\Wotlk\\cmangos\\src\\game\\TotemAI.cpp" @@ -107,6 +107,15 @@ TotemAI::IsVisible(Unit*) const void TotemAI::AttackStart(Unit*) { + // Sentry totem sends ping on attack + if (m_creature->GetEntry() == SENTRY_TOTEM_ENTRY && m_creature->GetOwner() && m_creature->GetOwner()->GetTypeId() == TYPEID_PLAYER) + { + WorldPacket data(MSG_MINIMAP_PING, (8+4+4)); + data << m_creature->GetObjectGuid(); + data << m_creature->GetPositionX(); + data << m_creature->GetPositionY(); + ((Player*)m_creature->GetOwner())->GetSession()->SendPacket(&data); + } } Totem& TotemAI::getTotem() Код:
diff --git "a/C:\\Users\\Axxl\\AppData\\Local\\Temp\\Tot9F7A.tmp\\TotemAI-91c2376-left.h" "b/E:\\Wow Git Sources\\Wotlk\\cmangos\\src\\game\\TotemAI.h" index fe51156..3b29272 100644 --- "a/C:\\Users\\Axxl\\AppData\\Local\\Temp\\Tot9F7A.tmp\\TotemAI-91c2376-left.h" +++ "b/E:\\Wow Git Sources\\Wotlk\\cmangos\\src\\game\\TotemAI.h" @@ -26,6 +26,8 @@ class Creature; class Totem; +#define SENTRY_TOTEM_ENTRY 3968 + class MANGOS_DLL_DECL TotemAI : public CreatureAI { public: |
|
|
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
[Zone] is under attack? | jesst3r | Новичкам | 5 | 10.01.2012 07:34 |
[11758] better check for totem immunity for channeled spells | newsbot | CMaNGOS Commits | 0 | 28.07.2011 12:20 |
[10663] Fix totem animation at normal unsummon. | newsbot | CMaNGOS Commits | 0 | 01.11.2010 01:51 |
[10647] Show die animation at totem destroy. | newsbot | CMaNGOS Commits | 0 | 26.10.2010 16:00 |
[10637] Better totem summon cases selection. | newsbot | CMaNGOS Commits | 0 | 22.10.2010 10:50 |