ACTOR StygianWrath : Hellfos 
{ 
	Speed 14
	health 1000
	Gibhealth -100	
	Obituary "The fury of a Stygian Wrath scorched %o "
	HitObituary "%o fell before the wrath of a Stygian Wrath" 
	dropitem "lilchest" 100
	translation "85:103=160:167", "80:84=4:4", "104:111=37:44", "3:3=37:37", "5:8=45:47", "176:191=192:204", "168:175=4:4"
	states
	{
	Melee:
		DKNT E 6 A_FaceTarget
		DKNT F 1 A_PlaySound ("hellfos/melee",CHAN_BODY)
		DKNT F 4 A_FaceTarget
		DKNT G 7 A_CustomComboAttack("ShortSwordBeam", 40,6 * random(1, 4),"mace/hit")
		Goto See
	Missile:
		TNT1 A 0
		TNT1 A 0 A_JumpIfCloser (600, "midrangechoices")
	swordbeam:    
		DKNT E 10 Bright A_FaceTarget
		DKNT F 6 Bright A_PlaySound ("monster/kntswg",CHAN_BODY)
		DKNT G 0 Bright A_CustomMissile ("HellfosBeam",32,0,-4,0)
		DKNT G 0 Bright A_CustomMissile ("HellfosBeam",32,0,0,0)
		DKNT G 5 Bright A_CustomMissile ("HellfosBeam",32,0,4,0)
		TNT1 A 0 A_Jump (80, "Secondwave")
		Goto See
	Secondwave:
		DKNT E 14 Bright A_FaceTarget
		TNT1 A 0 A_PlaySound ("hellfos/melee",CHAN_BODY)
		DKNT F 8 Bright A_PlaySound ("monster/kntswg",CHAN_BODY)
		DKNT G 0 Bright A_CustomMissile ("HellfosBeam",32,0,-6,0)
		DKNT G 0 Bright A_CustomMissile ("HellfosBeam",32,0,-2,0)
		DKNT G 0 Bright A_CustomMissile ("HellfosBeam",32,0,0,0)
		DKNT G 0 Bright A_CustomMissile ("HellfosBeam",32,0,2,0)
		DKNT G 7 Bright A_CustomMissile ("HellfosBeam",32,0,6,0)
		Goto See	
	midrangechoices:
		TNT1 A 0
		DKNT A 1 A_Jump(60,"rapidshot")
		goto swordbeam
	rapidshot:
		DKNT T 10 Bright A_FaceTarget      
		DKNT U 3 Bright A_CustomMissile ("StygianKnife",44,0,random(-4,11),2,random(-2,4))
		TNT1 AAAAA 0 A_CustomMissile ("StygianKnife",44,0,random(-4,11),2,random(-2,4))
		DKNT T 4 Bright A_FaceTarget      
		DKNT U 4 Bright A_CustomMissile ("StygianKnife",44,0,random(-4,11),2,random(-2,4))
		TNT1 AAAAA 0 A_CustomMissile ("StygianKnife",44,0,random(-4,11),2,random(-2,4))
		DKNT T 4 Bright A_FaceTarget      
		DKNT U 4 Bright A_CustomMissile ("StygianKnife",44,0,random(-4,11),2,random(-2,4))
		TNT1 AAAAA 0 A_CustomMissile ("StygianKnife",44,0,random(-4,11),2,random(-2,4))
		goto see
	Evasion:	
		TNT1 A 0 A_TakeInventory ("rage", 99)
		TNT1 A 0 A_Jump (80, "Jumpright")
		TNT1 A 0 A_Jump (120, "Jumpback")
		TNT1 A 0 ThrustThingZ(0,10,0,1)
		TNT1 A 0 ThrustThing(angle*256/360+192, 10, 0, 0)
		DKNT U 5
		goto see
	Jumpattack:
		DKNT E 8 A_FaceTarget
		TNT1 A 0 ThrustThingZ(0,10,0,1)
		TNT1 A 0 ThrustThing(angle*256/360, 10, 0, 0)
		DKNT F 1 A_PlaySound ("hellfos/melee")
		DKNT F 4 A_FaceTarget
		DKNT F 1 A_PlaySound ("hellfos/melee")
		DKNT F 4 A_FaceTarget
		DKNT G 4 A_CustomMeleeAttack (15, "mace/hit",0)
		DKNT G 4
		TNT1 A 0 A_Jump (60, "missile")
		goto see
	Jumpback:
		TNT1 A 0 A_TakeInventory ("rage", 99)
		DKNT E 8 A_FaceTarget
		TNT1 A 0 ThrustThingZ(0,10,0,1)
		TNT1 A 0 ThrustThing(angle*256/360+128, 10, 0, 0)
		DKNT F 1 A_PlaySound ("hellfos/melee")
		DKNT F 4 A_FaceTarget
		DKNT G 4 A_CustomComboAttack("ShortSwordBeam", 40,6 * random(1, 4),"mace/hit")
		DKNT G 4
		TNT1 A 0 A_Jump (20, "Jumpattack")
		TNT1 A 0 A_Jump (50, "missile")
		goto see   
	Jumpright:
		TNT1 A 0 A_TakeInventory ("rage", 99)
		DKNT E 8 A_FaceTarget
		TNT1 A 0 ThrustThingZ(0,10,0,1)
		TNT1 A 0 ThrustThing(angle*256/360+64, 10, 0, 0)
		DKNT F 1 A_PlaySound ("hellfos/melee")
		DKNT F 4 A_FaceTarget
		DKNT G 4 A_CustomComboAttack("ShortSwordBeam", 40,6 * random(1, 4),"mace/hit")
		DKNT G 4
		TNT1 A 0 A_Jump (20, "Jumpattack")
		TNT1 A 0 A_Jump (50, "missile")
		goto see

	/*
	Death:
		DKNT I 1 Bright A_Scream
		DKNT I 1 Bright A_NoBlocking
		DKNT I 1 Bright A_FaceTarget
		TNT1 A 0 ThrustThingZ (0,30,0,1)
		TNT1 A 0 ThrustThing(angle*256/360+128, 4, 0, 0)		
		TNT1 A 0 A_SpawnItemEx("HellfosSword", 0, 0, 44, random(-10,10), 0, 10, -90, 128)
		TNT1 A 0 A_SpawnItemEx("HellfosShield", 0, 0, 44, random(-10,10), 0, 10, -90, 128)
		DKNT I 1 Bright 
		DKNT J 4 Bright 
		DKNT K 3 Bright
		DKNT L 2 Bright 
		TNT1 A 0 A_PlaySound ("hellfos/fall",CHAN_BODY)
		DKNT MN 3 Bright 
		DKNT O -1 A_BossDeath
		Stop 
	*/
	
	XDeath:
		TNT1 A 0
		DKNT I 0 Bright A_Scream
		DKNT I 0 Bright A_NoBlocking
		DKNT I 0 Bright A_FaceTarget
		TNT1 A 0 ThrustThingZ (0,30,0,1)
		TNT1 A 0 ThrustThing(angle*256/360+128, 6, 0, 0)		
		TNT1 A 0 A_SpawnItemEx("HellfosSword", 0, 0, 44, random(-10,10), 0, 10, -90, 128)
		TNT1 A 0 A_SpawnItemEx("HellfosShield", 0, 0, 44, random(-10,10), 0, 10, -90, 128)
		TNT1 A 0 A_PlaySound ("skeleton/gib",0,1,0,0.6)
		TNT1 AAAAAA 0 A_SpawnItemEx("RevBoneGib",0,0,0,random(-10,10),random(-10,10),random(11,15))
		TNT1 AAAAAA 0 A_SpawnItemEx("RevBoneGib",0,0,0,random(-14,18),random(-15,19),random(11,15))
		TNT1 AAAAAA 0 A_SpawnItemEx("RevBoneGib",0,0,0,random(-8,15),random(-20,13),random(11,15))
		DKNT J 2 Bright 
		DKNT K 1 Bright
		DKNT L 2 Bright 
		TNT1 A 0 A_PlaySound ("hellfos/fall",CHAN_BODY)
		DKNT MN 3 Bright 
		DKNT O 1 A_BossDeath
		TNT1 A 0 A_Jump (20,"GibbedDarkPortal")
		DKNT O -1 
		Stop 
	GibbedDarkPortal:
		TNT1 A 0
		DKNT O random(50,180) 
		TNT1 A 0 A_PlaySound ("Darkportal/form",0)
		DKNT O 3 Thing_SetTranslation(0, 4242)
		HWRP ABCD 1
		TNT1 A 1 A_SpawnItemEx ("StrongPortal")
		stop	

	Raise:
		DKNT ONMLKJI 4 Bright
		SWSW A 10
		TNT1 A 0 A_PlaySound ("Stygian/pant",0,1,0,0.9)
		SWSW A 8
		SWSW B 6
		SWSW C 10
		SWSW B 6
		SWSW A 8
		SWSW A 10
		TNT1 A 0 A_PlaySound ("Stygian/pant",0,1,0,0.9)
		SWSW A 8
		SWSW B 6
		SWSW C 10
		SWSW B 6
		SWSW A 8
		SWSW A 10
		TNT1 A 0 A_PlaySound ("Stygian/pant",0,1,0,0.9)
		SWSW A 6
		SWSW B 8
		SWSW C 9
		SWSW B 12
		TNT1 A 0 A_PlaySound ("Stygian/roar",0,1,0,0.6)
		SWSW B 4	
		SWSW ADE 3
		TNT1 A 0 Radius_Quake (2,15,0,32,0)
		SWSW FGFGFGFGFGFGFGFGFGFGFGFGFGFGFGFGFG 1
		SWSW E 8
		TNT1 A 0 A_PlaySound ("Stygian/scream",0,1,0,0.7)	
		DKNT E 6 Bright A_FaceTarget
		TNT1 A 0 A_PlaySound ("doomslayer/wrathnormal",0,1,0,0.6)
		TNT1 AAAAAAAAAA 0 A_SpawnItemEx ("WrathEruption", frandom(-20,20),frandom(-28,28),frandom(4,24), 0,0,0, 0, SXF_NOCHECKPOSITION)
		TNT1 AAAAAAAAAA 0 A_SpawnItemEx ("WrathEruption", frandom(-20,20),frandom(-28,28),frandom(12,32), 0,0,0, 0, SXF_NOCHECKPOSITION)
		TNT1 AAAAAAAAAA 0 A_SpawnItemEx ("WrathEruption", frandom(-20,20),frandom(-28,28),frandom(34,60), 0,0,0, 0, SXF_NOCHECKPOSITION)

		TNT1 A 0 Radius_Quake (3,12,0,32,0)
		TNT1 AAAAAAA 0 Bright A_SpawnItemEx("LavaLazerTrail",frandom(-21,21),frandom(-21,21),frandom(10,31),frandom(-20,20),frandom(-12,16),frandom(2,3))
		TNT1 AAAAAAAAAA 0 Bright A_SpawnItemEx("LavaLazerEmber2",frandom(-16,16),frandom(-16,16),frandom(16,26),frandom(-12,12),frandom(-17,16),frandom(3,5))
		TNT1 AAAAAAAA 0 Bright A_SpawnItemEx("LavaLazerSmoke2",frandom(-4,4),frandom(-4,4),frandom(4,8),frandom(-14,16),frandom(-15,16),frandom(2,5))
		TNT1 AAAAAAA 0 Bright A_SpawnItemEx("LavaLazerSmoke",frandom(-4,4),frandom(-4,4),frandom(4,8),frandom(-14,16),frandom(-15,16),frandom(2,6))

		
		DKNT F 4 Bright A_PlaySound ("monster/kntswg",CHAN_BODY)
		DKNT G 2 Bright
		TNT1 A 0 A_SpawnItemEx ("RevivedWrath",0,0,2,0,0,0,0,SXF_NOCHECKPOSITION)
		TNT1 A 1
		stop

	}
}



actor StygianKnife : quickdagger
{
	+notimefreeze
	+bloodsplatter
	+forcexybillboard
	+THRUSPECIES
	Radius 11
	Height 8
	species "enemyshot"
	projectile
	gravity 0.2
	damage (3)
	scale 0.5
	speed 20
	seesound "cannon/turretattack"
	damagetype thrownthiefknife
	translation "80:111=193:201", "160:167=192:199", "48:79=196:202", "208:223=192:198", "224:231=192:199", "128:159=193:201", "1:11=196:203", "232:239=200:204"
}
	
ACTOR RevivedWrath : Hellfos 
{ 
	Speed 17
	health 500
    bloodtype bonespray
	+DONTCORPSE
	PainChance 50 
	painchance "grappler", 256
	Obituary "Not even death could stop a Stygian Wrath from smiting %o "
	HitObituary "The infernal rage of a Stygian Wrath cleaved %o" 
	dropitem "lilchest" 100
	translation "96:111=173:191", "3:3=186:186", "160:167=80:111", "248:249=80:85", "229:231=80:90", "48:79=80:111", "144:145=80:84", "146:150=88:107"

	SeeSound "Stygian/hah" 
	PainSound "skeleton/allpain"
	DeathSound "Stygian/dead" 
	ActiveSound "Stygian/idle" 
	states
	{
	See:
		DKNT AA 2 A_chase
		DKNT BB 2 A_chase
		TNT1 A 0 A_PlaySound ("hellfos/step", 7, 1, 0, 1.5)
		DKNT CC 2 A_Chase
		DKNT DD 2 A_chase
		TNT1 A 0 A_PlaySound ("hellfos/step", 7, 1, 0, 1.5)
		Loop
	Melee:
		DKNT E 6 A_FaceTarget
		DKNT F 1 A_PlaySound ("Stygian/melee",CHAN_BODY,1,0,0.8)
		DKNT F 4 A_FaceTarget
		DKNT G 7 A_CustomComboAttack("ShortSwordBeam", 40,6 * random(1, 4),"mace/hit")
		TNT1 A 0 A_Jump (40, "Jumpattack")
		Goto See
	Missile:
		TNT1 A 0
		TNT1 A 0 A_JumpIfCloser (600, "midrangechoices")
	swordbeam:    
		DKNT E 10 Bright A_FaceTarget
		DKNT F 6 Bright A_PlaySound ("monster/kntswg",CHAN_BODY)
		DKNT G 0 Bright A_CustomMissile ("HellfosBeam",32,0,-4,0)
		DKNT G 0 Bright A_CustomMissile ("HellfosBeam",32,0,0,0)
		DKNT G 5 Bright A_CustomMissile ("HellfosBeam",32,0,4,0)
		TNT1 A 0 A_Jump (220, "Secondwave")
		Goto See
	Secondwave:
		DKNT E 10 Bright A_FaceTarget
		TNT1 A 0 A_PlaySound ("stygian/melee",0)
		DKNT F 5 Bright A_PlaySound ("monster/kntswg",CHAN_BODY)
		DKNT G 0 Bright A_CustomMissile ("HellfosBeam",32,0,-6,0)
		DKNT G 0 Bright A_CustomMissile ("HellfosBeam",32,0,-2,0)
		DKNT G 0 Bright A_CustomMissile ("HellfosBeam",32,0,0,0)
		DKNT G 0 Bright A_CustomMissile ("HellfosBeam",32,0,2,0)
		DKNT G 5 Bright A_CustomMissile ("HellfosBeam",32,0,6,0)
		TNT1 A 0 A_Jump (40, "Secondwave")
		Goto See	
	rapidshot:
		DKNT T 10 Bright A_FaceTarget      
		DKNT U 3 Bright A_CustomMissile ("StygianKnife",44,0,random(-4,11),2,random(-2,4))
		TNT1 AAAAA 0 A_CustomMissile ("StygianKnife",44,0,random(-4,11),2,random(-2,4))
		DKNT T 4 Bright A_FaceTarget      
		DKNT U 4 Bright A_CustomMissile ("StygianKnife",44,0,random(-4,11),2,random(-2,4))
		TNT1 AAAAA 0 A_CustomMissile ("StygianKnife",44,0,random(-4,11),2,random(-2,4))
		DKNT T 4 Bright A_FaceTarget      
		DKNT U 4 Bright A_CustomMissile ("StygianKnife",44,0,random(-4,11),2,random(-2,4))
		TNT1 AAAAA 0 A_CustomMissile ("StygianKnife",44,0,random(-4,11),2,random(-2,4))
		goto see
	midrangechoices:
		TNT1 A 0
		DKNT A 1 A_Jump(70,"rapidshot")
		goto swordbeam
	Pain:
		TNT1 A 0
		TNT1 A 0 a_giveinventory ("rage", 1)
 		TNT1 A 0 A_TakeInventory ("PowerTerrorStatus",999)
		TNT1 A 0 A_TakeInventory ("PowerKickedStatus",999)
		TNT1 A 0 A_Jumpifhealthlower (800,"Lowhealth")
		DKNT H 2 
		TNT1 A 0 A_PlaySound ("Stygian/Pain1",0)
		DKNT H 2 A_Pain
		TNT1 A 0 A_Jumpifinventory ("rage", 2, "Evasion")
		DKNT H 1
		Goto see
	LowHealth:
		TNT1 A 0
		DKNT H 2 
		TNT1 A 0 A_PlaySound ("Stygian/Pain2",0)
		DKNT H 2 A_Pain
		TNT1 A 0 A_Jumpifinventory ("rage", 1, "Evasion")
		DKNT H 1
		Goto see		
	Evasion:	
		TNT1 A 0 A_TakeInventory ("rage", 99)
		TNT1 A 0 A_Jump (80, "Jumpright")
		TNT1 A 0 A_Jump (120, "Jumpback")
		TNT1 A 0 ThrustThingZ(0,20,0,1)
		TNT1 A 0 ThrustThing(angle*256/360+192, 15, 0, 0)
		DKNT U 5
		TNT1 A 0 A_Jump (60, "missile")
		goto see
	Jumpattack:
		DKNT E 8 A_FaceTarget
		TNT1 A 0 ThrustThingZ(0,20,0,1)
		TNT1 A 0 ThrustThing(angle*256/360, 15, 0, 0)
		DKNT F 1 A_PlaySound ("Stygian/melee")
		DKNT F 4 A_FaceTarget
		DKNT F 1 A_PlaySound ("Stygian/melee")
		DKNT F 4 A_FaceTarget
		DKNT G 4 A_CustomMeleeAttack (15, "mace/hit",0)
		DKNT G 4
		TNT1 A 0 A_Jump (60, "missile")
		goto see
	Jumpback:
		TNT1 A 0 A_TakeInventory ("rage", 99)
		DKNT E 8 A_FaceTarget
		TNT1 A 0 ThrustThingZ(0,10,0,1)
		TNT1 A 0 ThrustThing(angle*256/360+128, 10, 0, 0)
		DKNT F 1 A_PlaySound ("Stygian/melee")
		DKNT F 4 A_FaceTarget
		DKNT G 4 A_CustomComboAttack("ShortSwordBeam", 40,6 * random(1, 4),"mace/hit")
		DKNT G 4
		TNT1 A 0 A_Jump (20, "Jumpattack")
		TNT1 A 0 A_Jump (50, "missile")
		goto see   
	Jumpright:
		TNT1 A 0 A_TakeInventory ("rage", 99)
		DKNT E 8 A_FaceTarget
		TNT1 A 0 ThrustThingZ(0,10,0,1)
		TNT1 A 0 ThrustThing(angle*256/360+64, 10, 0, 0)
		DKNT F 1 A_PlaySound ("Stygian/melee")
		DKNT F 4 A_FaceTarget
		DKNT G 4 A_CustomComboAttack("ShortSwordBeam", 40,6 * random(1, 4),"mace/hit")
		DKNT G 4
		TNT1 A 0 A_Jump (20, "Jumpattack")
		TNT1 A 0 A_Jump (50, "missile")
		goto see


	Death:
	Xdeath:
		TNT1 A 0
		DKNT H 1 Bright A_Scream
		DKNT H 1 Bright A_NoBlocking
		DKNT H 50 Bright A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("HellfosSword", 0, 0, 44, random(-3,3), 0, 4, -90, 128)
		TNT1 A 0 A_SpawnItemEx("HellfosShield", 0, 0, 44, random(-3,3), 0, 4, -90, 128)
		DKNT I 7 Bright 
		DKNT J 5 Bright 
		DKNT K 4 Bright
		DKNT L 2 Bright 
		TNT1 A 0 A_PlaySound ("hellfos/fall",CHAN_BODY)
		DKNT MN 3 Bright 
		TNT1 A 0 Radius_Quake (2,10,0,32,0)
		TNT1 A 0 A_PlaySound ("doomslayer/wrathnormal",0,1,0,0.6)
		TNT1 AAAAAAAAAA 0 A_SpawnItemEx ("WrathEruption", frandom(-20,20),frandom(-28,28),frandom(4,24), 0,0,0, 0, SXF_NOCHECKPOSITION)
		TNT1 AAAAAAAAAA 0 A_SpawnItemEx ("WrathEruption", frandom(-20,20),frandom(-28,28),frandom(12,32), 0,0,0, 0, SXF_NOCHECKPOSITION)
		TNT1 A 2 A_BossDeath
		Stop 
	}
}

ACTOR ShortSwordBeam
{
	Radius 4
	Height 12
	Speed 20
	Damage (15)
	RENDERSTYLE ADD
	ALPHA 1.00
	PROJECTILE
	+THRUSPECIES
	species "enemyshot"
	Seesound "monster/dkndrt"
	DeathSound "weapons/firex2"
	States
	{
	Spawn:
		DKAT ABC 2 Bright
		TNT1 A 0 A_ScaleVelocity (0.40)
		TNT1 A 0 A_JumpIf(abs(velx) + abs(vely) + (abs(velz)) <  1, "Cease")
		loop
	xdeath:
		DKAT D 0 Bright A_SetTranslucent (0.85,1)
		DKAT D 3 Bright
		DKAT E 3 Bright
		DKAT FG 3 Bright
		DKAT IJKLM 3 Bright
		stop
	Death:
		DKAT D 0 Bright A_SetTranslucent (0.85,1)
		DKAT D 3 Bright
		DKAT E 3 Bright
		DKAT FG 3 Bright
		DKAT IJKLM 3 Bright
		stop
	Cease:
		TNT1 A 1 a_stop
		stop
	}
}



ACTOR WrathEruption
{
	Radius 4
	Height 4
	Scale 1.75
	+NOCLIP
	+NOGRAVITY
	+CLIENTSIDEONLY
	States
	{
	Spawn:
		TNT1 A 0
		FRFX FGHIJKL 2 Bright
		Stop
	}
}
