//===========================================================================
//
// Pain Elemental
//
//===========================================================================
ACTOR PainElemental2 replaces PainElemental //71
{
	Game Doom
	SpawnID 115
	Health 400
	Radius 31
	Height 56
	Mass 400
	Speed 8
	PainChance 128
	Monster
	+FLOAT 
	+NOGRAVITY
	SeeSound "pain/sight"
	PainSound "pain/pain"
	DeathSound "pain/death"
	ActiveSound "pain/active"
	States
	{
	Spawn:
		PAIN A 10 A_Look
		Loop
	See:
		PAIN AABBCC 3 A_Chase
		Loop
	Missile:
		PAIN D 5 A_FaceTarget
		PAIN E 5 A_FaceTarget
		PAIN F 4 BRIGHT A_FaceTarget
		PAIN F 1 BRIGHT A_PainAttack
		Goto See
	Pain:
		PAIN G 6
		PAIN G 6 A_Pain
		Goto See

	Pain.FLASHBANGFREEZE:
TNT1 A 0 A_ChangeFlag("NOPAIN", true)
		PAIN G 6
		PAIN G 175 A_Pain
TNT1 A 0 A_ChangeFlag("NOPAIN", false)
		Goto See

	Death:
//TNT1 A 0 A_GiveToTarget("MoneySystem", 400)
		PAIN H 8 BRIGHT
		PAIN I 8 BRIGHT A_Scream
		PAIN JK 8 BRIGHT
		PAIN L 8 BRIGHT A_PainDie
		PAIN M 8 BRIGHT
		Stop




	Raise:
		PAIN MLKJIH 8
		Goto See
	}
}
