ACTOR TWINEFrinesiShotgun: Weapon
{
  Weapon.Kickback 100
  Scale 0.1
     Weapon.Ammotype "TWINEFrinesiShotgunAmmo"
    Weapon.AmmoUse 2
  Weapon.AmmoGive 8
  Tag "Frinesi Shotgun"
  Inventory.PickupMessage "Got Frinesi Shotgun"
  Obituary "%o became toasty from %k's Frinesi Shotgun."
  	Inventory.PickupSound "TWINE/Items/Pickup"
  States
  {
  Spawn:
    TKA7 D -1
    Loop
  Ready:
  TNT1 A 0 A_PlaySound ("TWINE/Weapons/WeaponupPSX","Weapon")
    TL30 A 4 
    TL30 B 4
    TL30 C -1  A_WeaponReady
    Goto Ready+6
  Deselect:
  TNT1 A 0 A_PlaySound ("TWINE/Weapons/Switch","Weapon")
    TL31 YZ 2
	TL32 ABCDE 2
    TK61 E 0 A_Lower
    wait
  Select: 
    TK61 A 0 A_Raise 
    Loop  
  Fire: 
  TNT1 A 0 A_PlaySound ("TWINE/Weapons/Frinesi","Weapon")
    TL30 D 2 BRIGHT A_FireBullets(4, 4, 6, 10, "BulletPuff")
	TL30 EFGHIJKLMNOPQRSTUVXYZ 2
	TL31 AB 2
	TNT1 A 0 A_PlaySound ("TWINE/Weapons/FrinesiReload","Weapon")
	TL31 CDEFGHIJK 2
	TL31 LMNOPQRSTUVX 1
    Goto Ready+3
  }
}


ACTOR TWINEFrinesiShotgunPickup : Custominventory
{
   Scale 0.2
   Inventory.PickupMessage "Got Frinesi Shotgun"
  	Inventory.PickupSound "TWINE/Items/Pickup"
   States
   {
   Spawn:
    TKA7 D -1
	  loop
   Pickup:
	  TNT1 A 0 A_GiveInventory("TWINEFrinesiShotgun")
	  TNT1 A 0 A_JumpIfInventory("PlayingasEllis",1,"PickupEllis")
	  TNT1 A 0 A_JumpIfInventory("PlayingasCoach",1,"PickupCoach")
	  TNT1 A 0 A_JumpIfInventory("PlayingasFrancis",1,"PickupFrancis")
	  stop
	  PickupEllis:
	 	TNT1 A 0 A_PlaySound ("L4D/Ellis/takeshotgun")
		Stop
	  PickupCoach:
	 	TNT1 A 0 A_PlaySound ("L4D/Coach/takeshotgun")
		Stop
		PickupFrancis:
	 	TNT1 A 0 A_PlaySound ("L4D/Francis/takeshotgun")
		Stop
	  PickupBill:
	 	TNT1 A 0 A_PlaySound ("L4D/Bill/takeshotgun")
		Stop
		PickupLouis:
	 	TNT1 A 0 A_PlaySound ("L4D/Louis/takeshotgun")
		Stop
		PickupZoey:
	 	TNT1 A 0 A_PlaySound ("L4D/Zoey/takeshotgun")
		Stop
	    PickupNick:
	 	TNT1 A 0 A_PlaySound ("L4D/Nick/takeshotgun")
		Stop
		PickupRochelle:
	 	TNT1 A 0 A_PlaySound ("L4D/Rochelle/takeshotgun")
		Stop
   }
}
