ACTOR Catharsi 29123
{
//$Category Stronghold_Monsters
  painchance "Stunner", 255

  SpawnId 230
  OBITUARY "%o was blasted by a catharsi."
  Health 120
  Radius 20
  Height 56
  Mass 100
  Speed 8
  PainChance 140
  SEESOUND "catharsi/sit"
  PAINSOUND "catharsi/pain"
  DEATHSOUND "catharsi/death"
  ACTIVESOUND "imp/active"
  MONSTER
  +FloorClip
  Tag "Catharsi"
  states
  {
  Spawn:
    SDDM AB 10 A_Look
    Loop
  See:
    SDDM AABBCCDD 3 A_Chase
    Loop
  Missile:
    SDDM E 0 A_Jump(128, 15)
    SDDM E 4
    SDDM E 10 A_FaceTarget
    SDDM F 2 BRIGHT A_CustomMissile("CatharsiBall", 30, 8, -4, 0)
    SDDM E 2
    SDDM F 2 BRIGHT A_CustomMissile("CatharsiBall", 30, 8, 0, 0)
    SDDM E 2
    SDDM F 2 BRIGHT A_CustomMissile("CatharsiBall", 30, 8, 4, 0)
    SDDM E 2      
    SDDM F 2 BRIGHT A_CustomMissile("CatharsiBall", 30, 8, 8, 0)
    SDDM E 2
    SDDM F 2 BRIGHT A_CustomMissile("CatharsiBall", 30, 8, 12, 0)
    SDDM E 2
    SDDM F 2 BRIGHT A_CustomMissile("CatharsiBall", 30, 8, 16, 0)
    SDDM E 2
    Goto See 
    SDDM E 4
    SDDM E 10 A_FaceTarget
    SDDM F 2 BRIGHT A_CustomMissile("CatharsiBall", 30, 8, 4, 0)
    SDDM E 2
    SDDM F 2 BRIGHT A_CustomMissile("CatharsiBall", 30, 8, 0, 0)
    SDDM E 2
    SDDM F 2 BRIGHT A_CustomMissile("CatharsiBall", 30, 8, -4, 0)
    SDDM E 2      
    SDDM F 2 BRIGHT A_CustomMissile("CatharsiBall", 30, 8, -8, 0)
    SDDM E 2
    SDDM F 2 BRIGHT A_CustomMissile("CatharsiBall", 30, 8, -12, 0)
    SDDM E 2
    SDDM F 2 BRIGHT A_CustomMissile("CatharsiBall", 30, 8, -16, 0)
    SDDM E 2
    Goto See
  Pain:
    SDDM G 3
    SDDM G 3 A_Pain
    Goto See
  Pain.Stunner:
       SDDM G 2 A_ChangeFlag("NoPain", 1)
       SDDM G 300 A_Pain
       SDDM G 0 A_ChangeFlag("NoPain", 0)
       goto See
  Death:
    TNT1 A 0 A_GiveToTarget("AwardItem", 6)
    SDDM H 5
    SDDM I 5 A_Scream
    SDDM J 5 A_NoBlocking  
    SDDM J 0 A_SpawnItem("CatharsiDetonator", 0, 30)
    SDDM KLM 5
    SDDM N 3000 CanRaise
    SDDM NNNNNNNNNNNN 2 A_FadeOut(0.1)
    Stop
  XDeath:
    TNT1 A 0 A_GiveToTarget("AwardItem", 9)
    SDDM O 5
    SDDM P 5 A_XScream
    SDDM Q 5 A_NoBlocking
    SDDM RSTUV 5
    SDDM W 3000 CanRaise
    SDDM WWWWWWWWWWWW 2 A_FadeOut(0.1)
    Stop
  Raise:
    SDDM NMLKJIH 5
    Goto See
  }
}

ACTOR CatharsiBall
{
  Radius 6
  Height 8
  Speed 15
  Damage 3
  RENDERSTYLE Add
  SEESOUND "catharsi/shotsit"
  DEATHSOUND "catharsi/shotdth"
  PROJECTILE
  +Randomize
  states
  {
  Spawn:
	SDFB A 4 BRIGHT
    Loop
  Death:
	SDFB BCDE 6 BRIGHT
    stop
  }
}

ACTOR CatharsiDetonator
{
	Radius 6
	Height 8
	Speed 0
	Health 150
	SEESOUND "catharsi/shotsit"
	DEATHSOUND "catharsi/shotdth"
	+SOLID
	+ISMONSTER
	+SHOOTABLE
	+FloatBob
	+Randomize
	+NoGravity
	+NoBlood
	states
	{
	Spawn:
		THRM A 4 A_PlaySound("catharsi/thermtick")
		THRM B 16 
		THRM A 4 A_PlaySound("catharsi/thermtick")
		THRM B 16
		THRM A 4 A_PlaySound("catharsi/thermtick")
		THRM B 16
		THRM A 4 A_PlaySound("catharsi/thermtick")  
		THRM B 16
		THRM A 4 A_PlaySound("catharsi/thermtick")  
		THRM B 16  
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 0)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 20)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 40)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 60)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 80)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 100)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 120)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 140)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 160)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 180)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 200)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 220)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 240)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 260)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 280)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 300)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 320)
		SDFB B 0 A_CustomMissile("CatharsiBall", 4, 2, 340)
		SDFB BCDE 6 BRIGHT A_Die
		Stop
	Death:
		TNT1 A 0
		TNT1 A 0 A_GiveToTarget("AwardItem", 25)
		Stop
	}
}
