ACTOR TKRWExplosionShotGun: Weapon
{
    obituary "%k sprayed %o with Shotgun Bullets."
	scale 0.4
	Weapon.SelectionOrder 300
		Weapon.AmmoUse 0
	Weapon.AmmoGive 50
	Weapon.AmmoType "TKRWBullets"
	Tag "Explosion Shotgun"
	Inventory.PickupSound "TurokRageWars/Items/SuperWeapon_Pickup"
	Weapon.Kickback 100
	inventory.Icon "TK67O0"
	Inventory.PickupMessage "Explosion Shotgun"
	Weapon.BobStyle Alpha
  Weapon.BobSpeed 2.0
  Weapon.BobRangeX 0.0
  Weapon.BobRangeY 0.3   
	States
	{
		Spawn:
		TK66 Y -1
		Stop
  Ready:
  	TNT1 A 0 A_PlaySound ("TurokRageWarsFanMade/Weapons/ExpShotgunUp","Weapon")
    UK91 A 1
    UK91 BCDEF 1
    UK91 F -1 A_WeaponReady
    Goto Ready+6
  Deselect:
    UK92 A 1
    UK92 BC 1
    UK92 C 0 A_Lower
    wait
	Select:
		UK91 A 0 A_Raise
		Loop
	Fire:
	      NULL A 0 A_JumpIfInventory("TKRWBullets",1,1)
  goto Ready+6
		TNT1 A 0 A_TakeInventory("TKRWBullets",30,TIF_NOTAKEINFINITE)
	TNT1 A 0 A_PlaySound ("TurokRageWarsFanMade/Weapons/ExpShotgunFire","Weapon")
		UK91 GH 1
		TNT1 AAAAA 0 A_FireCustomMissile("TKRWExplosionShotGunShot",frandom(-0.3,1),5,frandom(2,9),0,0,frandom(-1.0,3))
		UK91 I 2 BRIGHT
		UK91 JKLMNOPQRST 2
		UK91 UV 2
		UK91 XYZ 2 A_Refire
		Goto Ready+6
	}
}

Actor TKRWExplosionShotGunShot: Fastprojectile
{
	Height 1
	Radius 1
	Speed 5000
  obituary "%k's Explosion Shotgun drove %o to extinction."
	Damage (20)
	Projectile
	  +BLOODSPLATTER
	+FORCEXYBILLBOARD
	states
		{
		Spawn:
			TNT1 A 1
			loop
		Crash:
		Death:
		TNT1 A 0 A_PlaySound ("TurokRageWarsFanMade/Weapons/ExpShotgunImpact")
 TNT1 A 0 A_SpawnItemEx("TKRWExplosionShotGunShotBoom",0,0,0,0,0,0,0,128,0)
			stop
		}
		
}

ACTOR TKRWExplosionShotGunShotBoom
{
SCALE 0.3
	  obituary "%o couldn't get to a fire extinguisher before %k's Explosion Shotgun finished him off."
+NOGRAVITY
+FORCEXYBILLBOARD
+BRIGHT

STATES
{
SPAWN:
NULL A 0
NULL A 0 A_QUAKE(2,100,1,250,"")
NULL A 0 A_EXPLODE(20,200)
1588 HIJKLMNOPQRST 2
STOP
}}