ACTOR BabyDDemolisher : Arachnotron 23336
{
  Health 1200
  PainChance 70
  Scale 1.2
  Speed 13
  Radius 52
  SeeSound "minidemo/sight"
  ActiveSound "minidemo/active"
  PainSound "monsters/fusionitepain"
  DeathSound "minidemo/death"
  AttackSound ""
  BloodColor "DarkGreen"
  DropItem "LifeEssence" 140
  DropItem "ArmorBonusMax" 140
  DropItem "DemonAmmoBox" 128 200
  DamageFactor "Baby15K", 0.0
  Species "BabySpiders"
  +MISSILEMORE
  +QUICKTORETALIATE
  Obituary "%o was annihilated by a Baby Dark Demolisher."
  Tag "Baby Dark Demolisher"
  States
  {
  Spawn:
    DMSP A 10 A_Look
    Loop
  See:
    TNT1 A 0 A_Jump(62,"Rush")
    DMSP A 2 A_BabyMetal
    DMSP ABBCC 2 A_Chase
    DMSP D 2 A_BabyMetal
    DMSP DEEFF 2 A_Chase
   Loop
   Rush:
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("BabyDDGhostA",0,0,0,0,0,0,0,128)
	DMSP A 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("BabyDDGhostA",0,0,0,0,0,0,0,128)		
	DMSP A 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("BabyDDGhostB",0,0,0,0,0,0,0,128)
	DMSP B 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("BabyDDGhostB",0,0,0,0,0,0,0,128)
	DMSP B 1 A_Chase
	TNT1 A 0 A_Metal		
	TNT1 A 0 A_SpawnItemEx("BabyDDGhostC",0,0,0,0,0,0,0,128)
	DMSP C 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("BabyDDGhostC",0,0,0,0,0,0,0,128)
	DMSP C 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("BabyDDGhostD",0,0,0,0,0,0,0,128)
	DMSP D 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("BabyDDGhostD",0,0,0,0,0,0,0,128)
	DMSP D 1 A_Chase
	TNT1 A 0 A_Metal		
	TNT1 A 0 A_SpawnItemEx("BabyDDGhostE",0,0,0,0,0,0,0,128)
	DMSP E 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("BabyDDGhostE",0,0,0,0,0,0,0,128)
	DMSP E 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("BabyDDGhostF",0,0,0,0,0,0,0,128)
	DMSP F 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("BabyDDGhostF",0,0,0,0,0,0,0,128)
	DMSP F 1 A_Chase	
	TNT1 A 0 A_Jump(84,"See")		
	Loop	
  Pause:
    DMSP A 10
    Goto See
  Missile:
    TNT1 A 0 A_Jump(70,"BFG10K")
  Normal:
    TNT1 A 0 A_PlaySound("monsters/darkmasterwind")
    DMSP A 13 A_FaceTarget
	TNT1 A 0 Bright A_PlaySound("monsters/darkmasterwind2")
	TNT1 A 0 Bright A_PlaySoundEx("weapons/minigunfire","Weapon")
	TNT1 A 0 Bright A_CustomMissile("MonsterTracer",Random(26,30),0,Random(5,-5),0)
	TNT1 A 0 Bright A_SpawnItemEx("RifleCasing", 8, 8, 18, Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
    DMSP Q 3 Bright A_CustomBulletAttack(20.0, 0, 1, Random(1,5)*3, "BabyPuff")
	TNT1 A 0 Bright A_PlaySoundEx("weapons/minigunfire","Weapon")	
    TNT1 A 0 Bright A_SpawnItemEx("RifleCasing", 8, -8, 18, Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
    DMSP R 2 Bright A_CustomBulletAttack(20.0, 0, 1, Random(1,5)*3, "BabyPuff")
	TNT1 A 0 A_Jump(3,"Pause","Missile")
    TNT1 A 0 A_SpidRefire
    Goto Normal+2
  BFG10K:
	TNT1 A 0 A_PlaySound("weapons/charge15k")
    DMSP G 16 Bright A_FaceTarget
	DMSP G 6 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
    DMSP H 4 Bright A_CustomMissile("BabyDemo10K",20,0,Random(4,-4)) 
    DMSP G 6 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
    DMSP H 4 Bright A_CustomMissile("BabyDemo10K",20,0,Random(4,-4)) 
    DMSP G 6 Bright A_FaceTarget	
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
    DMSP H 4 Bright A_CustomMissile("BabyDemo10K",20,0,Random(4,-4)) 	
    DMSP G 20 Bright A_PlaySound("weapons/bfg15kcooldown",CHAN_AUTO)
    Goto See
  Pain:
    TNT1 A 0 A_Jump(87,"PainMissile")
    DMSP I 10 A_Pain
    Goto See
  PainMissile:
	DMSP I 10 A_Pain
    Goto Missile
  Death:
    DMSP I 20 A_Scream
	DMSP J 6
	TNT1 AAA 0 A_SpawnItemEx("GreenGibbedGenerator",0,0,0,0,0,0,0,128,0)
	DMS2 KKKKK 2 Bright A_CustomMissile("Kaboom5", random(20,40), random(10,-10), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_CustomMissile("SmokeFX2", random(20,40), 0, random(0,360), 2, random(0,360))
    DMSP L 6 A_NoBlocking
    DMSP MN 6
    DMSP O 6
    DMSP P -1 A_KillMaster
    Stop
  Raise:
  	TNT1 A 0
	TNT1 A 0 A_SpawnItemEx("VileHealEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
    DMSP PONMLKJ 5
    Goto See+1
  }
}

ACTOR BabyDDGhostA
{
RENDERSTYLE Translucent
Alpha 0.75
Scale 1.2
+NOGRAVITY
+CLIENTSIDEONLY
+DONTSPLASH
+NOINTERACTION
+NOCLIP
States
{
Spawn:
    TNT1 A 0 
	TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Toaster")
    DMSP A 2 A_FadeOut(0.18)
    Loop
Toaster:
    TNT1 A 0
	Stop
    }
}

ACTOR BabyDDGhostB : BabyDDGhostA
{
States
{
Spawn:
    DMSP B 2 A_FadeOut(0.18)
    Loop
    }
}

ACTOR BabyDDGhostC : BabyDDGhostA
{
States
{
Spawn:
    DMSP C 2 A_FadeOut(0.18)
    Loop
    }
}

ACTOR BabyDDGhostD : BabyDDGhostA
{
States
{
Spawn:
    DMSP D 2 A_FadeOut(0.18)
    Loop
    }
}

ACTOR BabyDDGhostE : BabyDDGhostA
{
States
{
Spawn:
    DMSP E 2 A_FadeOut(0.18)
    Loop
    }
}

ACTOR BabyDDGhostF : BabyDDGhostA
{
States
{
Spawn:
    DMSP F 2 A_FadeOut(0.18)
    Loop
    }
}

ACTOR BabyDemo10K : 10KProjectile
{
-ThruSpecies
States
{
Death:
XDeath:  
   TNT1 A 0
      TNT1 A 1 A_SpawnItem("BabyDemo10KEx")
   Stop
   }
}
ACTOR BabyDemo10KEx : DarkDemo10KEx
{
Obituary "%o was annihilated by a Baby Dark Demolisher."
DamageType "Baby15K"
}