actor Helemental : RGAMonster
{
  obituary "%o was electrocuted by a Hades-Elemental."
  hitobituary "%o got chomped by a Hades-Elemental."
  health 3300
  radius 34
  height 64
  mass 800
  speed 16
  painchance 32
  MeleeDamage 10
  DamageType normal
  seesound "monster/helsit"
  painsound "monster/helpai"
  deathsound "monster/heldth"
  activesound "monster/helact"
  meleesound "caco/melee"
  MONSTER
  +FLOAT
  +NOGRAVITY
  +BOSS
  +MISSILEEVENMORE
  +NOTARGET
  +DONTHURTSPECIES
  +NORADIUSDMG
  DropItem "SoulSphere2"
  DropItem "AmmoSphere2" 128
  states
  {
  Spawn:
	HELE A 0
    HELE A 0 Thing_SetSpecial(0,226,613,0,random(300,350))
    POSS A 0 A_GiveInventory("XPAmount", random(300, 250))
    POSS P 0 ACS_ExecuteAlways(651,0,0,0,0)
	HELE A 10 A_Look
    goto Spawn+4
  See:
    HELE A 0 A_SetShootable
    HELE AAAAAAAAAAAA 3 A_Chase
    HELE A 0 A_Jump(72,1)
    goto See+1
    HELE A 0 A_UnSetshootable
    HELE A 1 A_PlaySound("monster/heltel")
    HELE A 1 A_SetTranslucent(0.90)
    HELE A 1 A_SetTranslucent(0.80)
    HELE A 1 A_SetTranslucent(0.70)
    HELE A 1 A_SetTranslucent(0.60)
    HELE A 1 A_SetTranslucent(0.50)
    HELE A 1 A_SetTranslucent(0.40)
    HELE A 1 A_SetTranslucent(0.30)
    HELE A 1 A_SetTranslucent(0.20)
    HELE A 1 A_SetTranslucent(0.10)
    NULL A 0 A_Jump(128,25)
    NULL AAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
    NULL A 0 A_Jump(128,25)
    NULL AAAAAAAAAAAAAAAAAAAAAAAA 0 A_ExtChase(0,0,1,1)
    HELE A 1 A_PlaySound("monster/heltel")
    HELE A 1 A_SetTranslucent(0.10)
    HELE A 1 A_SetTranslucent(0.20)
    HELE A 1 A_SetTranslucent(0.30)
    HELE A 1 A_SetTranslucent(0.40)
    HELE A 1 A_SetTranslucent(0.50)
    HELE A 1 A_SetTranslucent(0.60)
    HELE A 1 A_SetTranslucent(0.70)
    HELE A 1 A_SetTranslucent(0.80)
    HELE A 1 A_SetTranslucent(0.90)
    HELE A 1 A_SetTranslucent(1.0)
    HELE A 0 A_SetShootable
    goto See
  Missile:
    HELE A 0 A_Jump(80,1)
    goto Missile1
    HELE A 0 A_Jump(128,1)
    goto Missile2
    HELE A 0
    Goto Missile3
  Missile1:
    HELE EF 5 Bright A_Facetarget
    HELE G 0 Bright A_CustomMissile("HadesBall",24,0,-10,0,0)
    HELE G 0 Bright A_CustomMissile("HadesBall",24,0,-5,0,0)
    HELE G 0 Bright A_CustomMissile("HadesBall",24,0,0,0,0)
    HELE G 0 Bright A_CustomMissile("HadesBall",24,0,5,0,0)
    HELE G 5 Bright A_CustomMissile("HadesBall",24,0,10,0,0)
    goto See+1
  Missile2:
    HELE EF 5 Bright A_Facetarget
    HELE G 0 Bright A_CustomMissile("HadesBolt",32,0,-16,0,0)
    HELE G 0 Bright A_CustomMissile("HadesBolt",32,0,0,0,0)
    HELE G 5 Bright A_CustomMissile("HadesBolt",32,0,16,0,0)
    goto See+1
  Missile3:
    HELE BC 5 Bright A_Facetarget
    HELE D 5 Bright A_DualPainAttack("HS")
    goto See+1
  Melee:
    HELE ABD 5 Bright A_Facetarget
    HELE C 5 Bright A_MeleeAttack
    goto See+1
  Pain:
    HELE H 3
    HELE H 3 A_Pain
    HELE H 6
    goto See
  Death:
    HELE I 5 Bright A_Scream
    HELE JKL 5 Bright
    HELE M 5 Bright A_NoBlocking
    HELE M 0 ACS_ExecuteAlways(648,0,0,0,0)
    HELE M 0 Bright A_SpawnItemEx("HS",36,36)
    HELE M 0 Bright A_SpawnItemEx("HS",-36,36)
    HELE M 0 Bright A_SpawnItemEx("HS",-36,-36)
    HELE M 0 Bright A_SpawnItemEx("HS",36,-36)
    HELE NOP 5 Bright 
    HELE QRSTU 5 
    HELE V -1 A_SetFloorClip
    stop
  }
}

ACTOR HadesBolt : CacodemonBall
{
   Damage 5
   Speed 5
   Radius 8
   Height 8
   Damagetype lightning
   SeeSound "weapons/none"
   DeathSound "weapons/gntidl"
   YScale 4.0
   XScale 2.0
   ReactionTime 35
   +FLOORHUGGER
   +HEXENBOUNCE
   +RIPPER
   -NOGRAVITY
   -STRIFEDAMAGE
   States
   {
   Spawn:
      LFX2 F 1 Bright A_Explode(16,64,0)
      LFX2 F 0 Bright A_CustomMissile("HadesBolt2",0,0,0,6,90)
      LFX2 F 0 ThrustThing(random(0,255),1,0,0)
      LFX2 G 1 Bright A_Explode(16,64,0)
      LFX2 G 0 Bright A_CustomMissile("HadesBolt2",0,0,0,6,90)
      LFX2 H 1 Bright A_Explode(16,64,0)
      LFX2 H 0 Bright A_CustomMissile("HadesBolt2",0,0,0,6,90)
      LFX2 I 1 Bright A_Explode(16,64,0)
      LFX2 I 0 Bright A_CustomMissile("HadesBolt2",0,0,0,6,90)
      LFX2 J 1 Bright A_Explode(16,64,0)
      LFX2 J 0 Bright A_CustomMissile("HadesBolt2",0,0,0,6,90)
      LFX2 J 0 Bright A_CountDown
      loop
   Death:
      LFX2 FGHIJ 2 Bright A_Explode(32,64,0)
      stop
   }
}

ACTOR HadesBolt2 : CacodemonBall
{
Damage 0
Speed 184
RenderStyle None
DamageType lightning
+THRUGHOST
+RIPPER
SeeSound "Monster/hadtel"
DeathSound "Monster/hadsit"
 states
  {
  Spawn:
    NULL A 1 bright A_Explode(16,64,0)
    loop
  Death:
    NULL A 1 bright
    stop
  }
}