
ACTOR  ILDemonAmmoBox : Ammo 
{
Inventory.Amount 0
Inventory.MaxAmount 50
Ammo.BackpackAmount 0
Ammo.BackpackMaxAmount 50
Inventory.Icon "BTEPA0"
+IGNORESKILL
}

ACTOR ILDemonAmmo : Ammo
{
Scale 0.65
Inventory.PickupMessage "Enraged Cells Obtained."
Inventory.PickupSound "items/LDemonAmmo"
Inventory.Amount 50
Inventory.MaxAmount 250
Ammo.BackpackAmount 50
Ammo.BackpackMaxAmount 500
Inventory.Icon "BAMGA0"
States
{
Spawn:
	BAMG A -1
    Stop
    }
}

ACTOR ILDemonAmmoBox : ILDemonAmmo
{
Scale 0.65
Inventory.Amount 200
Inventory.PickupMessage "Enraged Cell Box Found."
Inventory.PickupSound "items/LDemonAmmopack"
States
{
Spawn:
	BAMO A -1
	Stop
	}
}

ACTOR ILDemonTechEmptyMag : BulletCasing
{
	Scale 0.4
    SeeSound "weapons/emptydrum"
    States
    {
	Spawn:
	  IDTM ABCD 3  
	  Loop
    Death:
	  TNT1 A 0
      TNT1 A 0 A_Jump(128,3)
      IDTM A 100
      IDTM A 5 A_FadeOut(0.10)
      Goto Death+3
      IDTM C 100
	  IDTM C 5 A_FadeOut(0.10)
	  Goto Death+5		  
      }
}

ACTOR RLegendaryRifleShot
{
   Height 3
   Radius 3
   Speed 45
   DamageType "Legendary"
   Damage 65
   Scale 0.5
   RenderStyle Add
   Alpha 0.95
   PROJECTILE
   +THRUSPECIES
   +FORCERADIUSDMG
   Species ""
   DeathSound "weapons/demontechex"
   Decal DoomImpScorch
   States
   {
   Spawn:
	  TNT1 A 0
	  TNT1 A 0 A_Jump(128,"Spawn2")
   Normal:
      ITPR ABCDEF 1 Bright 
      Loop
   Spawn2:
      ITPR ABCDEF 1 Bright
      Loop	  
   Death:
      TNT1 A 0
	  TNT1 A 0 Bright A_SpawnItemEx("RedParticleSpawner", 0, 0, 0, 0, 0, 0, 0, 128)
	  TNT1 AAA 0 A_CustomMissile("RedParticleSpawner", 0, 0, random(0,360), 2, random(0,360))
	  TNT1 A 0 Bright A_SpawnItemEx("RHellionSmokeSpawner",0,0,0,0,0,0,0,128,0)
      TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 0, "")
	  Goto Toaster
   DeathSFX:
	  TNT1 A 0 Bright A_SpawnItemEx("RedParticleSpawner", 0, 0, 0, 0, 0, 0, 0, 128)
	  TNT1 AAA 0 A_CustomMissile("RedParticleSpawner", 0, 0, random(0,360), 2, random(0,360))
	  TNT1 A 0 Bright A_SpawnItemEx("RHellionSmokeSpawner",0,0,0,0,0,0,0,128,0)
   Toaster:
	  TNT1 A 1 Bright A_Explode(20,64)
      Stop
	  }
}

ACTOR RLegendaryProjectile : RLegendaryRifleShot
{
   Damage 55
   +THRUSPECIES
   DamageType "Legendary"
   States
   {
   Death:
      TNT1 A 0
      TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 0, "")
	  Goto Toaster
   DeathSFX:
	  TNT1 A 0 Bright A_SpawnItemEx("RedParticleSpawner", 0, 0, 0, 0, 0, 0, 0, 128)
	  TNT1 AAAA 0 A_CustomMissile("RHellionSmokeSpawner", 0, 0, random(0,360), 2, random(0,360))
   Toaster:
	  TNT1 A 0 Bright A_SpawnItemEx("RHellionSmokeSpawner",0,0,0,0,0,0,0,128,0)
	  TNT1 A 1 Bright A_Explode(6,48)
      Stop
   }
}

ACTOR RPlayerLegendaryProjectile : RLegendaryRifleShot
{
   Damage 65
   +THRUSPECIES
   Species "Player"
   DamageType "Legendary"
   States
   {
   Death:
      TNT1 A 0
      TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 0, "")
	  Goto Toaster
   DeathSFX:
	  TNT1 A 0 Bright A_SpawnItemEx("RedParticleSpawner", 0, 0, 0, 0, 0, 0, 0, 128)
	  TNT1 AAAA 0 A_CustomMissile("RHellionSmokeSpawner", 0, 0, random(0,360), 2, random(0,360))
   Toaster:
	  TNT1 A 0 Bright A_SpawnItemEx("RHellionSmokeSpawner",0,0,0,0,0,0,0,128,0)
	  TNT1 A 1 Bright A_Explode(6,48)
      Stop
   }
}