AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
npc_pos_tyrannus_events::npc_pos_tyrannus_eventsAI Struct Reference
Inheritance diagram for npc_pos_tyrannus_events::npc_pos_tyrannus_eventsAI:
NullCreatureAI CreatureAI UnitAI

Public Member Functions

 npc_pos_tyrannus_eventsAI (Creature *creature)
 
void MovementInform (uint32 type, uint32 id) override
 
void SetData (uint32 type, uint32 id) override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
- Public Member Functions inherited from NullCreatureAI
 NullCreatureAI (Creature *c)
 
void MoveInLineOfSight (Unit *) override
 
void AttackStart (Unit *) override
 
void UpdateAI (uint32) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
void EnterEvadeMode (EvadeReason) override
 
void OnCharmed (bool) override
 Called when unit is charmed. More...
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0s)
 Causes the creature to talk/say the text assigned to their entry in the creature_text database table. More...
 
void Talk (uint8 id, Milliseconds delay)
 
WorldObjectGetSummoner () const
 Returns the summoner creature/object, if the creature is a temporary summon. More...
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At ================================= More...
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
virtual void JustEngagedWith (Unit *)
 Called for reaction when initially engaged. More...
 
virtual void JustDied (Unit *)
 
virtual void KilledUnit (Unit *)
 
virtual void JustSummoned (Creature *)
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureDespawnAll ()
 
virtual void SummonedCreatureEvade (Creature *)
 
virtual void SpellHit (Unit *, SpellInfo const *)
 
virtual void SpellHitTarget (Unit *, SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void MovementInform (uint32, uint32)
 
virtual void PathEndReached (uint32)
 
void OnCharmed (bool apply) override
 Called when unit is charmed. More...
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *)
 
virtual void OwnerAttacked (Unit *)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ================== More...
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields ======================================= More...
 
virtual bool BeforeSpellClick (Unit *)
 
virtual void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
virtual bool CanBeSeen (Player const *)
 
virtual bool CanAlwaysBeDetectable (WorldObject const *)
 
virtual void PetStopAttack ()
 
virtual bool CheckInRoom ()
 
CreatureBoundary const * GetBoundary () const
 
void SetBoundary (CreatureBoundary const *boundary, bool negativeBoundaries=false)
 
bool IsInBoundary (Position const *who=nullptr) const
 
virtual void CalculateThreat (Unit *, float &, SpellInfo const *)
 
virtual bool OnTeleportUnreacheablePlayer (Player *)
 
virtual void OnAuraRemove (AuraApplication *, AuraRemoveMode)
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void AttackStart (Unit *)
 
virtual void UpdateAI (uint32)=0
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void OnCharmed (bool apply)=0
 Called when unit is charmed. More...
 
virtual void DoAction (int32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 Select the best (up to) <num> targets (in <targetType> order) from the threat list that fulfill the following: More...
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
virtual void JustEnteredCombat (Unit *)
 Called when the unit enters combat. More...
 
virtual void JustExitedCombat ()
 Called when the unit leaves combat. More...
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 Called at any Damage to any victim (before damage apply) More...
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage from any attacker (before damage apply) More...
 
virtual void HealReceived (Unit *, uint32 &)
 Called when the creature receives heal. More...
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 Called when the creature power updates. More...
 
virtual void HealDone (Unit *, uint32 &)
 Called when the unit heals. More...
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 Called during damage calculations. More...
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 Called during calculation when receiving periodic healing or damage (DoT or HoT) More...
 
void AttackStartCaster (Unit *victim, float dist)
 
SpellCastResult DoAddAuraToAllHostilePlayers (uint32 spellid)
 
SpellCastResult DoCast (uint32 spellId)
 
SpellCastResult DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastSelf (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastToAllHostilePlayers (uint32 spellid, bool triggered=false)
 To specify the caster as target if the spell is self-cast. More...
 
SpellCastResult DoCastVictim (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastAOE (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastRandomTarget (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false, bool withTank=true)
 Cast the spell on a random unit from the threat list. More...
 
SpellCastResult DoCastMaxThreat (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false)
 Cast spell on the top threat target, which may not be the current victim. More...
 
float DoGetSpellMaxRange (uint32 spellId, bool positive=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spell)
 
void DoSpellAttackToRandomTargetIfReady (uint32 spell, uint32 threatTablePosition=0, float dist=0.f, bool playerOnly=true)
 
virtual void SummonMovementInform (Creature *, uint32, uint32)
 Called when a summon reaches a waypoint or point movement finished. More...
 
virtual void sGossipHello (Player *)
 
virtual void sGossipSelect (Player *, uint32, uint32)
 
virtual void sGossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual void sQuestAccept (Player *, Quest const *)
 
virtual void sQuestSelect (Player *, Quest const *)
 
virtual void sQuestComplete (Player *, Quest const *)
 
virtual void sQuestReward (Player *, Quest const *, uint32)
 
virtual void sOnGameEvent (bool, uint16)
 
virtual std::string GetDebugInfo () const
 

Public Attributes

InstanceScriptpInstance
 
EventMap events
 
uint32 killsLeft
 
ObjectGuid deathbringerGUID [2]
 

Additional Inherited Members

- Public Types inherited from CreatureAI
enum  EvadeReason {
  EVADE_REASON_NO_HOSTILES ,
  EVADE_REASON_BOUNDARY ,
  EVADE_REASON_SEQUENCE_BREAK ,
  EVADE_REASON_NO_PATH ,
  EVADE_REASON_OTHER
}
 
- Static Public Member Functions inherited from NullCreatureAI
static int32 Permissible (Creature const *creature)
 
- Static Public Member Functions inherited from CreatureAI
static bool IsInBounds (CreatureBoundary const &boundary, Position const *who)
 
- Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
bool UpdateVictimWithGaze ()
 
void SetGazeOn (Unit *target)
 
CreatureDoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
virtual void MoveInLineOfSight (Unit *)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
TaskScheduler scheduler
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ npc_pos_tyrannus_eventsAI()

npc_pos_tyrannus_events::npc_pos_tyrannus_eventsAI::npc_pos_tyrannus_eventsAI ( Creature creature)
inline
587 : NullCreatureAI(creature)
588 {
590 killsLeft = 0;
591 }
Definition: PassiveAI.h:53
Creature *const me
Definition: CreatureAI.h:72
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
InstanceScript * pInstance
Definition: pit_of_saron.cpp:593
uint32 killsLeft
Definition: pit_of_saron.cpp:595

References WorldObject::GetInstanceScript(), killsLeft, CreatureAI::me, and pInstance.

Member Function Documentation

◆ MovementInform()

void npc_pos_tyrannus_events::npc_pos_tyrannus_eventsAI::MovementInform ( uint32  type,
uint32  id 
)
inlineoverridevirtual

Reimplemented from CreatureAI.

599 {
600 if (type == POINT_MOTION_TYPE)
601 {
602 switch (id)
603 {
604 case 0:
605 me->setActive(false);
606 break;
607 case 1:
608 events.ScheduleEvent(1, 0ms);
609 break;
610 case 2:
611 events.ScheduleEvent(2, 0ms);
612 break;
613 case 3:
614 events.ScheduleEvent(4, 0ms);
615 break;
616 }
617 }
618 else if (type == EFFECT_MOTION_TYPE && id == 10)
619 events.ScheduleEvent(6, 0ms);
620 }
events
Definition: boss_sartura.cpp:43
@ POINT_MOTION_TYPE
Definition: MotionMaster.h:48
@ EFFECT_MOTION_TYPE
Definition: MotionMaster.h:56
void setActive(bool isActiveObject)
Definition: Object.cpp:1094

References EFFECT_MOTION_TYPE, CreatureAI::me, POINT_MOTION_TYPE, and WorldObject::setActive().

◆ SetData()

void npc_pos_tyrannus_events::npc_pos_tyrannus_eventsAI::SetData ( uint32  type,
uint32  id 
)
inlineoverridevirtual

Reimplemented from UnitAI.

623 {
625 return;
626 if (type == 2)
627 {
628 if (id == 1)
629 if (killsLeft) --killsLeft;
630 return;
631 }
632 if (type != 1)
633 return;
634 switch (id)
635 {
636 case 1:
638 return;
639 if (me->GetExactDist(&PTSTyrannusWaitPos1) > 3.0f)
640 return;
643 killsLeft = 10;
644 events.ScheduleEvent(30, 0ms);
645 events.ScheduleEvent(3, 25s);
646 break;
647 case 2:
649 return;
650 if (killsLeft != 0)
651 return;
655 events.ScheduleEvent(60, 0ms);
656 events.ScheduleEvent(5, 20s);
657 break;
658 break;
659 case 3:
661 return;
662 if (killsLeft != 0)
663 return;
665 if (Creature* c = me->SummonCreature(NPC_TYRANNUS_VOICE, 950.16f, -102.17f, 594.90f - 10.0f, 5.43f, TEMPSUMMON_TIMED_DESPAWN, 1))
666 c->AI()->Talk(SAY_TYRANNUS_TRAP_TUNNEL);
667 break;
668 }
669 }
Talk
Definition: hyjal.cpp:82
const Position PTSTyrannusWaitPos1
Definition: pit_of_saron.h:264
@ SAY_TYRANNUS_AMBUSH_2
Definition: pit_of_saron.h:271
@ SAY_TYRANNUS_TRAP_TUNNEL
Definition: pit_of_saron.h:272
@ SAY_TYRANNUS_AMBUSH_1
Definition: pit_of_saron.h:270
@ NPC_TYRANNUS_VOICE
Definition: pit_of_saron.h:75
@ INSTANCE_PROGRESS_AFTER_WARN_1
Definition: pit_of_saron.h:59
@ INSTANCE_PROGRESS_FINISHED_KRICK_SCENE
Definition: pit_of_saron.h:58
@ INSTANCE_PROGRESS_AFTER_WARN_2
Definition: pit_of_saron.h:60
@ INSTANCE_PROGRESS_AFTER_TUNNEL_WARN
Definition: pit_of_saron.h:61
@ DATA_ICK
Definition: pit_of_saron.h:31
@ DATA_GARFROST
Definition: pit_of_saron.h:30
@ DATA_INSTANCE_PROGRESS
Definition: trial_of_the_champion.h:33
Difficulty
Definition: DBCEnums.h:266
@ DUNGEON_DIFFICULTY_HEROIC
Definition: DBCEnums.h:270
@ DONE
Definition: InstanceScript.h:60
@ TEMPSUMMON_TIMED_DESPAWN
Definition: Object.h:48
Definition: Creature.h:43
Map * GetMap() const
Definition: Object.h:536
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition: Object.cpp:2366
float GetExactDist(float x, float y, float z) const
Definition: Position.h:177
bool IsAlive() const
Definition: Unit.h:1654
uint8 GetSpawnMode() const
Definition: Map.h:418
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:51
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52

References DATA_GARFROST, DATA_ICK, DATA_INSTANCE_PROGRESS, DONE, DUNGEON_DIFFICULTY_HEROIC, ZoneScript::GetData(), Position::GetExactDist(), WorldObject::GetMap(), Map::GetSpawnMode(), INSTANCE_PROGRESS_AFTER_TUNNEL_WARN, INSTANCE_PROGRESS_AFTER_WARN_1, INSTANCE_PROGRESS_AFTER_WARN_2, INSTANCE_PROGRESS_FINISHED_KRICK_SCENE, Unit::IsAlive(), killsLeft, CreatureAI::me, NPC_TYRANNUS_VOICE, pInstance, PTSTyrannusWaitPos1, SAY_TYRANNUS_AMBUSH_1, SAY_TYRANNUS_AMBUSH_2, SAY_TYRANNUS_TRAP_TUNNEL, ZoneScript::SetData(), WorldObject::SummonCreature(), and TEMPSUMMON_TIMED_DESPAWN.

◆ UpdateAI()

void npc_pos_tyrannus_events::npc_pos_tyrannus_eventsAI::UpdateAI ( uint32  )
inlineoverridevirtual

Use to start attacking a target. Called just before JustEngagedWith()

Reimplemented from NullCreatureAI.

672 {
673 events.Update(diff);
674 switch (events.ExecuteEvent())
675 {
676 case 1:
678 break;
679 case 2:
681 me->setActive(false);
682 break;
683 case 3:
685 break;
686 case 4:
688 break;
689 case 5:
690 me->GetMotionMaster()->MoveTakeoff(10, me->GetPositionX() + 2.0f * cos(me->GetOrientation()), me->GetPositionY() + 2.0f * std::sin(me->GetOrientation()), me->GetPositionZ() + 30.0f, 7.0f);
691 break;
692 case 6:
694 break;
695 case 30:
696 {
698 path.push_back(G3D::Vector3(950.61f, 50.91f, 567.85f));
699 path.push_back(G3D::Vector3(946.48f, 73.25f, 565.89f));
700 path.push_back(G3D::Vector3(934.87f, 78.56f, 563.97f));
701 path.push_back(G3D::Vector3(915.10f, 75.31f, 553.81f));
702 if (Creature* c = me->SummonCreature(NPC_YMIRJAR_DEATHBRINGER, 950.61f, 50.91f, 567.85f, 1.82f))
703 {
704 deathbringerGUID[0] = c->GetGUID();
705 c->SetReactState(REACT_PASSIVE);
706 c->SetUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
707 c->SetHomePosition(915.10f, 75.31f, 553.81f, 3.75f);
708 c->SetWalk(false);
709 c->GetMotionMaster()->MoveSplinePath(&path);
710 }
711 if (Creature* c = me->SummonCreature(NPC_YMIRJAR_DEATHBRINGER, 949.05f, 61.18f, 566.60f, 1.73f))
712 {
713 deathbringerGUID[1] = c->GetGUID();
714 c->SetReactState(REACT_PASSIVE);
715 c->SetUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
716 c->SetHomePosition(883.15f, 54.6254f, 528.5f, 3.75f);
717 c->SetWalk(false);
718 path.push_back(G3D::Vector3(883.15f, 54.6254f, 528.5f));
719 c->GetMotionMaster()->MoveSplinePath(&path);
720 }
721 events.ScheduleEvent(31, 500ms);
722 events.ScheduleEvent(32, 500ms);
723 }
724 break;
725 case 31:
727 if (c->GetMotionMaster()->GetCurrentMovementGeneratorType() != ESCORT_MOTION_TYPE)
728 {
729 c->CastSpell(c, 69516, false);
730 events.ScheduleEvent(33, 3s);
731 break;
732 }
733 events.ScheduleEvent(31, 500ms);
734 break;
735 case 32:
737 if (c->GetMotionMaster()->GetCurrentMovementGeneratorType() != ESCORT_MOTION_TYPE)
738 {
739 c->CastSpell(c, 69516, false);
740 events.ScheduleEvent(34, 3s);
741 break;
742 }
743 events.ScheduleEvent(32, 500ms);
744 break;
745 case 33:
746 me->SummonCreature(NPC_YMIRJAR_WRATHBRINGER, 919.733f, 89.0972f, 558.959f, 3.85718f);
747 me->SummonCreature(NPC_YMIRJAR_WRATHBRINGER, 911.936f, 63.3542f, 547.698f, 3.735f);
748 me->SummonCreature(NPC_YMIRJAR_FLAMEBEARER, 909.356f, 83.1684f, 551.717f, 3.57792f);
749 me->SummonCreature(NPC_YMIRJAR_FLAMEBEARER, 920.946f, 69.1667f, 557.594f, 3.1765f);
750 events.ScheduleEvent(35, 3500ms);
751 break;
752 case 34:
753 me->SummonCreature(NPC_YMIRJAR_WRATHBRINGER, 879.464f, 41.1997f, 521.394f, 3.735f);
754 me->SummonCreature(NPC_YMIRJAR_WRATHBRINGER, 885.715f, 65.5156f, 533.631f, 3.85718f);
755 me->SummonCreature(NPC_YMIRJAR_FLAMEBEARER, 876.884f, 61.0139f, 527.715f, 3.57792f);
756 me->SummonCreature(NPC_YMIRJAR_FLAMEBEARER, 889.49f, 45.2865f, 527.233f, 3.97935f);
757 events.ScheduleEvent(36, 3500ms);
758 break;
759 case 35:
761 {
763 c->RemoveUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
764 }
765 break;
766 case 36:
768 {
769 c->SetReactState(REACT_AGGRESSIVE);
770 c->RemoveUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
771 }
772 break;
773 case 60:
774 {
775 Position startPos[6] = { {927.11f, -72.60f, 592.2f, 1.52f}, {922.92f, -72.64f, 592.3f, 1.52f}, {930.46f, -72.57f, 592.1f, 1.52f}, {934.52f, -72.52f, 592.1f, 1.52f}, {934.57f, -77.66f, 592.20f, 1.52f}, {927.15f, -77.07f, 592.20f, 1.52f} };
776 Position endPos = {926.10f, -46.63f, 591.2f, 1.52f};
777 for (uint8 i = 0; i < 6; ++i)
778 if (Creature* s = me->SummonCreature(i < 4 ? NPC_FALLEN_WARRIOR : NPC_WRATHBONE_COLDWRAITH, startPos[i]))
779 {
780 s->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
781 Position finalPos = endPos;
782 s->MovePosition(finalPos, startPos[i].GetExactDist(&startPos[0]), Position::NormalizeOrientation(startPos[i].GetAngle(&startPos[0]) + 1.52f));
783
785 path.push_back(G3D::Vector3(s->GetPositionX(), s->GetPositionY(), s->GetPositionZ()));
786 path.push_back(G3D::Vector3(finalPos.GetPositionX(), finalPos.GetPositionY(), finalPos.GetPositionZ()));
787
788 s->SetHomePosition(finalPos);
789 s->GetMotionMaster()->MoveSplinePath(&path);
790 }
791
793 {
794 Position startPos[6] = { {925.485f, -65.67f, 592.5f, 1.4f}, {921.77f, -65.10f, 592.5f, 1.4f}, {929.19f, -66.24f, 592.5f, 1.4f}, {932.46f, -66.74f, 592.5f, 1.4f}, {924.66f, -71.03f, 592.5f, 1.4f}, {928.81f, -71.66f, 592.5f, 1.4f} };
795 Position middlePos = {928.43f, -29.31f, 589.0f, 1.4f};
796 Position endPos = {937.8f, 21.20f, 574.6f, 1.4f};
797 for (uint8 i = 0; i < 6; ++i)
798 if (Creature* s = me->SummonCreature(i < 4 ? NPC_FALLEN_WARRIOR : NPC_WRATHBONE_COLDWRAITH, startPos[i]))
799 {
800 s->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
801 Position midPos = middlePos;
802 Position finalPos = endPos;
803 s->MovePosition(midPos, startPos[i].GetExactDist(&startPos[0]), Position::NormalizeOrientation(startPos[i].GetAngle(&startPos[0]) + 1.4f));
804 s->MovePosition(finalPos, startPos[i].GetExactDist(&startPos[0]), Position::NormalizeOrientation(startPos[i].GetAngle(&startPos[0]) + 1.4f));
805
807 path.push_back(G3D::Vector3(s->GetPositionX(), s->GetPositionY(), s->GetPositionZ()));
808 path.push_back(G3D::Vector3(midPos.GetPositionX(), midPos.GetPositionY(), midPos.GetPositionZ()));
809 path.push_back(G3D::Vector3(finalPos.GetPositionX(), finalPos.GetPositionY(), finalPos.GetPositionZ()));
810
811 s->SetHomePosition(finalPos);
812 s->GetMotionMaster()->MoveSplinePath(&path);
813 }
814 }
815 }
816 break;
817 }
818 }
std::uint8_t uint8
Definition: Define.h:109
const Position PTSTyrannusWaitPos2
Definition: pit_of_saron.h:265
@ NPC_YMIRJAR_WRATHBRINGER
Definition: pit_of_saron.h:105
@ NPC_YMIRJAR_FLAMEBEARER
Definition: pit_of_saron.h:106
@ NPC_YMIRJAR_DEATHBRINGER
Definition: pit_of_saron.h:104
@ NPC_FALLEN_WARRIOR
Definition: pit_of_saron.h:108
@ NPC_WRATHBONE_COLDWRAITH
Definition: pit_of_saron.h:109
const Position PTSTyrannusWaitPos3
Definition: pit_of_saron.h:266
@ REACT_PASSIVE
Definition: Unit.h:548
@ REACT_AGGRESSIVE
Definition: Unit.h:550
@ MOVEMENTFLAG_WALKING
Definition: UnitDefines.h:352
@ UNIT_FLAG_NON_ATTACKABLE
Definition: UnitDefines.h:230
@ ESCORT_MOTION_TYPE
Definition: MotionMaster.h:57
std::vector< Vector3 > PointsArray
Definition: MoveSplineInitArgs.h:28
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition: Creature.h:94
Definition: Position.h:27
static float NormalizeOrientation(float o)
Definition: Position.h:232
float GetPositionZ() const
Definition: Position.h:118
float GetOrientation() const
Definition: Position.h:119
float GetPositionX() const
Definition: Position.h:116
float GetPositionY() const
Definition: Position.h:117
void SetFacingTo(float ori)
Definition: Unit.cpp:20527
MotionMaster * GetMotionMaster()
Definition: Unit.h:1620
Map * instance
Definition: InstanceScript.h:148
Creature * GetCreature(ObjectGuid const guid)
Definition: Map.cpp:3317
void MovePoint(uint32 id, const Position &pos, bool generatePath=true, bool forceDestination=true)
Definition: MotionMaster.h:213
void MoveTakeoff(uint32 id, Position const &pos, float speed=0.0f, bool skipAnimation=false)
Use to move the unit from the ground to the air. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition: MotionMaster.cpp:523
ObjectGuid deathbringerGUID[2]
Definition: pit_of_saron.cpp:596

References deathbringerGUID, DUNGEON_DIFFICULTY_HEROIC, ESCORT_MOTION_TYPE, Map::GetCreature(), WorldObject::GetMap(), Unit::GetMotionMaster(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Map::GetSpawnMode(), InstanceScript::instance, CreatureAI::me, MOVEMENTFLAG_WALKING, MotionMaster::MovePoint(), MotionMaster::MoveTakeoff(), Position::NormalizeOrientation(), NPC_FALLEN_WARRIOR, NPC_WRATHBONE_COLDWRAITH, NPC_YMIRJAR_DEATHBRINGER, NPC_YMIRJAR_FLAMEBEARER, NPC_YMIRJAR_WRATHBRINGER, pInstance, PTSTyrannusWaitPos1, PTSTyrannusWaitPos2, PTSTyrannusWaitPos3, REACT_AGGRESSIVE, REACT_PASSIVE, WorldObject::setActive(), Unit::SetFacingTo(), Creature::SetReactState(), WorldObject::SummonCreature(), and UNIT_FLAG_NON_ATTACKABLE.

Member Data Documentation

◆ deathbringerGUID

ObjectGuid npc_pos_tyrannus_events::npc_pos_tyrannus_eventsAI::deathbringerGUID[2]

Referenced by UpdateAI().

◆ events

EventMap npc_pos_tyrannus_events::npc_pos_tyrannus_eventsAI::events

◆ killsLeft

uint32 npc_pos_tyrannus_events::npc_pos_tyrannus_eventsAI::killsLeft

◆ pInstance

InstanceScript* npc_pos_tyrannus_events::npc_pos_tyrannus_eventsAI::pInstance