ACTOR Arachnobaron
{
        Health 800
	Radius 64
	Height 70
	Speed 12
	PainChance 20
	Mass 1000
        SeeSound "baron/sight"
    	PainSound "baron/pain"
    	DeathSound "arachnobaron/death"
    	ActiveSound "baby/active"
        bloodcolor green
	MONSTER
	+FLOORCLIP
        +BOSS
        +MISSILEMORE
        +MISSILEEVENMORE
	+DONTMORPH
	Obituary "%o was sprayed by an Arachnobaron."
	Species "Spider"
	States
	{
	Spawn:
    POSS A 0 
    POSS A 0 Thing_SetSpecial(0,226,613,0,random(100,200))
    POSS A 0 A_GiveInventory("XPAmount", random(100, 200))
    POSS P 0 ACS_ExecuteAlways(651,0,0,0,0)
		ARBR AB 10 A_Look
		goto Spawn + 4
	See:
		ARBR A 3 A_BabyMetal
		ARBR ABBCC 3 A_Chase
		ARBR D 3 A_BabyMetal
		ARBR DEEFF 3 A_Chase
		Goto See
	Pain:
		TNT1 G 0 A_AlertMonsters
		goto See
	Missile:
		ARBR A 1 BRIGHT A_Jump (0,"Missile2")
                ARBR A 20 BRIGHT A_FaceTarget 
		ARBR G 0 BRIGHT A_Custommissile ("SpiderBFGBlasterBall", 15, 0, random(-5,5))
		ARBR G 0 BRIGHT A_Custommissile ("SpiderBFGBlasterBall", 15, 0, random(-5,5))
		ARBR G 0 BRIGHT A_Custommissile ("SpiderBFGBlasterBall", 15, 0, random(-5,5))
		ARBR H 3 BRIGHT
		ARBR H 1 BRIGHT A_SpidRefire
		Goto Missile+2
	Missile2:
		ARBR P 2 BRIGHT A_FaceTarget
                ARBR P 5 BRIGHT A_Custommissile ("BaronBall", 30, 0, 5)
		ARBR Q 5 BRIGHT A_Custommissile ("BaronBall", 30, 0, 0)
                ARBR R 5 BRIGHT A_Custommissile ("BaronBall", 30, 0, -5)
		Goto See+1
	Death:
		ARBR J 20 A_Scream
		ARBR K 7 A_NoBlocking
		ARBR K 0 ACS_ExecuteAlways(648,0,0,0,0)
		ARBR LMNO 7
		ARBR O -1 A_BossDeath
		Stop
    Raise:
		ARBR O 5
		ARBR ONMLKJ 5
		Goto See+1
	}
}
