ACTOR LegendaryUltraSphere : CustomInventory
{
  Inventory.PickupSound "legmegasphere/pickup"
  Inventory.Pickupmessage "You got the Legendary UltraSphere!  You cheeky cunt!"
  +FLOATBOB
  +COUNTITEM
  +INVENTORY.BIGPOWERUP
  -INVENTORY.ALWAYSPICKUP
  -FLOAT
  +NOTIMEFREEZE
  ActiveSound "legendarymegasphere/idle"
  States
  {
  Spawn:
    TNT1 A 0 A_CustomMissile ("YellowSparkleSpawner", 0, 0, random(0,-360), 2, random(0,360))
	TNT1 A 0 A_LoopActiveSound
	TNT1 A 0 A_CustomMissile ("YellowSparkleSpawner", 0, 0, random(0,-360), 2, random(0,360)) 
	LLDS ABCDCB 10 Bright A_CustomMissile ("LegendarySphereFlameSpawner", -20, 0, random(0,-360), 2, random(0,360)) 
	Loop
  Pickup:
    TNT1 A 0 A_GiveInventory("LegendarySphereHealth", 1)
    TNT1 A 0 A_GiveInventory("LegendaryArmor", 1)
	TNT1 A 0 A_GiveInventory("ModdedBackpack", 1)
	TNT1 A 0 A_GiveInventory("BulletMag", 400)
    TNT1 A 0 A_GiveInventory("NewShell", 100)
	TNT1 A 0 A_GiveInventory("Missile", 100)
    TNT1 A 0 A_GiveInventory("NewCell", 600)
	TNT1 A 0 A_GiveInventory("DemonAmmo", 600)
	TNT1 A 0 A_GiveInventory("HandGrenadeAmmo", 8)
	TNT1 A 0 A_GiveInventory("MineAmmo", 6)
    TNT1 A 0 A_GiveInventory("LDemonAmmo", 500)
	TNT1 A 0 A_GiveInventory("LegendaryShell",90)
	TNT1 A 0 A_GiveInventory("LegendaryBulletMag",300)
	TNT1 A 1 A_StopSound
	Stop
  }
}