Actor LegendaryGas : Ammo
{
  Inventory.PickupSound "misc/pickup"
  Inventory.Amount 50
  Inventory.MaxAmount 300
  Ammo.BackpackAmount 25
  Ammo.BackpackMaxAmount 600
  Inventory.PickupMessage "You picked up a Legendary gasoline cannister"
  Inventory.Icon "P500A0"
  States
  {
  Spawn:
    P500 A -1
    stop
  }
}

Actor ELegendaryGas : Ammo
{
  Inventory.PickupSound "misc/pickup"
  Inventory.Amount 50
  Inventory.MaxAmount 300
  Ammo.BackpackAmount 25
  Ammo.BackpackMaxAmount 600
  Inventory.PickupMessage "You picked up a Enraged Legendary gasoline cannister"
  Inventory.Icon "P501A0"
  States
  {
  Spawn:
    P501 A -1
    stop
  }
}

Actor TLegendaryGas : Ammo
{
  Inventory.PickupSound "misc/pickup"
  Inventory.Amount 50
  Inventory.MaxAmount 300
  Ammo.BackpackAmount 25
  Ammo.BackpackMaxAmount 600
  Inventory.PickupMessage "You picked up a True Legendary gasoline cannister"
  Inventory.Icon "P502A0"
  States
  {
  Spawn:
    P502 A -1
    stop
  }
}

ACTOR BigGasSpawner : Randomspawner replaces BigGas
{
Dropitem "BigGas", 256, 61
Dropitem "LegendaryBigGas", 256, 46
Dropitem "ELegendaryBigGas", 256, 40
Dropitem "TLegendaryBigGas", 256, 28
}

ACTOR GasSpawner : Randomspawner replaces BigGas
{
Dropitem "Gas", 256, 61
Dropitem "LegendaryGas", 256, 46
Dropitem "ELegendaryGas", 256, 40
Dropitem "TLegendaryGas", 256, 28
}

Actor LegendaryBigGas : LegendaryGas
{
  Inventory.Amount 120
  Inventory.PickupMessage "You picked up a Legendary gasoline pack"
  Inventory.Icon "P500B0"
  States
  {
  Spawn:
    P500 B -1
    stop
  }
}

Actor ELegendaryBigGas : ELegendaryGas
{
  Inventory.Amount 120
  Inventory.PickupMessage "You picked up a Enraged Legendary gasoline pack"
  Inventory.Icon "P501B0"
  States
  {
  Spawn:
    P501 B -1
    stop
  }
}

Actor TLegendaryBigGas : TLegendaryGas
{
  Inventory.Amount 120
  Inventory.PickupMessage "You picked up a True Legendary gasoline pack"
  Inventory.Icon "P502B0"
  States
  {
  Spawn:
    P502 B -1
    stop
  }
}

Actor "Legendary Pyro Cannon" : Weapon
{
  Inventory.PickupMessage "You got the Legendary Pyro Cannon!"
  Obituary "%o was incinerated by %k's Legendary pyro cannon."
  Weapon.PreferredSkin "DemonTechBFG10K-Marine"
  Weapon.SelectionOrder 3
  Weapon.AmmoType "LDemonAmmo"
  Weapon.AmmoType2 "LDemonAmmo"
  Weapon.AmmoGive 50
  Weapon.AmmoGive2 20
  Weapon.AmmoUse 80
  Weapon.AmmoUse2 5
  Weapon.Kickback 50
  +INVENTORY.UNDROPPABLE
  States
  {
  Spawn:
    AJTA A -1
    Loop
  Ready:
	AJTO A 1 A_WeaponReady
    Loop
  Deselect:
    AJTO A 1 A_Lower
    loop
  Select:
    TNT1 A 0 A_PlayWeaponSound("weapons/PCNNpickup")
    AJTO A 1 A_Raise
    goto select+1
  Fire:
    AJTO A 1
    AJTO B 1 Bright A_GunFlash
	TNT1 A 0 A_PlaySound("weapons/PCNNF")
	TNT1 A 0 A_Recoil(38)
    AJTO C 1 Bright A_FireCustomMissile("PlayerLegPyroShot", 0, 1, 0, 0)
    AJTO DEFG 1 Bright
	TNT1 A 0 A_ZoomFactor(0.975)
	AJTO A 1 Bright Offset(2,34)
	TNT1 A 0 A_ZoomFactor(0.95)
	AJTO A 1 Bright Offset(4,36)
	TNT1 A 0 A_ZoomFactor(1)
	TNT1 A 0 A_PlaySound("weapons/dtech10ksteam")
	AJTO AAAAAAAAAAAAAAAAAA 1 A_FireCustomMissile("LegendaryCannonSmoke",78+Random(-4,4),0,-1,0)
    Goto Ready
  Flash:
    TNT1 A 8 A_Light1
    TNT1 A 10 A_Light2
    TNT1 A 15 A_Light1
    TNT1 A 1 A_Light0
    Stop
  }
}
Actor Gas : Ammo 14002
{
  Inventory.PickupSound "misc/pickup"
  Inventory.Amount 50
  Inventory.MaxAmount 300
  Ammo.BackpackAmount 25
  Ammo.BackpackMaxAmount 600
  Inventory.PickupMessage "You picked up a gasoline cannister"
  Inventory.Icon "AGASA0"
  States
  {
  Spawn:
    AGAS A -1
    stop
  }
}

Actor BigGas : Gas 14003
{
  Inventory.Amount 120
  Inventory.PickupMessage "You picked up a gasoline pack"
  Inventory.Icon "AGASB0"
  States
  {
  Spawn:
    AGAS B -1
    stop
  }
}
ACTOR PlayerLegPyroShot
{
   PROJECTILE
   +SeekerMissile
   +FORCERADIUSDMG
   +NoGravity
   +MTHRUSPECIES
   +DONTREFLECT
   +Friendly
   +DontHurtSpecies
   +DontHarmSpecies
   SeeSound "weapons/firbfi"
   DeathSound "weapons/hellex"
   Species "Player"
   DamageType "LegendaryPlayerPyro"
   Obituary "%o was incinerated by a Legendary Pyro cannon."
   Alpha 1.0
   Scale 1.4
   missiletype "LegendaryPHFExTrail"
   RenderStyle Add
   Speed 45
   FastSpeed 50
   PROJECTILE
   Damage 250
   Radius 11
   Height 6
   states
   {
   Spawn:
    GDWO ABC 1 A_SpawnItemEx("LegendaryPHFExTrail",0,0,0,0,0,0,0)
    TNT1 A 0 BRIGHT A_SeekerMissile(10,10)
    Goto Spawn+2
   Death:
	  TNT1 A 0 Radius_Quake(15,20,0,20,0)
	  GDWO D 0 Bright A_CustomMissile("LegPFuelExplosion01",0,0,0,6)
      GDWO D 0 Bright A_CustomMissile("LegPFuelExplosion01",0,0,45,6)
      GDWO D 0 Bright A_CustomMissile("LegPFuelExplosion01",0,0,90,6)
      GDWO D 0 Bright A_CustomMissile("LegPFuelExplosion01",0,0,135,6)
      GDWO D 0 Bright A_CustomMissile("LegPFuelExplosion01",0,0,180,6)
      GDWO D 0 Bright A_CustomMissile("LegPFuelExplosion01",0,0,225,6)
      GDWO D 0 Bright A_CustomMissile("LegPFuelExplosion01",0,0,270,6)
      GDWO D 0 Bright A_CustomMissile("LegPFuelExplosion01",0,0,315,6)
      GDWO D 0 Bright A_Mushroom("PlayerMushroomFireballs",8)
	GDWO D 0 Bright A_CustomMissile("LegendaryCannonProj",0,0,18,2)
	GDWO D 0 Bright A_CustomMissile("LegendaryCannonProj",0,0,27,2)
    GDWO D 0 Bright A_CustomMissile("LegendaryCannonProj",0,0,36,2)
    GDWO D 0 Bright A_CustomMissile("LegendaryCannonProj",0,0,54,2)
    GDWO D 0 Bright A_CustomMissile("LegendaryCannonProj",0,0,66,2)
    GDWO D 0 Bright A_CustomMissile("LegendaryCannonProj",0,0,90,2)
    GDWO D 0 Bright A_CustomMissile("LegendaryCannonProj",0,0,100,2)
    GDWO D 0 Bright A_CustomMissile("LegendaryCannonProj",0,0,126,2)
    GDWO D 0 Bright A_CustomMissile("LegendaryCannonProj",0,0,144,2)
    GDWO D 0 Bright A_CustomMissile("LegendaryCannonProj",0,0,168,2)
    GDWO D 0 Bright A_CustomMissile("LegendaryCannonProj",0,0,180,2)
    GDWO D 0 Bright A_CustomMissile("LegendaryCannonProj",0,0,216,2)
    GDWO D 0 Bright A_CustomMissile("LegendaryCannonProj",0,0,252,2)
    GDWO D 0 Bright A_CustomMissile("LegendaryCannonProj",0,0,270,2)
    GDWO D 0 Bright A_CustomMissile("LegendaryCannonProj",0,0,306,2)
    GDWO D 0 Bright A_CustomMissile("LegendaryCannonProj",0,0,342,2)
	TNT1 A 0 A_SpawnItem("TrueDeathBall")
	  TNT1 A 0 A_Explode(600,400)
      GDWO DEFGHIJKLMN 1 BRIGHT 
	  TNT1 A 0 A_SpawnItemEx("PyroShotEx",0,0,0,0,0,0,0)	
      Stop
   }
}
Actor LegendaryPHFExTrail
{
	+CLIENTSIDEONLY 
	+NOBLOCKMAP
	+NOGRAVITY 
	+NOINTERACTION
	States 
	{
	Spawn:
		TNT1 A 0
		TNT1 A 1 A_SpawnItemEx("BlueKaboom",-8,0,0,-6, 0,random(-1,1),0)
		Stop
	}
}
ACTOR LegPFuelExplosion01
{
   Radius 8
   Height 8
   Speed 6
   Damage 10
   PROJECTILE
   RENDERSTYLE ADD
   Species "Player"
   DamageType "PlayerPyro"
   
   +RIPPER
   +BLOODLESSIMPACT
   +DontHurtSpecies
   +SPECTRAL
   +Friendly
   +DontHarmSpecies
   SeeSound "weapons/firex3"
   ALPHA 0.80
   States
   {
   Spawn:
      TNT1 AAAAA 4 A_SpawnItem("LegPFuelExplosion02",0,0)
      Stop
   }
}

ACTOR LegPFuelExplosion02
{   
   Radius 5
   Height 5
   Speed 0
   Damage 10
   PROJECTILE
   RENDERSTYLE ADD
   +SPECTRAL
   +Friendly
   +DontHurtSpecies
   +DontHarmSpecies
   species "Player"
   DamageType "PlayerPyro"
   ALPHA 0.80
   SeeSound "weapons/firex3"
   States
   {
   Spawn:
      RPEX A 2 Bright
      RPEX B 2 Bright A_Explode (10,96,0)
      RPEX CDEFGHIJKLMNOPQRSTU 2 Bright
      stop
   }
}
ACTOR PlayerMushroomFireballs
{
   Radius 10
   Height 8
   Damage 30
   PROJECTILE  
   RENDERSTYLE Translucent 
   Alpha 1
   Scale 1.0
   Speed 35
   SeeSound "imp/attack"
   DeathSound "comet/explosion"
   Species "Player"
   DamageType "PlayerPyro"
   BounceCount 3
   -NoGravity
   +DoomBounce
   +SKYEXPLODE
   +DontHurtSpecies
   +SPECTRAL
   +Friendly
   +DontHarmSpecies
   states
   {
	Spawn:
	TNT1 A 1
	TNT1 A 0 A_PlaySoundEx("HFCyb/rocket", 1, 0, 2)
	Goto Fly
	Fly:
		FRTB AB 1 BRIGHT A_SpawnItem("HFCybFireballTrail")
		Loop
     Death:
		TNT1 A 0 A_Explode(160, 192)//Damage, Radius
		TNT1 A 0 A_SpawnItemEx("LCABaseScorch", 0, 0, 0, 0, 0, 0, Random(0,359))
        TNT1 AAAAAA 0 A_CustomMissile ("OrangeParticleSpawner", 0, 0, random (0, 360), 2, random (0, 180))
		TNT1 A 0 A_SpawnItemEx("PlayerSuperMeteor_m_Explosion",0,0,0,0,0,0,0,128,0)
	    EXPL A 0 Radius_Quake(15,20,0,20,0)
		TNT1 AAAA 0 A_SpawnItemEx("SuperMeteor_m_FX_Smoke", 0, 0, 0, 0.01 * Random(-125, 125), 0.01 * Random(-125, 125), 0.01 * Random(25, 245), 0, 128, 0)
		BOOM ABCDEFGHIJKLMNOP 2 BRIGHT
		Stop
   }
}

Actor PlayerSuperMeteor_m_Explosion : SuperMeteor_m_Explosion
{
Species "Player"
DamageType "PlayerPyro"
}