ACTOR Arachnocubus : Behemoth
{
//Creator: NaturalxCF
//Origin: Nexus Infinity
//Sprite: FTBS
//Title: "Arachnocubus" 
  Health 1100
  Speed 9
  PainChance 40
  SeeSound "cubus1"
  PainSound "cubus4"
  DeathSound "cubus2"
  ActiveSound "cubus3"
  Obituary "%o couldn't evade the arachnocubus combo."
  Tag "Arachnocubus"
  States
  {
  Spawn:
    FTBS AB 15 A_Look
    Loop
  See:
    FTBS A 20
    FTBS A 3 A_Metal
    FTBS ABBCC 3 A_Chase
    FTBS D 3 A_Metal
    FTBS DEEFF 3 A_Chase
    Goto See+1
  Missile:
    NULL A 0 A_Jump(256, "Dual", "Fatso", "Arachno")
  Dual:	
	NULL A 0 A_FaceTarget
	FTBS G 20 Bright A_PlaySound("cubus5")
    FTBS H 0 A_CustomMissile("DualaPlasma", 19, 0, random(-10, 10))
    FTBS H 10 Bright A_FatAttack1   
	TNT1 A 0 A_PlaySound("dualach/plasma")
    FTBS H 0 A_CustomMissile("DualaPlasma", 19, 0, random(-10, 10))	
	FTBS S 5 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("dualach/plasma")
    FTBS H 0 A_CustomMissile("DualaPlasma", 19, 0, random(-10, 10))	
	FTBS G 5 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("dualach/plasma")
    FTBS H 0 A_CustomMissile("DualaPlasma", 19, 0, random(-10, 10))
    FTBS H 10 Bright A_FatAttack2 
	TNT1 A 0 A_PlaySound("dualach/plasma")
    FTBS H 0 A_CustomMissile("DualaPlasma", 19, 0, random(-10, 10))	
	FTBS S 5 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("dualach/plasma")
    FTBS H 0 A_CustomMissile("DualaPlasma", 19, 0, random(-10, 10))	
	FTBS G 5 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("dualach/plasma")
    FTBS H 0 A_CustomMissile("DualaPlasma", 19, 0, random(-10, 10))
    FTBS H 10 Bright A_FatAttack3  
	TNT1 A 0 A_PlaySound("dualach/plasma")
    FTBS H 0 A_CustomMissile("DualaPlasma", 19, 0, random(-10, 10))	
	FTBS S 5 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("dualach/plasma")
    FTBS H 0 A_CustomMissile("DualaPlasma", 19, 0, random(-10, 10))	
	FTBS G 5 Bright A_SpidReFire
	Goto Dual+2
  Fatso:	
	NULL A 0 A_FaceTarget
	FTBS G 20 Bright A_PlaySound("cubus5")
	TNT1 A 0 A_CustomMissile("HectebusBall", 30, 30, 0)
	FTBS U 10 Bright A_CustomMissile("HectebusBall", 30, -30, 12)  	
	FTBS V 5 Bright A_FaceTarget
	FTBS G 5 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("HectebusBall", 30, 30, -12)
	FTBS U 10 Bright A_CustomMissile("HectebusBall", 30, -30, 0)
	FTBS V 5 Bright A_FaceTarget
	FTBS G 5 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("HectebusBall", 30, 30, -6)
	FTBS U 2 Bright A_CustomMissile("HectebusBall", 30, -30, 6)
	TNT1 A 0 A_CustomMissile("HectebusBall", 30, 30, -12)
	FTBS U 8 Bright A_CustomMissile("HectebusBall", 30, -30, 12)	 
	FTBS V 5 Bright A_FaceTarget	
	FTBS G 5 Bright A_SpidReFire
	Goto Fatso+2    
  Arachno:	
	NULL A 0 A_FaceTarget
	FTBS G 20 Bright A_PlaySound("cubus5")
	TNT1 A 0 A_PlaySound("dualach/plasma")
    FTBS W 4 Bright A_CustomMissile("DualaPlasma", 19, 0, 0) 
	TNT1 A 0 A_PlaySound("dualach/plasma") 	
	FTBS S 0 A_CustomMissile("DualaPlasma", 19, 0, 0)  
	FTBS S 5 Bright A_SpidReFire	
	Goto Arachno+2     
  Death:
    NULL A 0 A_SpawnItemEX("MancubusArm", 0, 30, 30, random(-4, 4), random(10, 4), random(-1, 8))
	FTBS I 8 A_Scream
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",0,0,0,0,0,0,0,128,0)
    TNT1 A 0 A_Noblocking
    FTBS JJJJJ 2 Bright A_CustomMissile("Kaboom2", 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))
    FTBS KLMNOPQ 4
    FTBS R -1 A_BossDeath
    Stop
  Pain:
    FTBS T 3
    FTBS T 3 A_Pain
    Goto See+1 
  Raise:
    FTBS RQPONMLKJI 5
    Goto See+1
  }
}

actor MancubusArm
{
   radius 16
   height 6
   bouncesound "armbo"
   PROJECTILE
   -NOGRAVITY
   +BOUNCEONWALLS
   +BOUNCEONFLOORS
   +BOUNCEAUTOOFFFLOORONLY
   damage 0
   speed 8
   States
   {
     Spawn:
	   MARM ABCD 3
	   loop
	 Death:
	   NULL A 0 A_Jump(256, "V1", "V2")
	 V1:
	   MARM B -1
	   stop
	 V2:
	   MARM D -1
	   stop
  }
}