//===========================================================================
//
// Baron of Hell
//
//===========================================================================
ACTOR BaronOfHell2 Replaces BaronOfHell //3003
{
	Game Doom
	SpawnID 3
	Health 1000
	Radius 24
	Height 64
	Mass 1000
	Speed 8
	PainChance 50
	Monster
	+FLOORCLIP
	+BOSSDEATH
	BloodColor "7D 9D 59"
	SeeSound "baron/sight"
	PainSound "baron/pain"
	DeathSound "baron/death"
	ActiveSound "baron/active"
	Obituary "$OB_BARON"
	DropItem "DeadClip7Inv", 148
	HitObituary "$OB_BARONHIT"
	States
	{
	Spawn:
		BOSS AB 10 A_Look 
		Loop
	See:
		BOSS AABBCCDD 3 A_Chase
		Loop
	Melee:
	Missile:
		BOSS EF 8 A_FaceTarget
		BOSS G 8 A_CustomMissile("LOSBaronBall",45,0,0)//A_BruisAttack
		Goto See
	Pain:
		BOSS H  2
		BOSS H  2 A_Pain
		Goto See
	Pain.FLASHBANGFREEZE:
TNT1 A 0 A_ChangeFlag("NOPAIN", true)
		BOSS H 5   
		BOSS H 175 A_Pain
TNT1 A 0 A_ChangeFlag("NOPAIN", false)
		Goto See

	Death:
//TNT1 A 0 A_GiveToTarget("MoneySystem", 1000)
		BOSS I  8
		BOSS J  8 A_Scream
		BOSS K  8
		BOSS L  8 A_NoBlocking
		BOSS MN 8
		BOSS O -1 A_BossDeath   
		Stop





	Raise:
		BOSS O 8
		BOSS NMLKJI  8
		Goto See
	}
}

//===========================================================================
//
// Hell Knight
//
//===========================================================================
ACTOR HellKnight2 : BaronOfHell replaces Hellknight //69
{
	Game Doom
	SpawnID 113
	Health 500
	-BOSSDEATH
	BloodColor "7D 9D 59"
	SeeSound "knight/sight"
	ActiveSound "knight/active"
	PainSound "knight/pain"
	DeathSound "knight/death"
	HitObituary "$OB_KNIGHTHIT"
	Obituary "$OB_KNIGHT"
		DropItem "DropSpawner5", 128
			DropItem "DeadClip5Inv"


	States
	{
	Spawn:
		BOS2 AB 10 A_Look 
		Loop
	See:
		BOS2 AABBCCDD 3 A_Chase
		Loop
	Melee:
	Missile:
		BOS2 EF 8 A_FaceTarget
		BOS2 G 8 A_CustomMissile("LOSBaronBall",45,0,0)//A_BruisAttack
		Goto See
	Pain:
		BOS2 H  2
		BOS2 H  2 A_Pain
		Goto See
	Pain.FLASHBANGFREEZE:
TNT1 A 0 A_ChangeFlag("NOPAIN", true)
		BOS2 H 5   
		BOS2 H 175 A_Pain
TNT1 A 0 A_ChangeFlag("NOPAIN", false)
		Goto See
		
		Death:
//TNT1 A 0 A_GiveToTarget("MoneySystem", 500)
		BOS2 I  8
		BOS2 J  8 A_Scream
		BOS2 K  8
		BOS2 L  8 A_NoBlocking
		BOS2 MN 8
		BOS2 O -1
		Stop



	Raise:
		BOS2 O 8
		BOS2 NMLKJI  8
		Goto See
	}
}


/*
//===========================================================================
//
// Baron slime ball
//
//===========================================================================
ACTOR BaronBall2: BaronBall
{
	Game Doom
	SpawnID 154
	Radius 6
	Height 16
	Speed 15
	FastSpeed 20
	Damage 8
	Projectile 
	+RANDOMIZE
	RenderStyle Add
	Alpha 1
	SeeSound "baron/attack"
	DeathSound "baron/shotx"
	Decal "BaronScorch"
	States
	{
	Spawn:
		BAL7 AB 4 BRIGHT
		Loop
	Death:
		BAL7 CDE 6 BRIGHT
		Stop
	}
}
*/

//Visual FX
ACTOR LOSBaronBall Replaces BaronBall
{
Scale 0.4
Radius 8
Height 16
Speed 20
Damage 8

//+CLIENTSIDEONLY
PROJECTILE 
+RANDOMIZE
RenderStyle Add
Alpha 1
SeeSound "baron/attack"
DeathSound "baron/shotx"
Decal "BaronScorch"

States
 {
 Spawn:
 HKBB ABCD 1 BRIGHT A_CustomMissile("HellKBTrail",random(-4,4),random(-4,4),0,10,0)
 Loop

 Death:
 NULL A 0 A_PlaySound("imp/shotx")
 NULL AAAAAA 0 bright A_CustomMissile("HellKBESPR",random(-4,4),random(-4,4),random(0, 255), 10, random(-15, 60))
 NULL ABC 2 bright
 Stop
 }
}

ACTOR HellKBTrail
{ 
Scale 0.2
RenderStyle Add
Speed 0
SeeSound ""
DeathSound ""

//+CLIENTSIDEONLY
+NOCLIP
+NOGRAVITY

States
 {
 Spawn:
 HKBF A 2 BRIGHT    
 HKBF B 2 BRIGHT A_SpawnItem("HellKBSmoke")
 HKBF C 2 BRIGHT
 Goto Death
	
 Death:
 NULL A 0
 Stop
 }
}

ACTOR HellKBESPR : HellKBTrail
{
Scale 0.4
Speed 3
}

ACTOR HellKBSmoke
{ 
Scale 0.3
Speed 0
RenderStyle Translucent
Alpha 0.3
SeeSound ""
DeathSound ""

//+CLIENTSIDEONLY
+NOCLIP
+NOGRAVITY

States
 {
 Spawn:
 IMPS ABCDEFGHIJKLM 2
 Goto Death
	  
 Death:
 NULL A 0
 Stop
 }
}
