actor DTechSpider : Arachnotron
{
  obituary "%o was eliminated by a Demon Tech Spider."
  health 1000
  radius 26
  height 64
  mass 600
  speed 12
  Scale 1.2
  painchance 80
  BloodColor "DarkGreen"
  DropItem "Demon Tech Rifle" 256 1
  DropItem "LifeEssence" 140
  DropItem "ArmorBonusMax" 140
  SeeSound "minidemo/sight"
  ActiveSound "minidemo/active"
  PainSound "monsters/fusionitepain"
  DeathSound "minidemo/death"
  DamageFactor "Baby15K", 0.0
  Species "BabySpiders"
  Tag "Demon Tech Spider"
  MONSTER
  +MissileMore
  +QUICKTORETALIATE
  states
  {
  Spawn:
    DTSD A 10 A_Look
    loop
  See:
    TNT1 A 0 A_Jump(62,"Rush")
    DTSD A 2 A_BabyMetal
    DTSD ABBCC 2 A_Chase
    DTSD D 2 A_BabyMetal
    DTSD DEEFF 2 A_Chase
   Loop
    Rush:
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("DTSpidGhostA",0,0,0,0,0,0,0,128)
	DTSD A 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("DTSpidGhostA",0,0,0,0,0,0,0,128)		
	DTSD A 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("DTSpidGhostB",0,0,0,0,0,0,0,128)
	DTSD B 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("DTSpidGhostB",0,0,0,0,0,0,0,128)
	DTSD B 1 A_Chase
	TNT1 A 0 A_Metal		
	TNT1 A 0 A_SpawnItemEx("DTSpidGhostC",0,0,0,0,0,0,0,128)
	DTSD C 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("DTSpidGhostC",0,0,0,0,0,0,0,128)
	DTSD C 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("DTSpidGhostD",0,0,0,0,0,0,0,128)
	DTSD D 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("DTSpidGhostD",0,0,0,0,0,0,0,128)
	DTSD D 1 A_Chase
	TNT1 A 0 A_Metal		
	TNT1 A 0 A_SpawnItemEx("DTSpidGhostE",0,0,0,0,0,0,0,128)
	DTSD E 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("DTSpidGhostE",0,0,0,0,0,0,0,128)
	DTSD E 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("DTSpidGhostF",0,0,0,0,0,0,0,128)
	DTSD F 1 A_Chase
	TNT1 A 0 A_SpawnItemEx("DTSpidGhostF",0,0,0,0,0,0,0,128)
	DTSD F 1 A_Chase	
	TNT1 A 0 A_Jump(84,"See")		
	Loop	
  Missile:
	DTSD G 10 A_FaceTarget
	DTSD G 2 A_FaceTarget
	TNT1 A 0 A_CustomMissile("DTSDemonTechProjectile",28,0,Random(150,-150)/100.00,0)
	DTSD H 2 Bright A_PlaySoundEx("weapons/demontechfire","Weapon")
	TNT1 A 0 A_Jump(6,"Pause")
	TNT1 A 0 A_SpidRefire
	Goto Missile+1
  Pause:
	DTSD G 15 A_PlaySound("weapons/demontechsteam")
	Goto See	 
  Pain:
    DTSD I 3
    DTSD I 3 A_Pain
    goto See+1
  Death:
    DTSD J 20 A_Scream
    DTSD K 7 A_NoBlocking
	TNT1 AAA 0 A_SpawnItemEx("GreenGibbedGenerator",0,0,0,0,0,0,0,128,0)
	TNT1 AAAA 0 A_CustomMissile("SmokeFX2", random(20,40), 0, random(0,360), 2, random(0,360))
    DTSD LMNO 7 Bright A_CustomMissile("Kaboom5", random(20,40), random(10,-10), random(0,360), 2, random(0,360))
    DTSD P -1 A_BossDeath
    stop
  Raise:
    TNT1 A 0
	TNT1 A 0 A_SpawnItemEx("VileHealEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
    DTSD PONMLKJ 5
    goto See+1
  }
}

ACTOR DTSDemonTechProjectile : ZDemonTechProjectile
{
   DamageType "Baby15k"
}

ACTOR DTSpidGhostA
{
RENDERSTYLE Translucent
Alpha 0.75
Scale 1.2
+NOGRAVITY
+CLIENTSIDEONLY
+DONTSPLASH
+NOINTERACTION
+NOCLIP
States
{
Spawn:
    DTSD A 2 A_FadeOut(0.18)
    Loop
    }
}

ACTOR DTSpidGhostB : DTSpidGhostA
{
States
{
Spawn:
    DTSD B 2 A_FadeOut(0.18)
    Loop
    }
}

ACTOR DTSpidGhostC : DTSpidGhostA
{
States
{
Spawn:
    DTSD C 2 A_FadeOut(0.18)
    Loop
    }
}

ACTOR DTSpidGhostD : DTSpidGhostA
{
States
{
Spawn:
    DTSD D 2 A_FadeOut(0.18)
    Loop
    }
}

ACTOR DTSpidGhostE : DTSpidGhostA
{
States
{
Spawn:
    DTSD E 2 A_FadeOut(0.18)
    Loop
    }
}

ACTOR DTSpidGhostF : DTSpidGhostA
{
States
{
Spawn:
    DTSD F 2 A_FadeOut(0.18)
    Loop
    }
}