// --------------------------------------------------------------------------
//
// Doom Enemies
//
// --------------------------------------------------------------------------

ACTOR EriZombieman : Zombieman replaces Zombieman
{
	States
	{
	Death.Soul:
	Death.SoulRipper:
		POSS M 4
		POSS N 4 A_XScream
		POSS O 4 A_SpawnItemEx("SoulExplosionSmall", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		POSS P 4 A_NoBlocking
		POSS Q 4 A_SpawnItemEx("SoulVaporSmall", 0, 0, 24, 0, 0, 2)
		POSS RST 4
		POSS U -1
		Stop
	}
}

ACTOR EriShotgunGuy : ShotgunGuy replaces ShotgunGuy
{
	States
	{
	Death.Soul:
	Death.SoulRipper:
		SPOS M 4
		SPOS N 4 A_XScream
		SPOS O 4 A_SpawnItemEx("SoulExplosionSmall", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		SPOS P 4 A_NoBlocking
		SPOS Q 4 A_SpawnItemEx("SoulVaporSmall", 0, 0, 24, 0, 0, 2)
		SPOS RST 4
		SPOS U -1
		Stop
	}
}

ACTOR EriChaingunGuy : ChaingunGuy replaces ChaingunGuy
{
	DropItem "EriNailgun"
	States
	{
	Death.Soul:
	Death.SoulRipper:
		CPOS O 4
		CPOS P 4 A_XScream
		CPOS Q 4 A_SpawnItemEx("SoulExplosionSmall", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		CPOS R 4 A_NoBlocking
		CPOS S 4 A_SpawnItemEx("SoulVaporSmall", 0, 0, 24, 0, 0, 2)
		CPOS T -1
		Stop
	}
}

ACTOR EriImp : DoomImp replaces DoomImp
{
	States
	{
	Death.Soul:
	Death.SoulRipper:
		TROO N 4
		TROO O 4 A_XScream
		TROO P 4 A_SpawnItemEx("SoulExplosionSmall", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		TROO Q 4 A_NoBlocking
		TROO R 4 A_SpawnItemEx("SoulVaporSmall", 0, 0, 24, 0, 0, 2)
		TROO ST 4
		TROO U -1
		Stop
	}
}

ACTOR EriDemon : Demon replaces Demon
{
	States
	{
	XDeath:
		SARG O 4
		SARG P 0 A_PlaySound("misc/gibbed", CHAN_AUTO)
		SARG P 4 A_Scream
		SARG Q 4 A_NoBlocking
		SARG RSTUV 4
		SARG W -1
		Stop
	Death.Soul:
	Death.SoulRipper:
		SARG O 4
		SARG P 0 A_PlaySound("misc/gibbed", CHAN_AUTO)
		SARG P 4 A_Scream
		SARG Q 4 A_SpawnItemEx("SoulExplosionMedium", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		SARG R 4 A_NoBlocking
		SARG S 4 A_SpawnItemEx("SoulVaporMedium", 0, 0, 24, 0, 0, 3)
		SARG TUV 4
		SARG W -1
		Stop
	}
}

ACTOR EriSpectre : EriDemon replaces Spectre
{
	SpawnID 9
	+SHADOW
	RenderStyle OptFuzzy
	Alpha 0.5
	SeeSound "spectre/sight"
	AttackSound "spectre/melee"
	PainSound "spectre/pain"
	DeathSound "spectre/death"
	ActiveSound "spectre/active"
	HitObituary "$OB_SPECTREHIT"
}

ACTOR EriLostSoul : LostSoul replaces LostSoul
{
	States
	{
	Death.Soul:
	Death.SoulRipper:
		SKUL F 3 Bright
		SKUL G 3 Bright A_Scream
		SKUL H 3 Bright A_SpawnItemEx("SoulExplosionSmall", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		SKUL I 3 Bright A_NoBlocking
		SKUL J 3 A_SpawnItemEx("SoulVaporSmall", 0, 0, 24, 0, 0, 2)
		SKUL K 3
		Stop
	}
}

ACTOR EriCaco : Cacodemon replaces Cacodemon
{
	Bloodcolor "Blue"
	States
	{
	XDeath:
		HEAD M 4 A_NoGravity
		HEAD N 0 A_PlaySound("misc/gibbed", CHAN_AUTO)
		HEAD N 4 A_Scream
		HEAD O 4 A_NoBlocking
		HEAD P 4
		HEAD Q 3 A_Gravity
		HEAD RSTUVW 3
		HEAD X -1
		Stop
	Death.Soul:
	Death.SoulRipper:
		HEAD M 4 A_NoGravity
		HEAD N 0 A_PlaySound("misc/gibbed", CHAN_AUTO)
		HEAD N 4 A_Scream
		HEAD O 4 A_SpawnItemEx("SoulExplosionMedium", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		HEAD P 4 A_NoBlocking
		HEAD Q 0 A_SpawnItemEx("SoulVaporMedium", 0, 0, 24, 0, 0, 3)
		HEAD Q 3 A_Gravity
		HEAD RSTUVW 3
		HEAD X -1
		Stop
	}
}

ACTOR EriHellKnight : HellKnight replaces HellKnight
{
	Bloodcolor "00 A0 00"
	States
	{
	XDeath:
		BOS2 P 5
		BOS2 Q 0 A_PlaySound("misc/gibbed", CHAN_AUTO)
		BOS2 Q 5 A_Scream
		BOS2 R 5 A_NoBlocking
		BOS2 STU 5
		BOS2 V -1
		Stop
	Death.Soul:
	Death.SoulRipper:
		BOS2 P 4
		BOS2 Q 0 A_PlaySound("misc/gibbed", CHAN_AUTO)
		BOS2 Q 4 A_Scream
		BOS2 R 4 A_SpawnItemEx("SoulExplosionMedium", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		BOS2 S 4 A_NoBlocking
		BOS2 T 4 A_SpawnItemEx("SoulVaporMedium", 0, 0, 24, 0, 0, 3)
		BOS2 U 4
		BOS2 V -1
		Stop
	}
}

ACTOR EriBaron : BaronOfHell replaces BaronOfHell
{
	Bloodcolor "00 A0 00"
	States
	{
	XDeath:
		BOSS P 5
		BOSS Q 0 A_PlaySound("misc/gibbed", CHAN_AUTO)
		BOSS Q 5 A_Scream
		BOSS R 5 A_NoBlocking
		BOSS STU 5
		BOSS V -1
		Stop
	Death.Soul:
	Death.SoulRipper:
		BOSS P 4
		BOSS Q 0 A_PlaySound("misc/gibbed", CHAN_AUTO)
		BOSS Q 4 A_Scream
		BOSS R 4 A_SpawnItemEx("SoulExplosionLarge", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		BOSS S 4 A_NoBlocking
		BOSS T 4 A_SpawnItemEx("SoulVaporLarge", 0, 0, 24, 0, 0, 4)
		BOSS U 4
		BOSS V -1
		Stop
	}
}

ACTOR EriRevenant : Revenant replaces Revenant
{
	States
	{
	XDeath:
		SKEL R 5
		SKEL S 0 A_PlaySound("misc/gibbed", CHAN_AUTO)
		SKEL S 5 A_Scream
		SKEL T 5
		SKEL U 5 A_NoBlocking
		SKEL VWX 5
		SKEL Y -1
		Stop
	Death.Soul:
	Death.SoulRipper:
		SKEL R 4
		SKEL S 0 A_PlaySound("misc/gibbed", CHAN_AUTO)
		SKEL S 4 A_Scream
		SKEL T 4 A_SpawnItemEx("SoulExplosionMedium", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		SKEL U 4 A_NoBlocking
		SKEL V 4 A_SpawnItemEx("SoulVaporMedium", 0, 0, 24, 0, 0, 3)
		SKEL WX 4
		SKEL Y -1
		Stop
	}
}

ACTOR EriMancubus : Fatso replaces Fatso
{
	DamageFactor "SoulRipper", 0.75
	DamageFactor "Ripper", 0.75
	States
	{
	XDeath:
		FATG A 5
		FATG B 0 A_PlaySound("misc/gibbed", CHAN_AUTO)
		FATG B 5 A_Scream
		FATG C 5
		FATG E 5
		FATG F 5 A_NoBlocking
		FATG GHI 5
		FATG J -1
		Stop
	Death.Soul:
	Death.SoulRipper:
		FATG A 4
		FATG B 0 A_PlaySound("misc/gibbed", CHAN_AUTO)
		FATG B 4 A_Scream
		FATG C 4 A_SpawnItemEx("SoulExplosionLarge", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		FATG E 4 A_NoBlocking
		FATG F 4 A_SpawnItemEx("SoulVaporLarge", 0, 0, 24, 0, 0, 4)
		FATG GHI 4
		FATG J -1
		Stop
	}
}

ACTOR EriArachnotron : Arachnotron replaces Arachnotron
{
	DamageFactor "SoulRipper", 0.5
	DamageFactor "Ripper", 0.5
	States
	{
	Death.Soul:
	Death.SoulRipper:
		BSPI J 10 A_Scream
		BSPI K 4 A_SpawnItemEx("SoulExplosionLarge", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		BSPI L 4 A_NoBlocking
		BSPI M 4 A_SpawnItemEx("SoulVaporLarge", 0, 0, 24, 0, 0, 4)
		BSPI NO 4
		BSPI P -1
		Stop
	}
}

ACTOR EriPainElemental : PainElemental replaces PainElemental
{
	States
	{
	Death.Soul:
	Death.SoulRipper:
		PAIN H 8 Bright
		PAIN I 8 Bright A_Scream
		PAIN J 8 Bright A_SpawnItemEx("SoulExplosionLarge", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		PAIN K 8 Bright A_SpawnItemEx("SoulVaporLarge", 0, 0, 24, 0, 0, 4)
		PAIN L 8 Bright A_PainDie
		PAIN M 8 Bright A_NoBlocking
		Stop
	}
}

ACTOR EriArchvile : Archvile replaces Archvile
{
	States
	{
	XDeath:
		VILG A 5
		VILG B 0 A_PlaySound("misc/gibbed", CHAN_AUTO)
		VILG B 5 A_Scream
		VILG C 5
		VILG D 5 A_NoBlocking
		VILG EFGH 5
		VILG I -1
		Stop
	Death.Soul:
	Death.SoulRipper:
		VILG A 4
		VILG B 0 A_PlaySound("misc/gibbed", CHAN_AUTO)
		VILG B 4 A_Scream
		VILG C 4 A_SpawnItemEx("SoulExplosionLarge", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		VILG D 4 A_NoBlocking
		VILG E 4 A_SpawnItemEx("SoulVaporLarge", 0, 0, 24, 0, 0, 4)
		VILG FGH 4
		VILG I -1
		Stop
	}
}

ACTOR EriCyberdemon : Cyberdemon replaces Cyberdemon
{
	DamageFactor "Explosive", 0.75
	States
	{
	Death.Soul:
	Death.SoulRipper:
		CYBR H 5
		CYBR I 5 A_Scream
		CYBR JK 5
		CYBR L 5 A_SpawnItemEx("SoulExplosionHuge", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		CYBR M 5 A_NoBlocking
		CYBR N 5 A_SpawnItemEx("SoulVaporHuge", 0, 0, 24, 0, 0, 5)
		CYBR O 5
		CYBR P 30
		CYBR P -1 A_BossDeath
		Stop
	}
}

ACTOR EriSpiderMastermind : SpiderMastermind replaces SpiderMastermind
{	
	DamageFactor "Explosive", 0.75
	DamageFactor "SoulRipper", 0.5
	DamageFactor "Ripper", 0.5
	States
	{
	Death.Soul:
	Death.SoulRipper:
		SPID J 20 A_Scream
		SPID K 5 A_NoBlocking
		SPID LM 5
		SPID N 5 A_SpawnItemEx("SoulExplosionHuge", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		SPID O 5
		SPID P 5 A_SpawnItemEx("SoulVaporHuge", 0, 0, 24, 0, 0, 5)
		SPID QR 5
		SPID S 30
		SPID S -1 A_BossDeath
		Stop
	}
}

ACTOR EriNazi : WolfensteinSS replaces WolfensteinSS
{
	States
	{
	Death.Soul:
	Death.SoulRipper:
		SSWV N 4
		SSWV O 4 A_XScream
		SSWV P 4 A_SpawnItemEx("SoulExplosionSmall", 0, 0, 0, 0, 0, 0, 0, SXF_TRANSFERPOINTERS)
		SSWV Q 4 A_NoBlocking
		SSWV R 4 A_SpawnItemEx("SoulVaporSmall", 0, 0, 24, 0, 0, 2)
		SSWV STU 4
		SSWV V -1
		Stop
	}
}