actor NecromancerModel1887 : Weapon 
{
  Weapon.SelectionOrder 1300
  Weapon.AmmoUse 1
  Weapon.AmmoGive 5
  attacksound "Weapons/MSSFIR"
  Weapon.AmmoType "000Buckshot"
  Decal "BulletChip"
  Inventory.PickupMessage "You got the model 1887 shotgun!"
  Inventory.RestrictedTo "NecromancerClass"
  Tag "Model 1887"
States
  {
  Deselect:
    NC87 A 1 A_Lower
	TNT1 A 0 A_Lower
	TNT1 A 0 A_Lower
    Loop
  Select:
    NC87 A 1 A_Raise
	TNT1 A 0 A_Raise
	TNT1 A 0 A_Raise
    Loop
  Ready:
    NC87 A 1 A_WeaponReady
    Loop
  Fire:
    NC87 A 3
    NC87 A 0 A_FireBullets (6, 4, 8, 25, "BulletPuff",FBF_NORANDOM|FBF_USEAMMO)
	N87F AB 2
    NC87 BC 7
    NC87 D 5
	NC87 E 3
    NC87 CB 4
    NC87 A 3
    NC87 A 0 A_ReFire
    Goto Ready
  Flash:
    TNT1 A 3 Bright A_Light1
    TNT1 A 3 Bright A_Light2
    Goto LightDone
  AltFire:
  	NC87 A 0 A_JumpIfInventory("000Buckshot", 5, 1)
	Goto Ready
    NC87 A 3
	TNT1 A 0 A_TakeInventory("000Buckshot", 5) // Consume 5 ammo
    NC87 A 0 A_FireBullets(16, 10, 40, 25, "BulletPuff", FBF_NORANDOM | FBF_USEAMMO) // 40 pellets, bigger spread and total damage
    N87F AB 4
    NC87 BC 9
    NC87 D 8 // Longer rechamber delay frames
    NC87 E 6
    NC87 CB 6
    NC87 A 6
    NC87 A 0 A_ReFire
    Goto Ready
  Spawn:
    N87I A -1
    Stop
  }
}

ACTOR 000Buckshot : Ammo
{
Inventory.Amount 5
Inventory.MaxAmount 25
Ammo.BackpackAmount 5
Ammo.BackpackMaxAmount 50
}
