// ------------------------------------------------------------
//   Pain Elemental
// ------------------------------------------------------------

ACTOR AngstElemental : PainElemental replaces PainElemental
{
	obituary "%o braved the elements."
	hitobituary "%o thought it was elementary that certain monsters had no melee attack. %g was wrong."
	damagefactor "SmallArms0", 0.8
	damagefactor "SmallArms1", 0.9
	MeleeDamage 8
	+pushable
	States
	{
	Missile:
		PAIN DE 4 A_FaceTarget
		PAIN F 6 A_FaceTarget
		PAIN C 12 A_PainAttack ("DisappearingFireDancer")
		Goto See
	Melee:
		PAIN DE 4 A_FaceTarget
		PAIN F 6 A_FaceTarget
		PAIN C 12 A_MeleeAttack
		Goto See
	Death:
		TNT1 A 0 A_GivetoTarget("HDKillCount",1)
		TNT1 A 0 ACS_ExecuteAlways(558,0,0,1,30)
		PAIN H 8 bright A_SpawnItemEx ("tempshield", 0,0,0, velx,vely,velz, 0,40)
		PAIN I 8 bright A_Scream
		PAIN JK 8 bright
		TNT1 A 0 A_Explode(60,200)
		PAIN JJJJKKKK 2 bright A_SpawnItemEx ("HDSmoke", random(-4,4), random(-4,4), random(-2,4), 0, 0, 0, random(0,360), 160, 16)
		PAIN L 0 bright A_PainDie
		PAIN LLLLL 2 bright A_SpawnItemEx ("HDSmoke", random(-4,4), random(-4,4), random(-2,4), 0, 0, 0, random(0,360), 160, 32)
		PAIN LLLMMMMMMMM 1 bright A_SpawnItemEx ("HDSmoke", random(-4,4), random(-4,4), random(-2,4), 0, 0, 0, random(0,360), 160, 72)
		TNT1 AAAAA 3 bright A_SpawnItemEx ("HDSmoke", random(-4,4), random(-4,4), random(-2,4), 0, 0, 0, random(0,360), 160, 92)
		TNT1 A -1
		stop
	Raise:
		PAIN MLKJIH 8
		goto See
	}
}