// Controls various effects
ACTOR PowerJellyfish : Inventory { Inventory.MaxAmount 1 }
// ACTOR IsRaving : Inventory { Inventory.MaxAmount 1 }

ACTOR Jellyfish
{
  Health 30
  Radius 16
  Height 56
  Mass 50
  Speed 8
  Damage 0
  PainChance 0
  Monster
  +FLOAT
  +FLOATBOB
  +NOGRAVITY
  +DONTFALL
  +NOICEDEATH
  RenderStyle Translucent
  DeathSound "jellyfish/die"
  Obituary "%o learned what a jellyfish is." // "%o was spooked by a lost soul."
  States
  {
  Spawn:
    JFIS AB 10 Bright A_Look
    Loop
  See:
	JFIS A 0
	JFIS A 0 A_PlaySoundEx("jellyfish/loop","Body",true)
    JFIS AB 6 Bright A_Chase
    Goto See+2
  Missile:
    JFIS A 0
    Goto See
  Death:
    JFIS A 0
	JFIS A 0 A_StopSoundEx("Body")
	JFIS A 0 A_Scream
	TNT1 A 1
    Stop
  }
}