//------------------------------------------------------------------------------------------------------------------------
//	RaisedCacodemon
//------------------------------------------------------------------------------------------------------------------------
Actor Satanic_RaisedCacodemon
{
	Health 	60
	Radius 	31
	Height 	56
	Mass 	100
	Speed	8
	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
	PainChance 200
	ReactionTime 4
	RenderStyle	Translucent
	Alpha 		0.7
	MONSTER
	+MISSILEMORE
	+NOCLIP
	+FLOORCLIP
	+FLOAT
	+NOGRAVITY
	+FRIENDLY
	+REFLECTIVE
	+DEFLECT
	Obituary	"%o was slain by his minion."
	States
	{
	Spawn:
	See:
		ENCD A 2 A_FastChase
		ENCD A 0 A_SpawnItem("Satanic_RaisedCacodemonGhostA")
		Loop
	Missile:
		ENCD BC 5 A_FaceTarget
		ENCD D 5 A_CustomMissile ("Satanic_RaisedCacodemonProjectile", 0, 0, 0)
		Goto See
	Pain:
		ENCD E 3
		ENCD E 3 A_Pain
		ENCD F 6
		Goto See
	Death:
		ENCD G 3
		ENCD H 3 A_Scream
		ENCD IJ 3
		ENCD K 3 A_NoBlocking
		ENCD L 3 A_SetFloorClip
		Stop
	}
}

Actor Satanic_RaisedCacodemonProjectile
{
	Radius 	6
	Height 	8
	Speed 	16
	Damage 	16
	RenderStyle	Translucent
	Alpha 		0.70
	SeeSound "imp/attack"
	DeathSound "imp/shotx"
	DamageType DrainMana
	PROJECTILE
	+RANDOMIZE
	Decal DoomImpScorch
	States
	{
	Spawn: 
		ENCD A 1 A_SeekerMissile (0,6)
		TRXX A 0 A_SpawnItem("Satanic_RaisedCacodemonGhostA")
		Loop
	Death:
		ENCD A 0
		Stop	
	}
}

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