//===========================================================================
//
// Arachnotron2
//
//===========================================================================
ACTOR Arachnotron2: Arachnotron1 2542
{
	//$Category BD Monsters
	//$Icon "monster"
	//$Colour rgb(200, 0, 0)
	//$Sprite ARACA1D1
	Scale 1.4
	Radius 64//SpriteW(86x140%=120)
	Height 69//SpriteH(49x140%=69)
	Health 1100
	Mass 875
	Speed 5
	SeeSound "baby2/sight"
	PainSound "SPIPAIN3"
	DeathSound "baby2/death"
	ActiveSound "baby2/active"
	Obituary "%o was killed by an Ancient Arachnotron."
	Tag "Ancient Arachnotron"
	DropItem "64UnmakerUpgradeSpawner", 4
	States
	{
	Death.KillMe:
	Death.Taunt:
	    Goto Death

	Spawn:
		ARAC A 0
		TNT1 A 0 ACS_NamedExecuteAlways("BDCheckStuff")//Check if new monsters are disabled
		ARAC A 2
		TNT1 A 0 A_JumpIfInventory("nonewenemies", 1, "Vanish")

	Idle:
	Stand:
		ARAC A 10 A_Look
		Loop

	Vanish:
		TNT1 A 0
		TNT1 A 0 A_NoBlocking
		Stop

	Pain.Killme:
	Pain.Taunt:
		TNT1 A 0
		TNT1 A 0 HealThing(2)
		Goto Missile

	See:
		ARAC A 20 A_FaceTarget
		TNT1 A 0 A_PlaySound("baby2/walk", 1)
		ARAC AAABBBCCCDDDEEEFFF 1 A_Chase
		Goto See+1

	SearchPlayer:
	Idle:
		ARAC AA 10 A_Look
		TNT1 A 0 A_SetAngle(angle - 40)
		ARAC AA 10 A_Look
		TNT1 A 0 A_SetAngle(angle + 40)
		ARAC AA 10 A_Look

		ARAC A 0 A_PlaySound("baby2/walk", 1)
		ARAC AAABBBCCCDDDEEEFFF 1 A_Wander
		ARAC A 3 A_Look

		ARAC A 0 A_PlaySound("baby2/walk", 1)
		ARAC AAABBBCCCDDDEEEFFF 1 A_Wander
		ARAC A 3 A_Look

		ARAC A 0 A_PlaySound("baby2/walk", 1)
		ARAC AAABBBCCCDDDEEEFFF 1 A_Wander
		ARAC A 3 A_Look

		ARAC A 0 A_PlaySound("baby2/walk", 1)
		ARAC AAABBBCCCDDDEEEFFF 1 A_Wander
		ARAC A 3 A_Look

		TNT1 A 0 A_Jump(128, "SearchPlayer")

		ARAC A 0 A_PlaySound("baby2/walk", 1)
		ARAC AAABBBCCCDDDEEEFFF 1 A_Wander
		ARAC A 3 A_Look

		ARAC A 0 A_PlaySound("baby2/walk", 1)
		ARAC AAABBBCCCDDDEEEFFF 1 A_Wander
		ARAC A 3 A_Look

		ARAC A 0 A_PlaySound("baby2/walk", 1)
		ARAC AAABBBCCCDDDEEEFFF 1 A_Wander
		ARAC A 3 A_Look

		ARAC A 0 A_PlaySound("baby2/walk", 1)
		ARAC AAABBBCCCDDDEEEFFF 1 A_Wander
		ARAC A 3 A_Look

		Goto Stand

	Missile:
		ARAC A 20 A_FaceTarget
		ARAC G 6
		TNT1 A 0 A_PlaySound("PAILGF2")
		ARAC H 2 A_CustomMissile("PurplePlasmaBall",25,0,0,0)
		TNT1 A 0 A_CustomMissile("Alerter",25)
		ARAC H 1 A_SpidRefire
		Goto Missile+1

	Pain:
	Pain.Kick:
		ARAC I 3
		ARAC I 3 A_Pain
		Goto See+1

	Death:
		TNT1 A 0 A_Jump(101, "RareDeath")
		TNT1 A 0 A_Jump(128, "Death2")
		ARAC J 8 A_Scream
		TNT1 AAAAAAAAA 0 A_CustomMissile ("CeilBloodLauncherLong", 0, 0, random (0, 360), 2, random (50, 130))
		TNT1 AAAA 0 A_CustomMissile ("Guts", 32, 0, random (0, 360), 2, random (0, 160))
		TNT1 AAAAA 0 A_CustomMissile ("SmallBrainPiece", 32, 0, random (0, 360), 2, random (0, 160))
		TNT1 AAAAAAAAAA 0 A_CustomMissile ("BloodMist", 50, 0, random (0, 360), 2, random (60, 90))
        TNT1 AAA 0 A_CustomMissile ("XDeathSpiderNew1", 42, 0, random (0, 360), 2, random (60, 90))
        TNT1 AA 0 A_CustomMissile ("XDeathSpiderNew2", 42, 0, random (0, 360), 2, random (60, 90))
		ARAC K 6
		ARAC LMNO 8
		ARAC P 1 A_NoBlocking
		TNT1 A 0 A_SpawnItem ("GrowingBloodPool")
        TNT1 A 0 A_SpawnItem ("DeadSpiderDark", 1)
		TNT1 A -1 A_BossDeath
        Stop

	Death2:
		AR4C J 8 A_Scream
         TNT1 AAAAAAAAA 0 A_CustomMissile ("CeilBloodLauncherLong", 0, 0, random (0, 360), 2, random (50, 130))
		 TNT1 AAAA 0 A_CustomMissile ("Guts", 32, 0, random (0, 360), 2, random (0, 160))
		 TNT1 AAAAA 0 A_CustomMissile ("SmallBrainPiece", 32, 0, random (0, 360), 2, random (0, 160))
		 TNT1 AAAAAAAAAA 0 A_CustomMissile ("BloodMist", 50, 0, random (0, 360), 2, random (60, 90))
        TNT1 AAA 0 A_CustomMissile ("XDeathSpiderNew1", 42, 0, random (0, 360), 2, random (60, 90))
        TNT1 AA 0 A_CustomMissile ("XDeathSpiderNew2", 42, 0, random (0, 360), 2, random (60, 90))
		AR4C K 6
		AR4C LMNO 8
		AR4C P 1 A_NoBlocking
		TNT1 A 0 A_SpawnItem ("GrowingBloodPool")
        TNT1 A 0 A_SpawnItem ("DeadSpiderDark3", 1)
		TNT1 A -1 A_BossDeath
        Stop

	RareDeath:
		TNT1 A 0 A_Jump(128, "RareDeath2")
		ARAC Q 5
		TNT1 A 0 A_SpawnItemEx ("ExplosionFlareSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
        TNT1 A 0 A_SpawnItemEx ("BarrelKaboom",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
        TNT1 AAAAA 0 A_CustomMissile ("SuperGoreSpawner", 10, 0, random (0, 360), 2, random (0, 180))
        TNT1 AAAAAAAAAA 0 A_CustomMissile ("SuperGoreSpawner", 0, 0, random (0, 180), 2, random (0, 180))
        TNT1 AA 0 A_CustomMissile ("SpiderLeg2", 32, 0, random (0, 360), 2, random (0, 160))
         TNT1 AAAAAAAAA 0 A_CustomMissile ("CeilBloodLauncherLong", 0, 0, random (0, 360), 2, random (50, 130))
		 TNT1 AAAA 0 A_CustomMissile ("Guts", 32, 0, random (0, 360), 2, random (0, 160))
		 TNT1 AAAAAAAAAA 0 A_CustomMissile ("SmallBrainPiece", 32, 0, random (0, 360), 2, random (0, 160))
        TNT1 AAAAAAAA 0 A_CustomMissile ("SpiderPart1", 32, 0, random (0, 360), 2, random (0, 160))
        TNT1 AA 0 A_CustomMissile ("SpiderPart2", 32, 0, random (0, 360), 2, random (0, 160))
        TNT1 AAA 0 A_CustomMissile ("PEPart2", 32, 0, random (0, 360), 2, random (0, 160))
		 TNT1 AAAAAAAA 0 A_CustomMissile ("Brutal_FlyingBlood", 32, 0, random (0, 360), 2, random (0, 160))
		ARAC R 6
		ARAC STUV 6
		ARAC W 2 A_NoBlocking
		TNT1 A 0 A_SpawnItem ("GrowingBloodPool")
        TNT1 A 0 A_SpawnItem ("DeadSpiderDark2", 1)
	    TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 A_CustomMissile ("FlameTrails", 20, 0, random (0, 360), 2, random (70, 110))
	    TNT1 AAAAAAAAAA 10 A_CustomMissile ("PlasmaSmoke", 40, 0, random (0, 360), 2, random (70, 110))
        TNT1 A -1 A_BossDeath
        Stop

	RareDeath2:
		AR4C Q 5
		TNT1 A 0 A_SpawnItemEx ("ExplosionFlareSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
        TNT1 A 0 A_SpawnItemEx ("BarrelKaboom",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
        TNT1 AAAAA 0 A_CustomMissile ("SuperGoreSpawner", 10, 0, random (0, 360), 2, random (0, 180))
        TNT1 AAAAAAAAAA 0 A_CustomMissile ("SuperGoreSpawner", 0, 0, random (0, 180), 2, random (0, 180))
        TNT1 AA 0 A_CustomMissile ("SpiderLeg2", 32, 0, random (0, 360), 2, random (0, 160))
         TNT1 AAAAAAAAA 0 A_CustomMissile ("CeilBloodLauncherLong", 0, 0, random (0, 360), 2, random (50, 130))
		 TNT1 AAAA 0 A_CustomMissile ("Guts", 32, 0, random (0, 360), 2, random (0, 160))
		 TNT1 AAAAAAAAAA 0 A_CustomMissile ("SmallBrainPiece", 32, 0, random (0, 360), 2, random (0, 160))
        TNT1 AAAAAAAA 0 A_CustomMissile ("SpiderPart1", 32, 0, random (0, 360), 2, random (0, 160))
        TNT1 AA 0 A_CustomMissile ("SpiderPart2", 32, 0, random (0, 360), 2, random (0, 160))
        TNT1 AAA 0 A_CustomMissile ("PEPart2", 32, 0, random (0, 360), 2, random (0, 160))
		 TNT1 AAAAAAAA 0 A_CustomMissile ("Brutal_FlyingBlood", 32, 0, random (0, 360), 2, random (0, 160))
		AR4C R 6
		AR4C STUV 6
		AR4C W 2 A_NoBlocking
		TNT1 A 0 A_SpawnItem ("GrowingBloodPool")
        TNT1 A 0 A_SpawnItem ("DeadSpiderDark4", 1)
	    TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 A_CustomMissile ("FlameTrails", 20, 0, random (0, 360), 2, random (70, 110))
	    TNT1 AAAAAAAAAA 10 A_CustomMissile ("PlasmaSmoke", 40, 0, random (0, 360), 2, random (70, 110))
        TNT1 A -1 A_BossDeath
        Stop

	Death.Cutless:
	TNT1 A 0
	TNT1 A 0 A_Jump(114,"XDeath")
	Goto Death

	Death.SuperPlasma:
    Death.Plasma: Death.Plasma2:
        TNT1 A 0
        TNT1 A 0 A_Scream
        TNT1 A 0 A_NoBlocking
        TNT1 AAA 0 A_CustomMissile ("Brutal_FlyingBlood", 50, 0, random (0, 360), 2, random (0, 160))
	    TNT1 AA 0 A_CustomMissile ("XDeathBurnedMeat3", 32, 0, random (0, 360), 2, random (0, 160))
		EXPL AAAAAA 0 A_CustomMissile ("ExplosionSmoke", 32, 0, random (0, 360), 2, random (0, 360))
        CARB QQQQQQQQQQ 10 A_CustomMissile ("PlasmaSmoke", 15, 0, random (0, 360), 2, random (70, 110))
        CARB Q -1 A_BossDeath
        Stop

	Death.Fire:
        TNT1 A 0
		TNT1 A 0 A_Scream
        TNT1 A 0 A_NoBlocking
		TNT1 AAA 0 A_CustomMissile ("PEPart2", 32, 0, random (0, 360), 2, random (0, 160))
		ARAC LLLL 2 A_CustomMissile ("FlameTrails", 45, 0, random (0, 360), 2, random (50, 130))
		ARAC MMMM 2 A_CustomMissile ("FlameTrails", 30, 0, random (0, 360), 2, random (50, 130))
		ARAC NNNN 2 A_CustomMissile ("FlameTrails", 25, 0, random (0, 360), 2, random (50, 130))
		ARAC OOOO 2 A_CustomMissile ("FlameTrails", 25, 0, random (0, 360), 2, random (50, 130))
        TNT1 A 0 A_Playsound("props/redfire")
	    CARB QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ 2 A_CustomMissile ("FlameTrails", 20, 0, random (0, 360), 2, random (70, 110))
	    CARB QQQQQQQQQQ 10 A_CustomMissile ("PlasmaSmoke", 30, 0, random (0, 360), 2, random (70, 110))
		CARB Q -1 A_BossDeath
        Stop

    Death.Fatality:
	    TNT1 A 0
		TNT1 A 0 A_Pain
		TNT1 A 0 A_FaceTarget
		TNT1 AAA 0 A_SpawnItemEx("HealthCrueltyBonus2", 0, 0, 32, frandom (-2.5, 2.5), frandom (-2.5, 2.5), 5)
		TNT1 AAA 0 A_SpawnItemEx("ArmorCrueltyBonus2", 0, 0, 32, frandom (-2.5, 2.5), frandom (-2.5, 2.5), 5)
	    TNT1 A 0 A_Jump(128, "Death.Fatality2")
	    TNT1 A 0 A_GiveToTarget("GoFatality", 1)
	Death.HelperMarineFatallity:
        TNT1 A 0 A_GiveToTarget("Arachnotron2FatalityA", 1)
        TNT1 A -1 A_BossDeath
		Stop
	Death.Fatality2:
	TNT1 A 0 A_GiveToTarget("GoFatality", 1)
        TNT1 A 0 A_GiveToTarget("Arachnotron2FatalityB", 1)
        TNT1 A -1 A_BossDeath
		Stop

    Death.Saw:
	Death.Tear:
		TNT1 AAAAA 0 A_CustomMissile ("Guts2", 14, 0, random (0, 360), 2, random (0, 160))
		TNT1 AAAAAA 0 A_CustomMissile ("CeilBloodLauncher", 40, 0, random (0, 360), 2, random (50, 130))
		TNT1 AAAAA 0 A_CustomMissile ("XDeath1", 10, 0, random (0, 360), 2, random (0, 160))
		TNT1 AAAAA 0 A_CustomMissile ("XDeath2", 10, 0, random (0, 360), 2, random (0, 160))
		TNT1 AAAAAAAAAAAAA 0 A_CustomMissile ("PlayerFlyingBlood", 50, 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeathArachnotronHead2", 50, 0, random (0, 360), 2, random (40, 130))
		TNT1 A 0 A_Scream
		TNT1 A 0 A_NoBlocking
		ARAC X 16
		ARAC YZ 8
		TNT1 A 0 A_Jump(64, 3)
		TNT1 A 0 A_SpawnItemEx("NoLegsSpider2", 0, 1, 1, 1, 1)
        TNT1 A -1 A_BossDeath
		Stop
		TNT1 AAA 0
		TNT1 A 0 A_SpawnItemEx("ArachnoTurretFrame2", 0, 1, 1, 1, 1)
        TNT1 A -1 A_BossDeath
		Stop
    Death.Crush:
	Death.BlackHole:
	Death.QuadBlast:
	XDeath:
		ARAC J 4
		TNT1 A 0 A_SpawnItemEx ("ExplosionFlareSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
        TNT1 A 0 A_SpawnItemEx ("BarrelKaboom",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)

		TNT1 A 0 A_Jump(64, "XDeathRare")
        TNT1 AAAAA 0 A_CustomMissile ("SuperGoreSpawner", 10, 0, random (0, 360), 2, random (0, 180))
        TNT1 AAAAAAAAAA 0 A_CustomMissile ("SuperGoreSpawner", 0, 0, random (0, 180), 2, random (0, 180))
        TNT1 AA 0 A_CustomMissile ("SpiderLeg2", 32, 0, random (0, 360), 2, random (0, 160))
         TNT1 AAAAAAAAA 0 A_CustomMissile ("CeilBloodLauncherLong", 0, 0, random (0, 360), 2, random (50, 130))
		 TNT1 AAAA 0 A_CustomMissile ("Guts", 32, 0, random (0, 360), 2, random (0, 160))
		 TNT1 AAAAAAAAAA 0 A_CustomMissile ("SmallBrainPiece", 32, 0, random (0, 360), 2, random (0, 160))
        TNT1 AAAAAAAA 0 A_CustomMissile ("SpiderPart1", 32, 0, random (0, 360), 2, random (0, 160))
        TNT1 AA 0 A_CustomMissile ("SpiderPart2", 32, 0, random (0, 360), 2, random (0, 160))
        TNT1 AAA 0 A_CustomMissile ("PEPart2", 32, 0, random (0, 360), 2, random (0, 160))
		 TNT1 AAAAAAAA 0 A_CustomMissile ("Brutal_FlyingBlood", 32, 0, random (0, 360), 2, random (0, 160))
		ARAC Q 6
		ARAC RSTUV 6
		ARAC W 1 A_NoBlocking
		TNT1 A 0 A_SpawnItem ("GrowingBloodPool")
        TNT1 A 0 A_SpawnItem ("XDeadSpider2", 1)
	    TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 A_CustomMissile ("FlameTrails", 20, 0, random (0, 360), 2, random (70, 110))
	    TNT1 AAAAAAAAAA 10 A_CustomMissile ("PlasmaSmoke", 40, 0, random (0, 360), 2, random (70, 110))
        TNT1 A -1 A_BossDeath
        Stop

	XDeathRare:
		TNT1 A 0 A_CustomMissile ("XDeathArachnotronHead2", 50, 0, random (0, 360), 2, random (40, 130))
         TNT1 AA 0 A_CustomMissile ("SpiderLeg2", 32, 0, random (0, 360), 2, random (0, 160))
         TNT1 AAAAAAAAA 0 A_CustomMissile ("CeilBloodLauncherLong", 0, 0, random (0, 360), 2, random (50, 130))
		 ARAC Q 6
		ARAC RSTUV 6
		ARAC W 1 A_NoBlocking
		TNT1 A 0 A_SpawnItem ("GrowingBloodPool")
        TNT1 A 0 A_SpawnItem ("XDeadSpider2", 1)
	    TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 A_CustomMissile ("FlameTrails", 20, 0, random (0, 360), 2, random (70, 110))
	    TNT1 AAAAAAAAAA 10 A_CustomMissile ("PlasmaSmoke", 40, 0, random (0, 360), 2, random (70, 110))
        TNT1 A -1 A_BossDeath
        Stop

    Raise:
		TNT1 A 0 A_SpawnItem("PentagramSpawnerBig")
		ARAC PONMLKJ 5
		Goto See
	}
}

Actor DeadSpiderDark: CurbstompedMarine
{
    Radius 20
    Height 12
    Scale 1.4
    +SHOOTABLE
    +NOTELEPORT
    +MOVEWITHSECTOR
    +CORPSE
	-SOLID
	+THRUACTORS
	damagefactor "Crush", 50.0
    Mass 1000
    Health 100
    damagefactor "Blood", 0.0
    damagefactor "Trample", 0.0
States
    {
    Spawn:
		ARAC P -1
        Stop
	Raise:
		TNT1 A 0 A_SpawnItem("PentagramSpawnerBig")
		ARAC PONMLKJ 5
		TNT1 A 0 A_NoBlocking
        TNT1 A 0 A_SpawnItemEx("Arachnotron2",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
		Stop
	Death.Cut:
	Death.Cutless:
    Death:
         TNT1 A 0 A_SpawnItemEx ("GibsZ",-3,-3)
         TNT1 A 0 A_SpawnItemEx ("GibsZ",3,3)
		 TNT1 AAA 0 A_CustomMissile ("SpiderPart1", 32, 0, random (0, 360), 2, random (0, 160))
		 TNT1 AAAA 0 A_CustomMissile ("SpiderPart2", 32, 0, random (0, 360), 2, random (0, 160))
         TNT1 AA 0 A_CustomMissile ("XDeathSpiderNew1", 32, 0, random (0, 360), 2, random (60, 90))
		 TNT1 AAA 0 A_CustomMissile ("SpiderLeg2", 32, 0, random (0, 360), 2, random (0, 160))
  	     TNT1 AAA 0 A_CustomMissile ("XDeath1", 5, 0, random (0, 360), 2, random (0, 160))
		 TNT1 AAA 0 A_CustomMissile ("XDeath2", 5, 0, random (0, 360), 2, random (0, 160))
		 TNT1 AAA 0 A_CustomMissile ("XDeath3", 5, 0, random (0, 360), 2, random (0, 160))
		 TNT1 AAA 0 A_CustomMissile ("XDeath4", 5, 0, random (0, 360), 2, random (0, 160))
         Stop
}}

Actor NoLegsSpider2: DeadSpiderDark
{
+NOBLOOD
Health 100
States{
Spawn:
  ARA2 A -1
  Stop
}}

Actor DeadSpiderDark2: DeadSpiderDark
{

States
    {
    Spawn:
		ARAC W -1
        Stop
}}

Actor DeadSpiderDark3: DeadSpiderDark
{

States
    {
    Spawn:
		AR4C p -1
        Stop
}}

Actor DeadSpiderDark4: DeadSpiderDark
{

States
    {
    Spawn:
		AR4C W -1
        Stop
}}

Actor XDeadSpider2: DeadSpiderDark
{
	States{Spawn:
        ARAC W -1
        Stop
		Stop}}

ACTOR ArachnoTurretFrame2
{
	Radius 32
	Height 60
	Health 100
	Scale 1.4
	DamageFactor "Fatality", 2.0
	+SHOOTABLE
    -SOLID
	+FLOORCLIP
    +NOTELEPORT
    +MOVEWITHSECTOR
    +CORPSE

	States
	{
		Spawn:
		ARA2 B 6 A_CustomMissile ("PlasmaSmoke", 30, 0, random (0, 360), 2, random (70, 110))
		TNT1 A 0 A_SpawnItem("Spark_UpOnce", 0, 15)
		TNT1 A 0 A_SpawnItem ("ShoqueAzul", 0, 17)
		ARAC X 6 A_CustomMissile ("PlasmaSmoke", 30, 0, random (0, 360), 2, random (70, 110))
		ARAC XX 6 A_CustomMissile ("PlasmaSmoke", 30, 0, random (0, 360), 2, random (70, 110))
		TNT1 A 0 A_SpawnItem("Spark_UpOnce", 0, 15)
		TNT1 A 0 A_SpawnItem ("ShoqueAzul", 0, 17)
		ARAC X 6 A_CustomMissile ("PlasmaSmoke", 30, 0, random (0, 360), 2, random (70, 110))
		ARA2 BB 2 A_CustomMissile ("PlasmaSmoke", 30, 0, random (0, 360), 2, random (70, 110))
		TNT1 A 0 A_SpawnItem("Spark_UpOnce", 0, 15)
		TNT1 A 0 A_SpawnItem ("ShoqueAzul", 0, 17)
		ARAC X 6 A_CustomMissile ("PlasmaSmoke", 30, 0, random (0, 360), 2, random (70, 110))
		ARA2 BB 6 A_CustomMissile ("PlasmaSmoke", 30, 0, random (0, 360), 2, random (70, 110))
		TNT1 A 0 A_SpawnItem("Spark_UpOnce", 0, 15)
		TNT1 A 0 A_SpawnItem ("ShoqueAzul", 0, 17)
		ARAC X 6 A_CustomMissile ("PlasmaSmoke", 30, 0, random (0, 360), 2, random (70, 110))
		ARA2 BB 4 A_CustomMissile ("PlasmaSmoke", 30, 0, random (0, 360), 2, random (70, 110))
		TNT1 A 0 A_SpawnItem("Spark_UpOnce", 0, 15)
		TNT1 A 0 A_SpawnItem ("ShoqueAzul", 0, 17)
		ARA2 B 6 A_CustomMissile ("PlasmaSmoke", 30, 0, random (0, 360), 2, random (70, 110))
		ARAC XX 6 A_CustomMissile ("PlasmaSmoke", 30, 0, random (0, 360), 2, random (70, 110))
		TNT1 A 0 A_SpawnItem("Spark_UpOnce", 0, 15)
		TNT1 A 0 A_SpawnItem ("ShoqueAzul", 0, 17)
		ARAC X 6 A_CustomMissile ("PlasmaSmoke", 30, 0, random (0, 360), 2, random (70, 110))
		ARA2 BB 2 A_CustomMissile ("PlasmaSmoke", 30, 0, random (0, 360), 2, random (70, 110))
		TNT1 A 0 A_SpawnItem("Spark_UpOnce", 0, 15)
		TNT1 A 0 A_SpawnItem ("ShoqueAzul", 0, 17)
		ARAC X 1 A_CustomMissile ("PlasmaSmoke", 30, 0, random (0, 360), 2, random (70, 110))
		Goto Death

		Death:
		ARAC Z 6
		TNT1 A 0 A_SpawnItemEx("NoLegsSpider2", 0, 1, 1, 1, 1)
		stop
	}
}

Actor RapedArachnotron2: DeadSpiderDark

{
Scale 1.0 //sprite already scaled
Health 100 States{Spawn:
        ARF5 N -1
        Stop }}

ACTOR PurplePlasmaBall : EnemyPlasmaBall
{
	Radius 6
	Height 6
	Speed 30
	Scale 0.55
	DamageType Plasma
	Damage (random(32,32))
	Decal StunnerScorch
	RenderStyle Add
	SeeSound "PAILGF3"
	DeathSound "PAILGD3"
	Species "Arachnotron"
	Projectile
	+RANDOMIZE
	+FORCEXYBILLBOARD
	states
	{
	Spawn:
		PBAL HIHI 1 BRIGHT A_SpawnItem("PinkIonFlare")
		Loop
	Death:
	XDeath:
		TNT1 A 0 A_SpawnItem ("IonPuff", 0)
		TNT2 AAA 9 A_CustomMissile ("PlasmaSmoke", 1, 0, random (0, 360), 2, random (0, 160))
		Stop
	}
}

ACTOR IonPuff: BulletPuff
{
  RenderStyle Add
  Alpha 0.9
  +NOBLOCKMAP
  +NOGRAVITY
  +CLIENTSIDEONLY
  Scale 0.7
  states
  {
  Spawn:
	FIR4 ABCDE 1 Bright A_SpawnItem("PinkFlare" ,0)
	FIR4 FGHIJKLMNOP 1 Bright A_FadeOut(0.04)
    stop
  }
}

ACTOR SpiderLeg2
{
    Radius 8
    Height 8
	Speed 12
	Mass 1
    +NOBLOCKMAP
	+MISSILE
    +NOTELEPORT
    +DONTSPLASH
	+DOOMBOUNCE
    +MOVEWITHSECTOR
    +CLIENTSIDEONLY
	SeeSound "misc/xdeath4"
    DeathSound "misc/xdeath3"
	BounceFactor 0.3
	BounceCount 3
    States
    {
    Spawn:
	    TNT1 A 0 A_JumpIf(waterlevel > 1, "Death")
		XDS2 ABCDEFGH 2
		Loop
	Death:
	    XDS2 I 9009
		Stop
    }
}

ACTOR XDeathArachnotronHead2: XDeath1
{
    Speed 12
	Gravity 0.9
	+DONTSPLASH
    DeathSound "none"
	SeeSound "none"
	+SKYEXPLODE
	Decal none
    Scale 1.4
    States
    {
    Spawn:
	    NAHB ABCDEFGH 4
        Loop
    Death:
		TNT1 AAAAAAAAAAAA 0 A_CustomMissile ("SmallBrainPiece", 10, 0, random (0, 360), 2, random (0, 160))
		TNT1 AAAA 0 A_CustomMissile ("XDeath1", 10, 0, random (0, 360), 2, random (0, 160))
		NAHD IJKLMN 5
		NAHD N -5
	Stop
		Stop
    }
}