//===========================================================================
//
// Imp
//
//===========================================================================
ACTOR DoomImp2_rat //3001
{
	Game Doom
	SpawnID 5
	Health 70
	Radius 20
	Height 56
	Mass 100
	Speed 8
	PainChance 200
	Monster
	+FLOORCLIP
	SeeSound "imp/sight"
	PainSound "imp/pain"
	DeathSound "imp/death"
	ActiveSound "imp/active"
	HitObituary "$OB_IMPHIT"
	Obituary "$OB_IMP"
	DropItem "DropSpawner6_rat", 96
	DropItem "DeadClip6Inv", 148


	States
	{
	Spawn:
		TROO AB 10 A_Look
		Loop
	See:
		TROO AABBCCDD 3 A_Chase
		Loop
	Melee:
	Missile:
		TROO EF 8 A_FaceTarget
		TROO G 6 A_CustomMissile("D3_ImpBall",45,0,0)//A_TroopAttack 
		Goto See
	Pain:
		TROO H 2
		TROO H 2 A_Pain
		Goto See
		
	Pain.FLASHBANGFREEZE:
TNT1 A 0 A_ChangeFlag("NOPAIN", true)
		TROO H 2
		TROO H 175 A_Pain
TNT1 A 0 A_ChangeFlag("NOPAIN", false)
		Goto See

	Death:
//TNT1 A 0 A_GiveToTarget("MoneySystem", 70)
		TROO I 6
		TROO J 6 A_Scream
		TROO K 5
		TROO L 5 A_NoBlocking
		TROO M -1
		Stop





XDeath:
//TNT1 A 0 A_GiveToTarget("MoneySystem", 140)
TROO N 0 A_SpawnItemEx("NashGore_GibPieceGenerator9",0,0,0,0,0,0,0,128)
TROO N 0 A_SpawnItemEx("NashGore_GibPieceGenerator10",0,0,0,0,0,0,0,128)
TROO N 0 A_SpawnItemEx("NashGore_GibPieceGenerator11",0,0,0,0,0,0,0,128)
TROO N 0 A_SpawnItemEx("NashGore_GibPieceGenerator11",0,0,0,0,0,0,0,128)
TROO N 0 A_SpawnItemEx("NashGore_GibGenerator",0,0,0,0,0,0,0,128)
TROO N 5 A_Playsound("Gib/Render")
TROO O 0 A_SpawnItemEx("NashGore_GibGenerator",0,0,0,0,0,0,0,128)
TROO O 5 A_XScream
TROO P 0 A_SpawnItemEx("NashGore_GibGenerator",0,0,0,0,0,0,0,128)
TROO P 5
TROO Q 0 A_SpawnItemEx("NashGore_GibGenerator",0,0,0,0,0,0,0,128)
TROO Q 5 A_NoBlocking
TROO RST 5
TROO U -1
stop
	Raise:
		TROO MLKJI 8
		Goto See
	}
}


