//////////////////////////////
// ARCHVILES				//
//////////////////////////////
ACTOR NewArchviles Replaces Archvile
{
	Health 680
	GibHealth 200
	Radius 20
	Height 56
	Mass 500
	Speed 15
	PainChance 50
	MaxTargetRange 896
	MONSTER 
	+QUICKTORETALIATE 
	+FLOORCLIP 
	+NOTARGET
	SeeSound "vile/sight"
	PainSound "vile/pain"
	DeathSound "vile/death"
	ActiveSound "vile/active"
	MeleeSound "vile/stop"
	Obituary "$OB_VILE"
	States
	{
	Spawn:
		VILE AB 10 A_Look
	Loop
		
	See:
		VILE AABBCCDDEEFF 2 A_VileChase
	Loop
				
	Missile:
		VILE G 0 BRIGHT A_VileStart
		VILE G 10 BRIGHT A_FaceTarget 
		VILE H 8 BRIGHT A_VileTarget
		VILE IJKLMN 8 BRIGHT A_FaceTarget 
		VILE O 8 BRIGHT A_VileAttack ("ROCKEXPL" ,20 ,70 ,70 ,2.5 , "Extreme", VAF_DMGTYPEAPPLYTODIRECT )
		VILE P 20 BRIGHT
	Goto See
		
	Heal:
		VILE "[\]" 10 BRIGHT
	Goto See
		
	Pain:
		VILE Q 5   
		VILE Q 5 A_Pain
	Goto See

	Death.SmallBullets:
		VILE R 3 A_Scream
		TNT1 AAA 0 A_CustomMissile("UniversalBloodSlatter", 20,  0, random(0, 500), 2, random(0, 190))
		VILE ST 3
		VILE U 3 A_NoBlocking
		VILE VWXY 3
		VILE Z -1
	Stop
		
	Death:
		XVIL A 3 A_Scream
		XVIL BCDEFG 3
		TNT1 AAA 0 A_CustomMissile("FlyingBlood", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAA 0 A_CustomMissile("UniversalBloodSlatter", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAA 0 A_CustomMissile("ThickBloodSlatter", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAA 0 A_CustomMissile("FlyingBlood", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAA 0 A_CustomMissile("ThickBloodSlatter", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 A 0 A_CustomMissile("GoreChunkSuper", 20,  0, random(0, 360), 2, random(0, 90))
		XVIL HIJKLMN 3
		XVIL O 3 A_NoBlocking
		XVIL P 3
		XVIL Q -1
	Stop
		
	XDeath:
		TNT1 A 0 A_Playsound ("BIGDETH", 1, 128, FALSE)
		TNT1 A 0 A_CustomMissile("FunnyFlyingArchvileHead", 100,  0, random(0, 360), 2, random(0, 90))
		TNT1 A 0 A_CustomMissile("XArchvileTorsoDeath", 100,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAA 0 A_CustomMissile("FlyingBlood", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAA 0 A_CustomMissile("FlyingBlood", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAA 0 A_CustomMissile("FlyingBlood", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAAA 0 A_CustomMissile("UniversalBloodSlatter", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAAA 0 A_CustomMissile("ThickBloodSlatter", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAAA 0 A_CustomMissile("FlyingBlood", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAAA 0 A_CustomMissile("ThickBloodSlatter", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAAA 0 A_CustomMissile("UniversalBloodSlatter", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAAA 0 A_CustomMissile("ThickBloodSlatter", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAAA 0 A_CustomMissile("FlyingBlood", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAAA 0 A_CustomMissile("ThickBloodSlatter", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAAA 0 A_CustomMissile("XDeathMonster", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAAA 0 A_CustomMissile("XDeathMonster2", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAAA 0 A_CustomMissile("IntestinalGutsFlying", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAAA 0 A_CustomMissile("RibsFlying", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAAA 0 A_CustomMissile("OrgansFlying", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAAA 0 A_CustomMissile("TorsoFlying", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAAA 0 A_CustomMissile("GoreChunk2", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAAA 0 A_CustomMissile("GoreChunk1", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAAA 0 A_CustomMissile("GoreChunkSuper", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 A -1
	Stop
	}
}

///////////////////////////////////////
ACTOR FunnyFlyingArchvileHead
{
	Radius 8
	Height 8
	Mass 1
	Speed 24
	BounceType Doom
	+NOBLOCKMAP
	+MISSILE
	+NOTELEPORT
	+BOUNCEONWALLS
	+BOUNCEONCEILINGS
	+MOVEWITHSECTOR
	+SKYEXPLODE
	+CLIENTSIDEONLY
	+RIPPER
	+BLOODLESSIMPACT 
	-DONTSPLASH
	+THRUGHOST
	DamageType Blood
	DeathSound "LILGORE4"
	Decal BloodSuperSplatter
	States
{
	Spawn:
		HVIL ABCD 3 A_CustomMissile ("FlyingBloodTrail", 0, 0, random (0, 360), 2, random (0, 360))
	Loop
	
	Death:
		TNT1 A 0 A_SpawnItem("BloodSpot",0,0,0,1)
		HVIL E -1
	Stop
		
	Splash:
		TNT1 A 0
	Stop
	}
}

///////////////////////////////////////
ACTOR XArchvileTorsoDeath
{
	Radius 8
	Height 8
	Mass 1
	Speed 24
	Scale 1.1
	+NOBLOCKMAP
	+MISSILE
	+SKYEXPLODE
	+NOTELEPORT
	+BOUNCEONCEILINGS
	+MOVEWITHSECTOR
	-DONTSPLASH
	+THRUGHOST
	DeathSound "LILGORE4"
	Decal BloodSuperSplatter
	States
{
	Spawn:
		YVIL ABCDEFGHIJK 5 A_CustomMissile ("FlyingBloodTrail", 0, 0, random (0, 360), 2, random (0, 360))
	Loop
	
	Death:
		TNT1 A 0 A_SpawnItem("BloodSpot",0,0,0,1)
		TNT1 A 0 A_CustomMissile ("ThickBloodSlatter", 0, 0, random (0, 360), 2, random (0, 360))
		TNT1 A 0 A_CustomMissile ("UniversalBloodSlatter", 0, 0, random (0, 360), 2, random (0, 360))
		YVIL L -1
	Stop
		
	Splash:
		TNT1 A 0
	Stop
	}
}