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 "ELegendaryGas"
  Weapon.AmmoType2 "ELegendaryGas"
  Weapon.AmmoGive 50
  Weapon.AmmoGive2 20
  Weapon.AmmoUse 0
  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:
    TNT1 A 0 A_JumpIfInventory("ELegendaryGas",125,1)
	Goto Empty
    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)
	TNT1 A 0 A_TakeInventory("ELegendaryGas",125)
    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
  Empty:
    GJ62 A 10 A_PlaySound("weapons/click2")
   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(600,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
   }
}
