// Cyber Baron created by Ben2k9/Virtue


ACTOR Cyberbaron : FPlus_Monster 10000
{
spawnid 204
  obituary "%o was splayed by a cyber baron"
  hitobituary "%o was ripped to shreds by a cyber baron"
  health 1000
  radius 24
  height 64
  mass 1000
  speed 12
  painchance 40
  seesound "cbaron/sight"
  painsound "cbaron/pain"
  deathsound "cbaron/death"
  activesound "cbaron/active"
  states
  {
  Spawn:
    CBOS AB 10 A_Look
    goto Spawn
  See:
    CBOS A 3 A_chase
    CBOS A 3 A_chase   
    CBOS B 0 A_playsound("cbaron/metal")
    CBOS BB 3 A_chase
    CBOS CC 3 A_chase    
    CBOS D 3 A_chase
    CBOS D 3 A_hoof
    goto See
  Melee:
    CBOS PQ 8 A_FaceTarget
    CBOS R 8 A_BruisAttack
      Goto See
  Missile:
    CBOS E 0 A_jump(115,5)
    CBOS E 10 A_FaceTarget
    CBOS E 10 A_FaceTarget
    CBOS F 10 Bright A_customMissile(cyberattack2,27,16,0)
    CBOS E 10 A_FaceTarget
      goto See
    CBOS PQ 8 A_FaceTarget
    CBOS R 8 A_BruisAttack
      Goto See      
 Pain:
    CBOS H 2
    CBOS H 2 A_Pain
    goto See

  MonDeath:
    CBOS I 8
    CBOS J 8 A_Scream
    CBOS K 8 bright A_Playsound("world/barrelx")
    CBOS L 8 bright A_NoBlocking
    CBOS M 8 bright
    CBOS N 8 bright
	CBOS O 1
    goto Super::FadeOut.NoRaise
   }
}          
  
ACTOR Cyberattack2 : rocket
{
	Radius 4
	Height 8
	Speed 24
	Damage 10
	+RANDOMIZE
	-DEHEXPLOSION
	+ROCKETTRAIL
	+STRIFEDAMAGE
	+MTHRUSPECIES
	States
	{
	Death:
		MISL B 8 Bright A_Explode(60,128,0,0,32)
		MISL C 6 Bright
		MISL D 4 Bright
		Stop
	}
}