/*
CREDITS:

Random name generator - for spawning this retarded weapon!
Guided missile coding - KeksDose!
Special props to Zrrion for helping me make the secondary fire to work somehow!

Graphics:
Gun graphic source - Shadow Warrior (3DRealms)
Gun graphic - Neccronixis
Discus projectile graphic - RSL
Holograph effect - Cutman Mike
Bertha Imp - ?? (Found it loafing around my hard drive, dunno from where it is, but I thought of giving it a fine use, teehee!)
Embers - Hexen (Raven Software)
Ember impact - ??

Sounds:
Up - A mix of sound I don't remember and one from Unreal (Epic Games)
Fire - Starcraft 2 (Blizzard Entertainment)
Shuriken flight - Painkiller (People can Fly, thanks Xaser for suggestion!)

Alt Fire Sounds:
Alt Fire - Serious Sam 3 (Croteam)
Alt Fire Add - ??
Discus Fly - Red Alert 2: Yuri's Revenge (Westwood)
Discus Stop - Bulletstorm (People can Fly, Epic Games)
Perversively seductive music - Ohhh Yeah (Jello)
Discus Burst - Diablo 2 (Blizzard Ent.)

Tertiary Fire stuff:
Sprites - Midway (Turok)
Sounds:
Deploy - ID (Quake 2)
Charge - Westwood (Renegade)
WHEEEEE - Firefox Advertisement (yes, that's right!)

Extremely weird fruit of random name generator, this gun seems to be
pretty standard - still, who wouldn't want to shoot guided explosive
shurikens?! All magic of this gun though lies in the alt-fire,
which even me makes wonder how the hell I came up with that idea...
*/

ACTOR Shurricane : DoomWeapon 24536
{
	//$Category Weapons
	//$Title Shurricane
	//$Sprite SPAMX0
	Inventory.PickupSound "misc/w_pkup"
	Inventory.PickupMessage "You got the ''Shurricane'' Explosive Guided Shuriken Launch System! Ninjas would be damn proud of this tool! (6)"
	Obituary "%o was swarmed %k's explosive shurikens."
	Weapon.UpSound "Shurricane/Up"
	Weapon.SelectionOrder 3
	Weapon.AmmoGive 20
	Weapon.AmmoType "RawketAmmo"
	Weapon.AmmoUse 1
	Weapon.AmmoType2 "RawketAmmo"
	Weapon.AmmoUse2 5
	Weapon.Kickback 50
	Weapon.SlotNumber 6
	States 
	{
   	Spawn:
		SPAM X -1
		Stop
	Ready:
		SPAM A 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("RO_GotoReload", 1, "Reload")
 		Loop
	Deselect:
		SPAM A 0 A_ZoomFactor(1)
		SPAM A 1 A_Lower
		SPAM A 0 A_Lower
		Loop
	Select:
		SPAM A 1 A_Raise
		SPAM A 0 A_Raise
		Loop
	Fire:
		SPAF A 0 A_PlaySoundEx("Shurricane/Fire",1)
		SPAF A 0 A_Recoil(4)
		SPAF A 0 A_GunFlash
		//SPAF A 0 A_SetAngle(Angle-3)
		//SPAF A 0 A_SetPitch(Pitch-4)
		SPAF AAAA 0 A_FireCustomMissile("ShurricaneMissile",frandom(-10.00,10.00), 0, 10, 0, 0, frandom(-2.00,2.00)) 
		SPAF A 0 A_FireCustomMissile("ShurricaneMissile",frandom(-10.00,10.00), 1, 10, 0, 0, frandom(-2.00,2.00)) 
      	SPAF A 1 Bright Offset(8,40) A_ZoomFactor(0.92)
      	SPAF B 1 Bright Offset(7,39) A_ZoomFactor(0.93)
		SPAF C 1 Bright Offset(6,38) A_ZoomFactor(0.94)
      	SPAF D 1 Bright Offset(5,37) A_ZoomFactor(0.95)
      	SPAM A 1 Offset(4,36) A_ZoomFactor(0.96)
      	SPAM A 1 Offset(3,35) A_ZoomFactor(0.97)
   		SPAM A 1 Offset(2,34) A_ZoomFactor(0.98)
      	SPAM A 1 Offset(1,33) A_ZoomFactor(0.99)
        SPAM A 1 Offset(0,32) A_ZoomFactor(1)
   		SPAM A 0 A_ReFire
        SPAM A 5
		Goto Ready
	AltFire:
		SPAM A 0 A_JumpifInventory("JelloOut",1,"Nope")
		SPAF A 0 A_GiveInventory("JelloOut",1)
		SPAF A 0 A_FireCustomMissile("JelloDiscus", 0, 1, 10, 0, 0, 0) 
		SPAF A 0 A_PlaySound("Jello/Fire",1,1.0)
		SPAF A 0 A_PlaySound("Jello/Add",5,0.75)
		SPAF A 0 A_Recoil(6)
		SPAF A 0 A_GunFlash
		SPAF A 0 A_SetAngle(Angle-4)
		SPAF A 0 A_SetPitch(Pitch-5)
      	SPAF A 1 Bright Offset(8,40) A_ZoomFactor(0.92)
      	SPAF B 1 Bright Offset(7,39) A_ZoomFactor(0.93)
		SPAF C 1 Bright Offset(6,38) A_ZoomFactor(0.94)
      	SPAF D 1 Bright Offset(5,37) A_ZoomFactor(0.95)
      	SPAM A 1 Offset(4,36) A_ZoomFactor(0.96)
      	SPAM A 1 Offset(3,35) A_ZoomFactor(0.97)
   		SPAM A 1 Offset(2,34) A_ZoomFactor(0.98)
      	SPAM A 1 Offset(1,33) A_ZoomFactor(0.99)
        SPAM A 3 Offset(0,32) A_ZoomFactor(1)
        SPAM A 10
		Goto Ready
	Nope:
		SPAM A 0 A_GiveInventory("JelloStopper",1)
		SPAM A 0 A_PlaySound("Jello/Stop",5)
		SPAM A 1 Offset(1,33)
		SPAM A 0 A_TakeInventory("JelloStopper",1)
		SPAM A 1 Offset(2,34)
		SPAM A 1 Offset(3,35)
		SPAM A 1 Offset(2,34)
		SPAM A 1 Offset(1,33)
		SPAM A 10 Offset(0,32)
		Goto Ready
	Reload:
		SPAM A 0 A_JumpIfInventory("RawketAmmo",20,1)
		Goto Nope2
		SPAF A 0 A_TakeInventory("RawketAmmo",20,TIF_NOTAKEINFINITE)
		SPAF A 0 A_FireCustomMissile("PickleGrenade", 0, 0, 10, 0, 0, 0) 
		SPAF A 0 A_PlaySound("Jello/Fire",1,1.0)
		SPAF A 0 A_PlaySound("Jello/Add",5,0.75)
		SPAF A 0 A_Recoil(8)
		SPAF A 0 A_GunFlash
		SPAF A 0 A_SetAngle(Angle-4)
		SPAF A 0 A_SetPitch(Pitch-5)
      	SPAF A 1 Bright Offset(8,40) A_ZoomFactor(0.92)
      	SPAF B 1 Bright Offset(7,39) A_ZoomFactor(0.93)
		SPAF C 1 Bright Offset(6,38) A_ZoomFactor(0.94)
      	SPAF D 1 Bright Offset(5,37) A_ZoomFactor(0.95)
      	SPAM A 1 Offset(4,36) A_ZoomFactor(0.96)
      	SPAM A 1 Offset(3,35) A_ZoomFactor(0.97)
   		SPAM A 1 Offset(2,34) A_ZoomFactor(0.98)
      	SPAM A 1 Offset(1,33) A_ZoomFactor(0.99)
        SPAM A 3 Offset(0,32) A_ZoomFactor(1)
        SPAM A 15
		Goto Ready
	Nope2:
		SPAM A 0 A_PlaySound("Jello/Stop",5)
		SPAM A 1 Offset(1,33)
		SPAM A 1 Offset(2,34)
		SPAM A 1 Offset(3,35)
		SPAM A 1 Offset(2,34)
		SPAM A 1 Offset(1,33)
		SPAM A 10 Offset(0,32)
		Goto Ready
	Flash:
		TNT1 A 4 A_Light2
		TNT1 A 3 A_Light1
		TNT1 A 3 A_Light0
		Stop
	}
}

ACTOR GuideKickInCounter : Inventory { Inventory.MaxAmount 99 }

ACTOR ShurricaneMissile
{
   Obituary "%o was fatally wounded by %k's guided, explosive shuriken."
   Radius 6
   Height 9
   Speed 25
   Damage 35 //5
   Scale 0.5
   DeathSound "Weapons/BustExplo"
   PROJECTILE
   //+RIPPER
   +THRUGHOST
   +DONTSPLASH
   +SKYEXPLODE
   +EXPLODEONWATER
   States
   {
   Spawn:
      MISN A 0
      MISN A 0 A_PlaySound("Shurricane/Flight",5,0.6,1)
   Roflcopter:
      TNT1 A 0 A_GiveInventory("GuideKickInCounter",1)
      TNT1 A 0 A_JumpIfInventory("GuideKickInCounter",3,"Maocopter")
   Woosh:
      MISN A 0 A_ChangeVelocity (frandom(-1.2, 1.2), frandom(-1.2, 1.2), frandom(-1.2, 1.2), 0) //3x times bigger deviation than standard barrage missiles
      SHUR A 1 Bright A_SpawnItemEx("ShurricaneTrailA")
      MISN A 0 A_ChangeVelocity (frandom(-1.2, 1.2), frandom(-1.2, 1.2), frandom(-1.2, 1.2), 0)
      SHUR B 1 Bright A_SpawnItemEx("ShurricaneTrailB")
      MISN A 0 A_ChangeVelocity (frandom(-1.2, 1.2), frandom(-1.2, 1.2), frandom(-1.2, 1.2), 0)
      SHUR C 1 Bright A_SpawnItemEx("ShurricaneTrailC")
      MISN A 0 A_ChangeVelocity (frandom(-1.2, 1.2), frandom(-1.2, 1.2), frandom(-1.2, 1.2), 0)
      SHUR D 1 Bright A_SpawnItemEx("ShurricaneTrailD")
      Goto Roflcopter
   Maocopter:
      //MISN A 0 ACS_ExecuteAlways(704)
      MISN A 0 A_ScaleVelocity(1.2)
      SHUR A 1 Bright A_SpawnItemEx("ShurricaneTrailA")
      SHUR B 1 Bright A_SpawnItemEx("ShurricaneTrailB")
      SHUR C 1 Bright A_SpawnItemEx("ShurricaneTrailC")
      SHUR D 1 Bright A_SpawnItemEx("ShurricaneTrailD")
      Loop
   Death:
      TNT1 A 0 A_JumpIfInTargetInventory("NukerUpgrade",1,"NukerDeath")
      TNT1 A 0 A_StopSound(5)
      TNT1 A 0 A_Explode(125,128)
      TNT1 A 0 A_SpawnItemEx("MissileExplode",0,0,0,0,0,0,0,128,0)
      TNT1 BCD 5
      stop
   NukerDeath:
      TNT1 A 0 A_StopSound(5)
      TNT1 A 0 A_Explode(250,192)
      TNT1 A 1 A_SpawnItemEx("NukerMissileExplode",0,0,0,0,0,0,0,128,0)
      TNT1 BCD 5
      stop
   }
}

ACTOR ShurricaneTrailA
{
	+NOINTERACTION
	+NOGRAVITY
	+CLIENTSIDEONLY
	Renderstyle Normal
	Alpha 0.7
	Scale 0.5
	States
	{
	Spawn:
	TNT1 A 0
	SHUR A 1 A_FadeOut(0.1)
	Wait
	}
}

ACTOR ShurricaneTrailB : ShurricaneTrailA
{
	States
	{
	Spawn:
	TNT1 A 0
	SHUR B 1 A_FadeOut(0.1)
	Wait
	}
}

ACTOR ShurricaneTrailC : ShurricaneTrailA
{
	States
	{
	Spawn:
	TNT1 A 0
	SHUR C 1 A_FadeOut(0.1)
	Wait
	}
}

ACTOR ShurricaneTrailD : ShurricaneTrailA
{
	States
	{
	Spawn:
	TNT1 A 0
	SHUR D 1 A_FadeOut(0.1)
	Wait
	}
}

//Alt-fire

ACTOR JelloCounter : Inventory { Inventory.MaxAmount 99 }
ACTOR JelloOut : Inventory { Inventory.MaxAmount 1 }
ACTOR JelloStopper : Inventory { Inventory.MaxAmount 1 }
ACTOR JelloSound : Inventory { Inventory.MaxAmount 1 }

Actor PMS_2 : CustomInventory
{
Inventory.MaxAmount 0
+Inventory.AutoActivate
States
{
Spawn:
TNT1 A 1
Fail
Use:
TNT1 A 0 A_JumpIfHealthLower(1,"DoNothingWE")
TNT1 A 0 A_JumpIfInventory("PMS?",1,"Undo")
TNT1 A 0 A_ChangeFlag("FRIENDLY",Random(0,1))
TNT1 A 0 ACS_Execute(715)
TNT1 A 0 A_GiveInventory("PMS?",1)
Stop
DoNothingWE:
TNT1 A 0 A_Die
Stop
Undo:
TNT1 A 0 A_ChangeFlag("FRIENDLY",0)
TNT1 A 0 A_TakeInventory("PMS?",1)
Stop
}
}

Actor PMS? : Inventory
{
Inventory.MaxAmount 1
}

ACTOR JelloDiscus
{
    Speed 6
    Radius 10
    Height 14
    Scale 0.9
    Projectile
    +THRUGHOST
    +THRUACTORS
    +EXPLODEONWATER
    States
    {
    Spawn:
		JBMB AA 0 A_PlaySound("Jello/Fly",5,0.7,1)
        JBMB B 1 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
        Loop
    Death:
	    TNT1 A 0 A_StopSound(5)
		TNT1 A 0 A_SpawnItemEx("BerthaImp",0,0,32,0,0,0,0,SXF_TRANSFERPOINTERS)
        TNT1 A 0 A_SpawnItemEx("JelloBomb",0,0,0,0,0,0,0,SXF_TRANSFERPOINTERS)
		TNT1 A 0 A_SpawnItemEx("BerthaHolo",0,0,-2,0,0,0,0,SXF_TRANSFERPOINTERS)
        Stop
    //XDeath:
        JBMB A 0 A_TakeFromTarget("JelloOut",1)
	JBMB A 0 A_StopSound(8)
	JBMB A 0 A_PlaySound("Jello/Burst",5,1.0) //I am lazy bastard.
	JBMB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("JelloEmber",random(10,-10),random(10,-10),random(10,-10),frandom(5.0,15.0),frandom(5.0,15.0),frandom(2.0,15.0),random(0.0,360.0),SXF_TRANSFERPOINTERS)
        TNT1 A 0 A_JumpIfInTargetInventory("NukerUpgrade",1,"NukerDeath")
        TNT1 A 0 A_StopSound(5)
        TNT1 A 0 A_Explode(125,128,0)
        TNT1 A 0 A_SpawnItemEx("MissileExplode",0,0,0,0,0,0,0,128,0)
        TNT1 BCD 5
        Stop
    NukerDeath:
        TNT1 A 0 A_Explode(250,192,0)
        TNT1 A 1 A_SpawnItemEx("NukerMissileExplode",0,0,0,0,0,0,0,128,0)
        TNT1 BCD 5
	Stop
    }
}

ACTOR BerthaHolo
{
	+NOINTERACTION
	+NOGRAVITY
	Renderstyle Add
	Alpha 0.2
	ReactionTime 157
	States
	{
	Spawn:
	TNT1 A 2
	Looplet:
	HOLO D 1 Bright A_FadeOut(0.025)
	HOLO D 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	HOLO D 1 Bright A_FadeOut(0.025)
	HOLO D 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	HOLO D 1 Bright A_FadeOut(0.025)
	HOLO D 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	HOLO D 1 Bright A_FadeOut(0.025)
	HOLO D 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	HOLO E 1 Bright A_FadeIn(0.025)
	HOLO E 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	HOLO E 1 Bright A_FadeIn(0.025)
	HOLO E 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	HOLO E 1 Bright A_FadeIn(0.025)
	HOLO E 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	HOLO E 1 Bright A_FadeIn(0.025)
	HOLO E 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	HOLO E 0 A_Countdown
	Loop
	Death:
	HOLO CCCBBBAAA 1 Bright A_FadeOut(0.02)
	Stop
	}
}

ACTOR BerthaImp
{
	+NOINTERACTION
	+NOGRAVITY
	Renderstyle Add
	ReactionTime 104
	States
	{
	Spawn:
	TNT1 A 2
	Looplet:
	BRTI B 1 Bright A_FadeOut(0.075)
	BRTI B 0 A_Weave(0,1,0.0,1.0)
	BRTI B 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	BRTI B 1 Bright A_FadeOut(0.075)
	BRTI B 0 A_Weave(0,1,0.0,1.0)
	BRTI B 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	BRTI B 1 Bright A_FadeOut(0.075)
	BRTI B 0 A_Weave(0,1,0.0,1.0)
	BRTI B 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	BRTI B 1 Bright A_FadeOut(0.075)
	BRTI B 0 A_Weave(0,1,0.0,1.0)
	BRTI B 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	BRTI B 1 Bright A_FadeOut(0.075)
	BRTI B 0 A_Weave(0,1,0.0,1.0)
	BRTI B 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	BRTI B 1 Bright A_FadeOut(0.075)
	BRTI B 0 A_Weave(0,1,0.0,1.0)
	BRTI B 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	
	BRTI B 1 Bright A_FadeIn(0.075)
	BRTI B 0 A_Weave(0,1,0.0,1.0)
	BRTI B 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	BRTI B 1 Bright A_FadeIn(0.075)
	BRTI B 0 A_Weave(0,1,0.0,1.0)
	BRTI B 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	BRTI B 1 Bright A_FadeIn(0.075)
	BRTI B 0 A_Weave(0,1,0.0,1.0)
	BRTI B 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	BRTI B 1 Bright A_FadeIn(0.075)
	BRTI B 0 A_Weave(0,1,0.0,1.0)
	BRTI B 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	BRTI B 1 Bright A_FadeIn(0.075)
	BRTI B 0 A_Weave(0,1,0.0,1.0)
	BRTI B 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	BRTI B 1 Bright A_FadeIn(0.075)
	BRTI B 0 A_Weave(0,1,0.0,1.0)
	BRTI B 0 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	BRTI B 0 A_Countdown
	Loop
	Death:
	BRTI B 1 A_FadeOut(0.1)
	Wait
	}
}

Actor PMS_2_Thingamajabber
{
	DamageType "PMS"
	States
	{
		Spawn:
		TNT1 A 0
		TNT1 A 0 A_Explode(1,768,0)
		TNT1 A 1
		Stop
	}
}
	
ACTOR JelloBomb
{
    Speed 0
    Radius 11
    Height 9
    Health 1
    Scale 0.9
    Damage 0
    Mass 0x7FFFFFFF
    ReactionTime 84
    //PushFactor 0.35
    Obituary "%o choked on %k's ''Jello Bomb Discus'' embers. Ain't that easy to escape the power of such deep voice!"
    +EXTREMEDEATH
    +INVULNERABLE
    +SHOOTABLE
    +NOBLOOD
    +FORCERADIUSDMG
    +DONTSPLASH
    +THRUACTORS
    +THRUGHOST
    +FLOORCLIP
    +SPECTRAL
    //+PUSHABLE
    //+FLOAT
    +NOGRAVITY
    -COUNTKILL
    -SOLID
    States
    {
    Spawn:
	JBMB A 2
	JBMB A 0 A_PlaySound("Jello/Loop",5,1,0)
    Looplo:
	TNT1 A 0 A_SpawnItem("PMS_2_Thingamajabber")
	JBMB A 0 A_JumpIfInventory("JelloCounter",49,"JelloBombardment")
	JBMB AAAAABBBBB 1 A_JumpIfInTargetInventory("JelloStopper",1,"SuperDeath") 
	JBMB A 0 A_GiveInventory("JelloCounter",2)
	Loop
    JelloBombardment:
	TNT1 A 0 A_SpawnItem("PMS_2_Thingamajabber")
	JBMB AAAAAABBBBBB 1 A_JumpIfInTargetInventory("JelloStopper",1,"Death")
	JMBB A 0 A_JumpIfInventory("JelloSound",1,"Sound2")
	JMBB A 0 A_GiveInventory("JelloSound",1)
	JBMB A 0 A_PlaySound("Jello/Burst",8,0.8)
    DerpPrytal:
	JBMB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("JelloEmber",random(10,-10),random(10,-10),random(10,-10),frandom(5.0,15.0),frandom(5.0,15.0),frandom(2.0,15.0),random(0.0,360.0),SXF_TRANSFERPOINTERS)
	JBMB A 0 A_Countdown
	Goto JelloBombardment
    Sound2:
	JBMB A 0 A_PlaySound("Jello/Burst",6,0.8)
	JBMB A 0 A_TakeInventory("JelloSound",1)
	Goto DerpPrytal
    Death:
        JBMB A 0 A_TakeFromTarget("JelloOut",1)
	JBMB A 0 A_StopSound(5)
	JBMB A 0 A_PlaySound("Jello/Burst",8,1.0)
	JBMB A 0 A_PlaySound("Weapons/BustExplo",6,1.0)
	JBMB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("JelloEmber",random(10,-10),random(10,-10),random(10,-10),frandom(5.0,15.0),frandom(5.0,15.0),frandom(2.0,15.0),random(0.0,360.0),SXF_TRANSFERPOINTERS)
        TNT1 A 0 A_JumpIfInTargetInventory("NukerUpgrade",1,"NukerDeath")
        TNT1 A 0 A_StopSound(5)
        TNT1 A 0 A_Explode(125,128,0)
        TNT1 A 0 A_SpawnItemEx("MissileExplode",0,0,0,0,0,0,0,128,0)
        TNT1 BCD 5
        Stop
    NukerDeath:
        TNT1 A 0 A_Explode(250,192,0)
        TNT1 A 1 A_SpawnItemEx("NukerMissileExplode",0,0,0,0,0,0,0,128,0)
        TNT1 BCD 5
	Stop
    SuperDeath:
        JBMB A 0 A_TakeFromTarget("JelloOut",1)
	JBMB A 0 A_StopSound(5)
	JBMB A 0 A_PlaySound("Jello/Burst",8,1.0)
	JBMB A 0 A_PlaySound("Weapons/BustExplo",6,1.0)
	JBMB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("JelloEmber",random(10,-10),random(10,-10),random(10,-10),frandom(5.0,15.0),frandom(5.0,15.0),frandom(2.0,15.0),random(0.0,360.0),SXF_TRANSFERPOINTERS)
        TNT1 A 0 A_JumpIfInTargetInventory("NukerUpgrade",1,"NukerDeath")
        TNT1 A 0 A_StopSound(5)
        TNT1 A 0 A_Explode(125,128,0)
        TNT1 A 0 A_SpawnItemEx("MissileExplode",0,0,0,0,0,0,0,128,0)
        TNT1 BCD 5
        Stop
    NukerDeath:
        TNT1 A 0 A_Explode(250,192,0)
        TNT1 A 1 A_SpawnItemEx("NukerMissileExplode",0,0,0,0,0,0,0,128,0)
        TNT1 BCD 5
	Stop
    }
}

ACTOR JelloEmber
{
  Radius 6
  Height 5
  Speed 0
  Damage 15
  Projectile
  DamageType Fire
  -NOGRAVITY
  Gravity 0.75
  Scale 0.75
  Obituary "%o choked on %k's ''Jello Bomb Discus'' embers. Ain't that easy to escape the power of such deep voice!"
  Renderstyle Add
  States
  {
  Spawn:
    TNT1 A 0
    JLBE ABCDEFGHIJKLM 1 Bright
    Loop
  Death:
    TNT1 A 0 A_Explode(25,24,0)
    TNT1 A 0 A_PlaySound("Skullfire/Hit",0,0.5)
    TNT1 A 0 A_SpawnItemEx("JelloEmberImpact")
    Stop
  }
}

ACTOR JelloEmberImpact
{
  +NOINTERACTION
  +NOGRAVITY
  +CLIENTSIDEONLY
  Renderstyle Add
  Scale 0.75
  States
  {
  Spawn:
  JLBX ABCDEFGHIJKLMNOPQRSTUV 1 Bright A_FadeOut(0.01)
  Stop
  }
}

/*
CREDITS:
Sprites - Midway (Turok)
Sounds:
Deploy - ID (Quake 2)
Charge - Westwood (Renegade)
WHEEEEE - Firefox Advertisement (yes, that's right!)
*/

/* left for the sake of history.
ACTOR OGUR : CustomInventory
{
  Inventory.Amount 1
  Inventory.MaxAmount 8
  Inventory.InterHubAmount 8
  Inventory.Icon "ARTIOGUR"
  Inventory.PickupSound "weapons/OgurPick"
  Inventory.UseSound "Weapons/OgurThrow"
  Inventory.PickupMessage "You got the ''O.G.U.R.'' pickle grenade! Pickle surpise!"
  +INVENTORY.INVBAR
  Scale 1
  States
  {
  Spawn:
    PICL A -1
    Stop
  Use:
    TNT1 A 1 A_FireCustomMissile("PickleGrenade",0,0,0,0)
    Stop
  }
}
*/

ACTOR PickleGrenade
{
   Obituary "%o was directly blasted by %k's pickle grenade. %o had a really bad luck, and %k had a really good aim! (and luck)"
   Radius 7
   Height 11
   Speed 20
   Damage 35
   Scale 0.9
   PROJECTILE
   +THRUGHOST
   +EXPLODEONWATER
   -NOGRAVITY
   Gravity 0.85
   States
   {
   Spawn:
      OGUR A 0
      OGUR A 0 ThrustThingZ(0, 35, 0, 1)
      Goto Roflcopter
   Roflcopter:
      OGUR ABCDEFGH 2 Bright
      Loop
   Death:
      OGUR H 15
      OGUR H 116 A_PlaySound("Weapons/OgurCharge")
      OGUR ABCDEFGHAB 1 ThrustThingZ(0, 12, 0, 0)
      OGUR C 0 A_ChangeFlag("NOGRAVITY",1)
      OGUR CDEFGHABCD 1 A_ChangeFlag("NOGRAVITY",1)
   XDeath:
      TNT1 A 0 A_AlertMonsters
      TNT1 A 0 A_PlaySound("Weapons/BustExplo")
      TNT1 A 0 A_JumpIfInTargetInventory("NukerUpgrade",1,"NukerDeath")
      TNT1 A 0 A_Explode(125,128,0)
      TNT1 A 0 A_SpawnItemEx("MissileExplode",0,0,0,0,0,0,0,128,0)
      TNT1 BCD 2
      goto Kaplooie
   NukerDeath:
      TNT1 A 0 A_StopSoundEx("SoundSlot5")
      TNT1 A 0 A_Explode(250,192,0)
      TNT1 A 0 A_SpawnItemEx("NukerMissileExplode",0,0,0,0,0,0,0,128,0)
      TNT1 BCD 3
   Kaplooie:
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)

      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,10)

      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,20)

      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,30)

      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,40)

      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,50)

      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,60)

      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,70)

      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,80)

      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,-10)

      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,-20)

      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,-30)

      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,-40)

      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,-50)

      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,-60)

      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,-70)

      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,20,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,40,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,60,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,80,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,100,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,120,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,140,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,160,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,180,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-20,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-40,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-60,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-80,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-100,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-120,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-140,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      TNT1 A 0 BRIGHT A_CustomMissile("PickleChunk",0,0,-160,CMF_AIMDIRECTION|CMF_TRACKOWNER,-80)
      Stop
   }
}

ACTOR PickleChunk
{
   Obituary "%o was caught by %k's annoying pickle grenade chunk."
   Radius 7
   Height 9
   Speed 50
   Damage 35
   Scale 0.8
   BounceSound "Weapons/OgurBounce"
   PROJECTILE
   +THRUGHOST
   +EXPLODEONWATER
   -NOGRAVITY
   Gravity 0.9
   BounceType Hexen
   BounceCount 6
   ReactionTime 272 //8 seconds
   BounceFactor 0.55
   //DamageType Nope
   States
   {
   Spawn:
      GRND A 0
      GRND A 0 ThrustThingZ(0, 25, 0, 1)
   Roflcopter:
      GRND A 0 A_ChangeVelocity (frandom(-4, 4), frandom(-4, 4), frandom(-2, 2), 0)
      GRND A 0 A_Jump(128,2)
      GRND A 0 A_Countdown
      GRND A 1 Bright //A_SpawnItemEx("BarrageTrail",-7,0.1*random(8,12),0.1*random(8,12),0.1*random(1,3),0.1*random(1,3),0.1*random(1,3),random(0,359),0)
      Loop
   Death:
      TNT1 A 0 A_AlertMonsters
      TNT1 A 0 A_PlaySound("Weapons/BustExplo")
      TNT1 A 0 A_JumpIfInTargetInventory("NukerUpgrade",1,"NukerDeath")
      TNT1 A 0 A_Explode(125,128,0)
      TNT1 A 0 A_SpawnItemEx("MissileExplode",0,0,0,0,0,0,0,128,0)
      TNT1 BCD 3
      stop
   NukerDeath:
      TNT1 A 0 A_StopSoundEx("SoundSlot5")
      TNT1 A 0 A_Explode(250,192,0)
      TNT1 A 0 A_SpawnItemEx("NukerMissileExplode",0,0,0,0,0,0,0,128,0)
      TNT1 BCD 3
      stop
   }
}
