AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
boss_cthun.cpp File Reference
#include "AreaTriggerScript.h"
#include "CreatureScript.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "SpellScript.h"
#include "SpellScriptLoader.h"
#include "temple_of_ahnqiraj.h"

Go to the source code of this file.

Classes

class  NotInStomachSelector
 
struct  boss_eye_of_cthun
 
struct  boss_cthun
 
struct  npc_eye_tentacle
 
struct  npc_claw_tentacle
 
struct  npc_giant_claw_tentacle
 
struct  npc_giant_eye_tentacle
 
class  spell_cthun_dark_glare
 
class  spell_cthun_digestive_acid
 
class  at_cthun_stomach_exit
 
class  at_cthun_center
 

Enumerations

enum  Spells {
  SPELL_FREEZE_ANIM = 16245 ,
  SPELL_GREEN_BEAM = 26134 ,
  SPELL_DARK_GLARE = 26029 ,
  SPELL_RED_COLORATION = 22518 ,
  SPELL_MIND_FLAY = 26143 ,
  SPELL_GROUND_RUPTURE = 26139 ,
  SPELL_HAMSTRING = 26141 ,
  SPELL_CARAPACE_CTHUN = 26156 ,
  SPELL_TRANSFORM = 26232 ,
  SPELL_PURPLE_COLORATION = 22581 ,
  SPELL_MASSIVE_GROUND_RUPTURE = 26478 ,
  SPELL_THRASH = 3391 ,
  SPELL_MOUTH_TENTACLE = 26332 ,
  SPELL_EXIT_STOMACH_KNOCKBACK = 25383 ,
  SPELL_DIGESTIVE_ACID = 26476 ,
  SPELL_SUBMERGE_VISUAL = 26234 ,
  SPELL_BIRTH = 26262 ,
  SPELL_ROCKY_GROUND_IMPACT = 26271 ,
  SPELL_SPIT_OUT = 25383 ,
  SPELL_EXIT_STOMACH = 26221 ,
  SPELL_RUBBLE_ROCKY = 26271
}
 
enum  Actions {
  ACTION_FLESH_TENTACLE_KILLED = 1 ,
  ACTION_SPAWN_EYE_TENTACLES = 1 ,
  ACTION_START_PHASE_TWO = 1
}
 
enum  TaskGroups { GROUP_BEAM_PHASE = 1 }
 
enum  Phases { PHASE_BODY = 2 }
 
enum  Misc {
  MAX_TENTACLE_GROUPS = 5 ,
  NPC_TRIGGER = 15384 ,
  NPC_EXIT_TRIGGER = 15800
}
 
enum  Yells {
  EMOTE_WEAKENED = 0 ,
  RANDOM_SOUND_WHISPER = 8663
}
 

Functions

void AddSC_boss_cthun ()
 

Variables

const Position StomachPosition = { -8562.0f, 2037.0f, -70.0f, 5.05f }
 
const Position FleshTentaclePos [2]
 
const Position KickPos = { -8545.0f, 1984.0f, -96.0f, 0.0f}
 

Enumeration Type Documentation

◆ Actions

enum Actions
Enumerator
ACTION_FLESH_TENTACLE_KILLED 
ACTION_SPAWN_EYE_TENTACLES 
ACTION_START_PHASE_TWO 
77{
81};
@ ACTION_FLESH_TENTACLE_KILLED
Definition boss_cthun.cpp:78
@ ACTION_START_PHASE_TWO
Definition boss_cthun.cpp:80
@ ACTION_SPAWN_EYE_TENTACLES
Definition boss_cthun.cpp:79

◆ Misc

enum Misc
Enumerator
MAX_TENTACLE_GROUPS 
NPC_TRIGGER 
NPC_EXIT_TRIGGER 
94{
96 NPC_TRIGGER = 15384,
97 NPC_EXIT_TRIGGER = 15800
98};
@ NPC_EXIT_TRIGGER
Definition boss_cthun.cpp:97
@ MAX_TENTACLE_GROUPS
Definition boss_cthun.cpp:95
@ NPC_TRIGGER
Definition boss_cthun.cpp:96

◆ Phases

enum Phases
Enumerator
PHASE_BODY 
89{
90 PHASE_BODY = 2
91};
@ PHASE_BODY
Definition boss_cthun.cpp:90

◆ Spells

enum Spells
Enumerator
SPELL_FREEZE_ANIM 
SPELL_GREEN_BEAM 
SPELL_DARK_GLARE 
SPELL_RED_COLORATION 
SPELL_MIND_FLAY 
SPELL_GROUND_RUPTURE 
SPELL_HAMSTRING 
SPELL_CARAPACE_CTHUN 
SPELL_TRANSFORM 
SPELL_PURPLE_COLORATION 
SPELL_MASSIVE_GROUND_RUPTURE 
SPELL_THRASH 
SPELL_MOUTH_TENTACLE 
SPELL_EXIT_STOMACH_KNOCKBACK 
SPELL_DIGESTIVE_ACID 
SPELL_SUBMERGE_VISUAL 
SPELL_BIRTH 
SPELL_ROCKY_GROUND_IMPACT 
SPELL_SPIT_OUT 
SPELL_EXIT_STOMACH 
SPELL_RUBBLE_ROCKY 
27{
28 // ***** Main Phase 1 ********
29 //Eye Spells
30 SPELL_FREEZE_ANIM = 16245,
31 SPELL_GREEN_BEAM = 26134,
32 SPELL_DARK_GLARE = 26029,
33 SPELL_RED_COLORATION = 22518, //Probably not the right spell but looks similar
34
35 //Eye Tentacles Spells
36 SPELL_MIND_FLAY = 26143,
37
38 //Claw Tentacles Spells
40 SPELL_HAMSTRING = 26141,
41
42 // ***** Main Phase 2 ******
43 //Body spells
44 SPELL_CARAPACE_CTHUN = 26156, // Server-side
45 SPELL_TRANSFORM = 26232,
46 SPELL_PURPLE_COLORATION = 22581, //Probably not the right spell but looks similar
47
48 //Eye Tentacles Spells
49 //SAME AS PHASE1
50
51 //Giant Claw Tentacles
53
54 //Also casts Hamstring
55 SPELL_THRASH = 3391,
56
57 //Giant Eye Tentacles
58 //CHAIN CASTS "SPELL_GREEN_BEAM"
59
60 //Stomach Spells
64
65 // Tentacles
67 SPELL_BIRTH = 26262,
69
70 // Areatriggers
71 SPELL_SPIT_OUT = 25383,
72 SPELL_EXIT_STOMACH = 26221,
73 SPELL_RUBBLE_ROCKY = 26271
74};
@ SPELL_MOUTH_TENTACLE
Definition boss_cthun.cpp:61
@ SPELL_BIRTH
Definition boss_cthun.cpp:67
@ SPELL_HAMSTRING
Definition boss_cthun.cpp:40
@ SPELL_FREEZE_ANIM
Definition boss_cthun.cpp:30
@ SPELL_RED_COLORATION
Definition boss_cthun.cpp:33
@ SPELL_ROCKY_GROUND_IMPACT
Definition boss_cthun.cpp:68
@ SPELL_TRANSFORM
Definition boss_cthun.cpp:45
@ SPELL_EXIT_STOMACH_KNOCKBACK
Definition boss_cthun.cpp:62
@ SPELL_GREEN_BEAM
Definition boss_cthun.cpp:31
@ SPELL_PURPLE_COLORATION
Definition boss_cthun.cpp:46
@ SPELL_DIGESTIVE_ACID
Definition boss_cthun.cpp:63
@ SPELL_CARAPACE_CTHUN
Definition boss_cthun.cpp:44
@ SPELL_MASSIVE_GROUND_RUPTURE
Definition boss_cthun.cpp:52
@ SPELL_THRASH
Definition boss_cthun.cpp:55
@ SPELL_MIND_FLAY
Definition boss_cthun.cpp:36
@ SPELL_SUBMERGE_VISUAL
Definition boss_cthun.cpp:66
@ SPELL_GROUND_RUPTURE
Definition boss_cthun.cpp:39
@ SPELL_SPIT_OUT
Definition boss_cthun.cpp:71
@ SPELL_EXIT_STOMACH
Definition boss_cthun.cpp:72
@ SPELL_DARK_GLARE
Definition boss_cthun.cpp:32
@ SPELL_RUBBLE_ROCKY
Definition boss_cthun.cpp:73

◆ TaskGroups

enum TaskGroups
Enumerator
GROUP_BEAM_PHASE 
84{
86};
@ GROUP_BEAM_PHASE
Definition boss_cthun.cpp:85

◆ Yells

enum Yells
Enumerator
EMOTE_WEAKENED 
RANDOM_SOUND_WHISPER 
101{
102 //Text emote
103 EMOTE_WEAKENED = 0,
104
105 // ****** Out of Combat ******
106 // Random Wispers - No txt only sound
107 // The random sound is chosen by the client.
109};
@ RANDOM_SOUND_WHISPER
Definition boss_cthun.cpp:108
@ EMOTE_WEAKENED
Definition boss_cthun.cpp:103

Function Documentation

◆ AddSC_boss_cthun()

void AddSC_boss_cthun ( )
927{
937 new at_cthun_center();
938}
#define RegisterSpellScript(spell_script)
Definition SpellScriptLoader.h:88
Definition boss_cthun.cpp:911
Definition boss_cthun.cpp:866
Definition boss_cthun.cpp:832
Definition boss_cthun.cpp:848
Definition boss_cthun.cpp:348
Definition boss_cthun.cpp:134
Definition boss_cthun.cpp:581
Definition boss_cthun.cpp:520
Definition boss_cthun.cpp:642
Definition boss_cthun.cpp:776
#define RegisterTempleOfAhnQirajCreatureAI(ai_name)
Definition temple_of_ahnqiraj.h:114

References RegisterSpellScript, and RegisterTempleOfAhnQirajCreatureAI.

Referenced by AddKalimdorScripts().

Variable Documentation

◆ FleshTentaclePos

const Position FleshTentaclePos[2]
Initial value:
=
{
{ -8571.0f, 1990.0f, -98.0f, 1.22f},
{ -8525.0f, 1994.0f, -98.0f, 2.12f},
}
114{
115 { -8571.0f, 1990.0f, -98.0f, 1.22f},
116 { -8525.0f, 1994.0f, -98.0f, 2.12f},
117};

Referenced by boss_cthun::DoAction(), and boss_cthun::SummonedCreatureDies().

◆ KickPos

const Position KickPos = { -8545.0f, 1984.0f, -96.0f, 0.0f}
131{ -8545.0f, 1984.0f, -96.0f, 0.0f};

◆ StomachPosition

const Position StomachPosition = { -8562.0f, 2037.0f, -70.0f, 5.05f }
111{ -8562.0f, 2037.0f, -70.0f, 5.05f };

Referenced by boss_cthun::ScheduleTasks().