// Rage

ACTOR RageSphere : CustomInventory
{
  +FLOAT
  +FLOATBOB
  +COUNTITEM
  +INVENTORY.AUTOACTIVATE
  +INVENTORY.ALWAYSPICKUP
  -INVENTORY.INVBAR
  Inventory.PickupSound "misc/impkup"
  Inventory.PickupMessage "RAGE!"
  Inventory.PickupAnnouncerEntry "rage"
  Inventory.RespawnTics 3150
  States
  {
  Spawn:
    BLDS ABCD 6 Bright
    Loop
  Pickup:
	TNT1 A 0 A_TakeInventory("PowerPickupProtection")
	TNT1 A 0 A_GiveInventory("RageSphereInvulnerable")
	TNT1 A 0 A_GiveInventory("RageSphereIcon")
	TNT1 A 0 A_GiveInventory("RageArmor")
	TNT1 A 0 A_GiveInventory("RageSphereReflection")
	TNT1 A 0 A_Print("\n\nRAGE!!")
	TNT1 A 0 A_Jump(8,"Random16")
	TNT1 A 0 A_Jump(64,"Random6","Random7","Random8","Random9","Random10","Random11","Random12","Random13","Random14","Random15")
	TNT1 A 0 A_Jump(256, "Random1", "Random2", "Random3", "Random4", "Random5")
	Stop
	Random1:
	TNT1 A 0 A_GiveInventory("RageSphereDoubleFire")
	TNT1 A 0 A_GiveInventory("RageSphereSpeed")
	TNT1 A 0 A_GiveInventory("RageSphereHighJump")
	Stop
	Random2:
	TNT1 A 0 A_GiveInventory("RageSphereRegeneration")
	Stop
	Random3:
	TNT1 A 0 A_GiveInventory("RageSphereStrength")
	Stop
	Random4:
	TNT1 A 0 A_GiveInventory("RageSphereQuadDamage")
	TNT1 A 0 A_GiveInventory("DoomSphereShortIcon")
	Stop
	Random5:
	TNT1 A 0 A_GiveInventory("RageSphereInfiniteAmmo")
	Stop
	Random6:
	TNT1 A 0 A_GiveInventory("RageSphereDoubleFire")
	TNT1 A 0 A_GiveInventory("RageSphereSpeed")
	TNT1 A 0 A_GiveInventory("RageSphereHighJump")
	TNT1 A 0 A_GiveInventory("RageSphereRegeneration")
	Stop
	Random7:
	TNT1 A 0 A_GiveInventory("RageSphereDoubleFire")
	TNT1 A 0 A_GiveInventory("RageSphereSpeed")
	TNT1 A 0 A_GiveInventory("RageSphereHighJump")
	TNT1 A 0 A_GiveInventory("RageSphereStrength")
	Stop
	Random8:
	TNT1 A 0 A_GiveInventory("RageSphereDoubleFire")
	TNT1 A 0 A_GiveInventory("RageSphereSpeed")
	TNT1 A 0 A_GiveInventory("RageSphereHighJump")
	TNT1 A 0 A_GiveInventory("RageSphereQuadDamage")
	TNT1 A 0 A_GiveInventory("DoomSphereShortIcon")
	Stop
	Random9:
	TNT1 A 0 A_GiveInventory("RageSphereDoubleFire")
	TNT1 A 0 A_GiveInventory("RageSphereSpeed")
	TNT1 A 0 A_GiveInventory("RageSphereHighJump")
	TNT1 A 0 A_GiveInventory("RageSphereInfiniteAmmo")
	Stop
	Random10:
	TNT1 A 0 A_GiveInventory("RageSphereRegeneration")
	TNT1 A 0 A_GiveInventory("RageSphereStrength")
	Stop
	Random11:
	TNT1 A 0 A_GiveInventory("RageSphereRegeneration")
	TNT1 A 0 A_GiveInventory("RageSphereQuadDamage")
	TNT1 A 0 A_GiveInventory("DoomSphereShortIcon")
	Stop
	Random12:
	TNT1 A 0 A_GiveInventory("RageSphereRegeneration")
	TNT1 A 0 A_GiveInventory("RageSphereInfiniteAmmo")
	Stop
	Random13:
	TNT1 A 0 A_GiveInventory("RageSphereStrength")
	TNT1 A 0 A_GiveInventory("RageSphereQuadDamage")
	TNT1 A 0 A_GiveInventory("DoomSphereShortIcon")
	Stop
	Random14:
	TNT1 A 0 A_GiveInventory("RageSphereStrength")
	TNT1 A 0 A_GiveInventory("RageSphereInfiniteAmmo")
	Stop
	Random15:
	TNT1 A 0 A_GiveInventory("RageSphereQuadDamage")
	TNT1 A 0 A_GiveInventory("DoomSphereShortIcon")
	TNT1 A 0 A_GiveInventory("RageSphereInfiniteAmmo")
	Stop
	Random16:
	TNT1 A 0 A_GiveInventory("RageSphereDoubleFire")
	TNT1 A 0 A_GiveInventory("RageSphereSpeed")
	TNT1 A 0 A_GiveInventory("RageSphereHighJump")
	TNT1 A 0 A_GiveInventory("RageSphereRegeneration")
	
  }
}

ACTOR RageSphereIcon : Powerup
{
	Inventory.Icon "BLDSA1"
	Powerup.Duration -10
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
	-INVENTORY.INVBAR
}

ACTOR RageSphereReflection : PowerupGiver
{
	Powerup.Type "Reflection"
	Inventory.MaxAmount 0
	Powerup.Duration -10
	Inventory.PickupMessage ""
	Inventory.PickupSound ""
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
	-INVENTORY.INVBAR
}

ACTOR RageSphereQuadDamage : PowerupGiver
{
	Powerup.Type "QuadDamage"
	Inventory.MaxAmount 0
	Powerup.Duration -10
	Inventory.PickupMessage ""
	Inventory.PickupSound ""
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
	-INVENTORY.INVBAR
}

ACTOR PowerRageInvulnerable : PowerInvulnerable
{
	Inventory.Icon "PINVA1"
}

ACTOR RageSphereInvulnerable : PowerupGiver
{
	Powerup.Type "RageInvulnerable"
	Powerup.Mode "Reflective"
	Powerup.Duration -10
	Powerup.Color GoldMap
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
	-INVENTORY.INVBAR
}

ACTOR RageSphereDoubleFire : PowerupGiver
{
	Powerup.Type "PowerDoubleFiringSpeed"
	Powerup.Duration -10
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
	-INVENTORY.INVBAR
}

ACTOR RageSphereSpeed : PowerupGiver
{
	Powerup.Type "IDMSpeed"
	Powerup.Duration -10
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
	-INVENTORY.INVBAR
}

ACTOR RageSphereHighJump : PowerupGiver
{
	Powerup.Type "PowerHighJump"
	Powerup.Duration -10
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
	-INVENTORY.INVBAR
}

ACTOR RageSphereRegeneration : PowerupGiver
{
	Powerup.Type "IDMRegeneration"
	Powerup.Strength 25
	Powerup.Duration -10
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
	-INVENTORY.INVBAR
}

ACTOR RageSphereStrength : PowerupGiver
{
	Powerup.Type "IDMWeaponLevel2"
	Powerup.Duration -10
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
	-INVENTORY.INVBAR
}

ACTOR RageSphereInfiniteAmmo : PowerupGiver
{
	Powerup.Duration -10
	Powerup.Type "IDMInfiniteAmmo"
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
	-INVENTORY.INVBAR
}