Actor "Enraged Legendary Pyro Cannon" : Weapon
{
  Inventory.PickupMessage "You got the Enraged Legendary Pyro Cannon!"
  Obituary "%o was incinerated by %k's EnragedLegendary pyro cannon."
  Weapon.PreferredSkin "DemonTechBFG10K-Marine"
  Weapon.SelectionOrder 3
  Weapon.AmmoType "ILDemonAmmo"
  Weapon.AmmoType2 "ILDemonAmmo"
  Weapon.AmmoGive 50
  Weapon.AmmoGive2 20
  Weapon.AmmoUse 80
  Weapon.AmmoUse2 5
  Weapon.Kickback 50
  +INVENTORY.UNDROPPABLE
  States
  {
  Spawn:
    GJ63 A -1
    Loop
  Ready:
	GJ62 A 1 A_WeaponReady
    Loop
  Deselect:
    GJ62 A 1 A_Lower
    loop
  Select:
    TNT1 A 0 A_PlayWeaponSound("weapons/PCNNpickup")
    GJ62 A 1 A_Raise
    goto select+1
  Fire:
    GJ62 A 1
    GJ62 B 1 Bright A_GunFlash
	TNT1 A 0 A_PlaySound("weapons/PCNNF")
	TNT1 A 0 A_Recoil(38)
    GJ62 C 1 Bright A_FireCustomMissile("PlayereNRAGEDLegPyroShot", 0, 1, 0, 0)
    GJ62 DEFG 1 Bright
	TNT1 A 0 A_ZoomFactor(0.975)
	GJ62 A 1 Bright Offset(2,34)
	TNT1 A 0 A_ZoomFactor(0.95)
	GJ62 A 1 Bright Offset(4,36)
	TNT1 A 0 A_ZoomFactor(1)
	TNT1 A 0 A_PlaySound("weapons/dtech10ksteam")
	GJ62 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 PlayereNRAGEDLegPyroShot
{
   PROJECTILE
   +SeekerMissile
   +FORCERADIUSDMG
   +NoGravity
   +MTHRUSPECIES
   +DONTREFLECT
   +Friendly
   +DontHurtSpecies
   +DontHarmSpecies
   SeeSound "weapons/firbfi"
   DeathSound "weapons/hellex"
   Species "Player"
   DamageType "EnragedLegendaryPlayerPyro"
   Obituary "%o was incinerated by a Enraged Legendary Pyro cannon."
   Alpha 1.0
   Scale 1.4
   RenderStyle Add
   Speed 45
   FastSpeed 50
   PROJECTILE
   Damage 300
   Radius 11
   Height 6
   states
   {
   Spawn:
    GDWW AAA 1 A_SpawnItemEx("PHFExTrail",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("PFuelExplosion01",0,0,0,6)
      GDWO D 0 Bright A_CustomMissile("PFuelExplosion01",0,0,45,6)
      GDWO D 0 Bright A_CustomMissile("PFuelExplosion01",0,0,90,6)
      GDWO D 0 Bright A_CustomMissile("PFuelExplosion01",0,0,135,6)
      GDWO D 0 Bright A_CustomMissile("PFuelExplosion01",0,0,180,6)
      GDWO D 0 Bright A_CustomMissile("PFuelExplosion01",0,0,225,6)
      GDWO D 0 Bright A_CustomMissile("PFuelExplosion01",0,0,270,6)
      GDWO D 0 Bright A_CustomMissile("PFuelExplosion01",0,0,315,6)
      GDWO D 0 Bright A_Mushroom("PlayerMushroomFireballs",8)
	GDWO D 0 Bright A_CustomMissile("ELegendaryCannonProjBomb",0,0,18,2)
	GDWO D 0 Bright A_CustomMissile("ELegendaryCannonProjBomb",0,0,27,2)
    GDWO D 0 Bright A_CustomMissile("ELegendaryCannonProjBomb",0,0,36,2)
    GDWO D 0 Bright A_CustomMissile("ELegendaryCannonProjBomb",0,0,54,2)
    GDWO D 0 Bright A_CustomMissile("ELegendaryCannonProjBomb",0,0,66,2)
    GDWO D 0 Bright A_CustomMissile("ELegendaryCannonProjBomb",0,0,90,2)
    GDWO D 0 Bright A_CustomMissile("ELegendaryCannonProjBomb",0,0,100,2)
    GDWO D 0 Bright A_CustomMissile("ELegendaryCannonProjBomb",0,0,126,2)
    GDWO D 0 Bright A_CustomMissile("ELegendaryCannonProjBomb",0,0,144,2)
    GDWO D 0 Bright A_CustomMissile("ELegendaryCannonProjBomb",0,0,168,2)
    GDWO D 0 Bright A_CustomMissile("ELegendaryCannonProjBomb",0,0,180,2)
    GDWO D 0 Bright A_CustomMissile("ELegendaryCannonProjBomb",0,0,216,2)
    GDWO D 0 Bright A_CustomMissile("ELegendaryCannonProjBomb",0,0,252,2)
    GDWO D 0 Bright A_CustomMissile("ELegendaryCannonProjBomb",0,0,270,2)
    GDWO D 0 Bright A_CustomMissile("ELegendaryCannonProjBomb",0,0,306,2)
    GDWO D 0 Bright A_CustomMissile("ELegendaryCannonProjBomb",0,0,342,2)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("DragonFlare",0,0,0,random(2,4),random(2,4),2,random(0,360),SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS|SXF_SETMASTER,64)
	  TNT1 A 0 A_Explode(750,300)
	  TNT1 A 0 A_SpawnItemEx("DeathBall2",0,0,0, 0,0,0)
      GDWO DEFGHIJKLMN 1 BRIGHT 
	  TNT1 A 0 A_SpawnItemEx("PyroShotEx",0,0,0,0,0,0,0)		
      Stop
   }
}
Actor PHFExTrail
{
	+CLIENTSIDEONLY 
	+NOBLOCKMAP
	+NOGRAVITY 
	+NOINTERACTION
	States 
	{
	Spawn:
		TNT1 A 0
		TNT1 A 1 A_SpawnItemEx("HFKaboom",-8,0,0,-6, 0,random(-1,1),0)
		Stop
	}
}
ACTOR PFuelExplosion01
{
   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("PFuelExplosion02",0,0)
      Stop
   }
}

ACTOR PFuelExplosion02
{   
   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"
}