ACTOR PDThisKongonehellofaguy : Weapon
{
    obituary "%k somehow killed %o with the Boombox."
	scale 0.1
	Tag "Boombox"
	        Weapon.Ammotype "PDThisKongonehellofaguyAmmoHold"
    Weapon.AmmoUse 1
  Weapon.AmmoGive 500
	Inventory.PickupSound "PerfectDark/Items/PickupWeapon"
	Weapon.Kickback 100
	Inventory.PickupMessage "This Kong One Hell Of A Guy!"
	States
	{
		Spawn:
		TKB4 S -1
		Stop
  Ready:
	TNT1 A 0 A_PlaySound ("PerfectDark/Weapons/ThisKongonehellofaguyUp","Weapon")
    TL78 A 2
    TL78 BC 2
	SBLS A 0 A_StopSoundEx("Body")
    TL78 D 1
    TL78 D -1 A_WeaponReady
    Goto Ready+17
  Deselect:
  SBLS A 0 A_StopSoundEx("Body")
    TL78 C 2
    TL78 BA 2
	TNT1 A 0 A_PlaySound ("PerfectDark/Weapons/ThisKongonehellofaguyDown","Weapon")
    TK04 F 0 A_Lower
    wait
	Select:
		TL77 A 0 A_Raise
		Loop
	Fire:
	
		 NULL A 0 A_JumpIfInventory("PDThisKongonehellofaguyAmmoHold",1,1)
	goto Ready+4
	TNT1 A 0 A_TakeInventory("PDThisKongonehellofaguyAmmoHold",1,TIF_NOTAKEINFINITE)
		TL78 D 0 A_PlaySoundEx("PerfectDark/Weapons/ThisKongonehellofaguyFireLoop", "Body", 1)
		TL78 D 1 A_FireCustomMissile("StingMusic", 8, 0, 0, 1)
		TL78 D 1 A_FireCustomMissile("StingMusic", 16, 0, 0, 1)
		TL78 D 1 A_FireCustomMissile("StingMusic", 32, 0, 0, 1)
		TL78 D 1 A_FireCustomMissile("StingMusic", 0, 0, 0, 1)
		TL78 D 1 A_FireCustomMissile("StingMusic", -8, 0, 0, 1)
		TL78 D 1 A_FireCustomMissile("StingMusic", -16, 0, 0, 1)
		TL78 D 1 A_FireCustomMissile("StingMusic", -32, 0, 0, 1)
		TL78 D 0 A_Refire
		Goto Ready+4
	}
}

ACTOR StingMusic
{
	Radius 32
	Height 8
	Speed 50
	Damage 10
	Projectile
        +SEEKERMISSILE
	+RANDOMIZE
	+EXTREMEDEATH
	Obituary "%k made %o's Eardrums explode."
        States
	{
	Spawn:
		TNT1 A 1  
		Loop
	Death:
		TNT1 A 1
		Stop
	}
}

ACTOR PDThisKongonehellofaguyAmmoHold : Ammo 
{
	Scale 0.5
	Inventory.Amount 500
	Inventory.MaxAmount 500
	Inventory.Icon "TKB4S0"
	States
	{
	Spawn:
		9014 A -1
		Stop
	}
}

ACTOR PDThisKongonehellofaguyPickup : Custominventory
{
   scale 0.1
 Inventory.PickupMessage "This Kong One Hell Of A Guy!"
  	Inventory.PickupSound "PerfectDark/Items/PickupWeapon"
   States
   {
   Spawn:
	  TKB4 I -1
	  loop
   Pickup:
	  TNT1 A 0 A_GiveInventory("PDThisKongonehellofaguy")
	  TNT1 A 0 A_JumpIfInventory("PlayingasPerfectKirby",1,"PickupPerfectKirby")
	  TNT1 A 0 A_JumpIfInventory("PlayingasRED",1,"PickupRED")
	  stop
	  PickupPerfectKirby:
	 	TNT1 A 0 A_PlaySound ("PerfectDark/Player/PerfectKirby/PerfectKirbyWeaponPickup")
		Stop
	  PickupRED:
	 	TNT1 A 0 A_PlaySound ("PerfectDark/Player/RED/REDWeaponPickup")
		Stop
   }
}
