//===========================================================================
//
// Arachnotron
//
//===========================================================================
ACTOR Arachnotron2 Replaces Arachnotron
{
	Game Doom
	SpawnID 6
	Health 500
	GibHealth 50
	Radius 64
	Height 64
	Mass 600
	Speed 12
	PainChance 128
	Monster
	+FLOORCLIP
	+BOSSDEATH
	SeeSound "baby/sight"
	PainSound "baby/pain"
	DeathSound "baby/death"
	ActiveSound "baby/active"
	Obituary "$OB_BABY"
	States
	{
	Spawn:
		BSPI AB 10 A_Look
		Loop
	See:
		BSPI A 20
		BSPI A 3 A_BabyMetal
		BSPI ABBCC 3 A_Chase
		BSPI D 3 A_BabyMetal
		BSPI DEEFF 3 A_Chase
		Goto See+1
	Missile:
		BSPI A 20 BRIGHT A_FaceTarget
		BSPI G 4 BRIGHT A_BspiAttack
		BSPI H 4 BRIGHT
		BSPI H 1 BRIGHT A_SpidRefire
		Goto Missile+1
	Pain:
		BSPI I 3
		BSPI I 3 A_Pain
		Goto See+1
	Death:
		TNT1 A 0 A_CustomMissile("CeilingBloodChecker", 50,  0, random(0, 360), 2, random(60, 90))
		BSPI J 7 A_Scream
		TNT1 AA 0 A_CustomMissile("XDeath1b", 40,  0, random(0, 360), 2, random(45, 50))
		TNT1 AA 0 A_CustomMissile("FlyingBloodParticleFast", 60,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAAA 0 A_CustomMissile("FlyingBloodParticleBig", 50,  0, random(0, 360), 2, random(30, 90))
		TNT1 AA 0 A_CustomMissile("FlyingBloodParticleBig", 30,  0, random(0, 360), 2, random(10, 45))
		TNT1 A 0 A_CustomMissile("XDeath1", 20,  0, random(0, 360), 2, random(10, 45))
		TNT1 AAA 0 A_CustomMissile("XDeath2", 50,  0, random(0, 360), 2, random(10, 45))
		TNT1 AAA 0 A_CustomMissile("XDeath3", 50,  0, random(0, 360), 2, random(10, 45))
		BSPI K 7 A_NoBlocking
		BSPI LMNO 7
		BSPI P -1 A_BossDeath
		Stop

	XDeath:

		TNT1 AAA 0 A_CustomMissile("XDeath1b", 40,  0, random(0, 360), 2, random(45, 50))
		TNT1 AA 0 A_CustomMissile("FlyingBloodParticleFast", 60,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAAA 0 A_CustomMissile("FlyingBloodParticleBig", 50,  0, random(0, 360), 2, random(30, 90))
		TNT1 AA 0 A_CustomMissile("FlyingBloodParticleBig", 30,  0, random(0, 360), 2, random(10, 45))
		TNT1 A 0 A_CustomMissile("XDeath1", 20,  0, random(0, 360), 2, random(10, 45))
		TNT1 A 0 A_CustomMissile("XDeathSpiderLeg", 30,  0, random(0, 360), 2, random(10, 45))
		TNT1 AAA 0 A_CustomMissile("XDeath2", 50,  0, random(0, 360), 2, random(10, 45))
		TNT1 AAA 0 A_CustomMissile("XDeath3", 50,  0, random(0, 360), 2, random(10, 45))
		TNT1 AAAA 0 A_CustomMissile("XDeath1b", 50,  0, random(0, 360), 2, random(10, 45))
		XBSP A 7 A_Scream
		XBSP B 7 A_NoBlocking
		XBSP C 7
		XBSP D -1 A_BossDeath
		Stop
    Raise:
		BSPI P 5
		BSPI ONMLKJ 5
		Goto See+1

	Crush:
		TNT1 AAAAAAAAAA 0 A_CustomMissile("FlyingBloodParticleCrushed", 0,  0, random(0, 360), 2, random(0, 90))
		TNT1 AA 0 A_CustomMissile("XDeath2", 50,  0, random(0, 360), 2, random(10, 45))
		TNT1 AA 0 A_CustomMissile("XDeath3", 50,  0, random(0, 360), 2, random(10, 45))
		CRSH F 1
		CRSH F -1
		Stop
	}
}

//===========================================================================
//
// Arachnotron plasma
//
//===========================================================================
ACTOR ArachnotronPlasma22 Replaces ArachnotronPlasma
{
	Game Doom
	SpawnID 129
	Radius 13
	Height 8
	Speed 25
	Damage (random (18, 22))
	Projectile 
	+RANDOMIZE
	Alpha 0.75
	SeeSound "baby/attack"
	DeathSound "baby/shotx"
	States
	{
	Spawn:
		APLS AB 5 BRIGHT
		Loop
	Death:
		APBX ABCDE 5 BRIGHT
		Stop
	}
}


