actor MSpiderMastermind : SpiderMastermind replaces SpiderMastermind
{
  health 3000
  Radius 100
  height 100
  mass 1000
  speed 12
  
  PainChance "Control", 255
  DamageFactor "Control", 1
  
  // Takes damage from 
  DamageFactor "MarineDamage", 1
  DamageFactor "ImpBallDamage", 1
  DamageFactor "ZombiesDamage", 1
  DamageFactor "CacoDamage", 1
  DamageFactor "SkelDamage", 1
  DamageFactor "FatsoDamage", 1
  DamageFactor "KnightDamage", 1
  DamageFactor "ArachDamage", 1
  DamageFactor "viledamage", 1

  states
  {
  Spawn:
    SPID A 10 A_Look 
	SPID B 10 
	SPID A 0 Thing_SetSpecial (0,226,409,0,health)
    loop
  See:
    SPID A 3 A_Metal
    SPID ABB 3 A_Chase
    SPID C 3 A_Metal
    SPID CDD 3 A_Chase
    SPID E 3 A_Metal
    SPID EFF 3 A_Chase
    SPID A 0 A_JumpIf (special != 226,1) 
	loop	
	SPID A 0 Thing_SetSpecial (0,226,409,0,health)
	goto see 	
  Death.Control:
    TNT1 A 0 ACS_Execute(410,0,14)
	TNT1 A 10
	stop
  Death:
    SPID J 20 A_Scream
    SPID K 10 A_NoBlocking
    SPID LMNOPQR 10
    SPID S 30 A_GiveToTarget ("MarineExp",20)
    SPID S -1 A_BossDeath
    stop	
  }
}