//-----------------------------------------------------------------------------------------------------------------------
//	Raised Imp
//	
//	Sprites by Vader 
//-----------------------------------------------------------------------------------------------------------------------
Actor Satanic_RaisedImp
{
	Health 	60
	Radius 	20
	Height 	56
	Mass 	100
	Speed	8
	PainChance 200
	ReactionTime 4
	SeeSound	"imp/sight"
	PainSound	"imp/pain"
	DeathSound	"imp/death"
	ActiveSound "imp/active"
	Painchance GhostFriend,			0
	DamageFactor GhostFriend, 		0
	DamageFactor NoDamage,	 		0
	DamageFactor DrainHealthEver,		0
	DamageFactor DrainHealth,		0
	DamageFactor DrainMana,			0
	DamageFactor Posession, 		0
	RenderStyle	Translucent
	Alpha 		0.7
	MissileType Satanic_RaisedImpProjectile
	MONSTER
	+NOCLIP
	+FLOORCLIP
	+FLOATBOB
	+FRIENDLY
	+MISSILEMORE
	+MISSILEEVENMORE
	Obituary	"%o was slain by his minion."
	States
	{
	Spawn:
	See:
		TRXX AAA 1 A_Chase
		TRXX A 0 A_SpawnItem("Satanic_RaisedImpGhostA")
		TRXX BBB 1 A_Chase
		TRXX B 0 A_SpawnItem("Satanic_RaisedImpGhostB")
		TRXX CCC 1 A_Chase
		TRXX C 0 A_SpawnItem("Satanic_RaisedImpGhostC")
		TRXX DDD 1 A_Chase
		TRXX D 0 A_SpawnItem("Satanic_RaisedImpGhostD")
		Goto See
	Missile:
		TRXX E 30 A_FaceTarget
		TRXX F 5 
		TRXX G 5 Bright A_MissileAttack
		TRXX F 5
		TRXX E 20
		TRXX E 1 A_SpidRefire
		Goto Missile+1      
	Pain:
		TRXX H 4
		TRXX H 4 A_Pain
		Goto See
	Death.DrainHealth:
	Death.DrainMana:
	Burn:
	Death:
		TRXX I 6 A_Scream
		TRXX J 5
		TRXX K 5 
		TRXX L 5 A_Fall
		TRXX MNO 6 
		TRXX P 6
		Stop
	XDeath:
		TRXX W 5
		TRXX X 4 A_XScream
		TRXX Y 4 
		TRXX Z 4 A_Fall
		TRXX ] 4
		TRXX [ 4
		TRXX "\" 4
		Stop		
	}
}

Actor Satanic_RaisedImpProjectile
{
	Radius 	6
	Height 	8
	Speed 	16
	Damage 	8
	RenderStyle	Translucent
	Alpha 		0.70
	SeeSound "imp/attack"
	DeathSound "imp/shotx"
	DamageType DrainMana
	PROJECTILE
	+RANDOMIZE
	+FLOORHUGGER
	Decal DoomImpScorch
	States
	{
	Spawn: 
		TRXX A 1 
		TRXX A 0 A_SpawnItem("Satanic_RaisedImpGhostA")
		TRXX B 1 
		TRXX B 0 A_SpawnItem("Satanic_RaisedImpGhostB")
		TRXX C 1 
		TRXX C 0 A_SpawnItem("Satanic_RaisedImpGhostC")
		TRXX D 1 
		TRXX D 0 A_SpawnItem("Satanic_RaisedImpGhostD")
		Loop
	Death:
		TRXX A 1
		Stop	
	}
}

Actor Satanic_RaisedImpGhostA
{
	Radius	4
	Height	8
	Speed	0
	Damage	0
	Mass	75
	RenderStyle Translucent
	Alpha 0.3
	PROJECTILE
	+NOCLIP
	States
	{
	Spawn:
		TRXX A 10
		Stop
	}
}

Actor Satanic_RaisedImpGhostB : Satanic_RaisedImpGhostA
{
	States
	{
	Spawn:
		TRXX B 10
		Stop
	}
}

Actor Satanic_RaisedImpGhostC : Satanic_RaisedImpGhostA
{
	States
	{
	Spawn:
		TRXX C 10
		Stop
	}
}

Actor Satanic_RaisedImpGhostD : Satanic_RaisedImpGhostA
{
	States
	{
	Spawn:
		TRXX D 10
		Stop
	}
}