ACTOR SFortPistol : Pistol replaces Pistol
{
  Weapon.KickBack 50
  Weapon.AmmoType None
  Weapon.AmmoUse 0
  AttackSound "weapons/pistol"
  Decal BulletChip
  Tag "Pistol"
  DamageType "Bullet"
  +WEAPON.NOAUTOAIM
  +WEAPON.NOLMS
  +WEAPON.ALLOW_WITH_RESPAWN_INVUL
  States
  {
  Ready:
    PISG A 1 A_WeaponReady(WRF_ALLOWRELOAD)
	Loop
  Deselect:
    PISG A 0 A_Lower
    Loop
  Select:
    PISG A 1 A_Raise
    Loop
  Fire:
  FireNormal:
	TNT1 A 0 A_TakeInventory("PowerInvulnerable",1)
	TNT1 A 0 A_JumpIfInventory("PowerQuadDamage",1,"Quad")
	TNT1 A 0 A_GunFlash
    PISG B 1 A_FireBullets(2.1,1.75,-1,15,"SFortBulletPuff",FBF_NORANDOM|FBF_USEAMMO)
    PISG C 2
	TNT1 A 0 A_GunFlash
    PISG B 1 A_FireBullets(2.1,1.75,-1,15,"SFortBulletPuff",FBF_NORANDOM|FBF_USEAMMO)
    PISG C 2
	TNT1 A 0 A_GunFlash
    PISG B 3 A_FireBullets(2.1,1.75,-1,15,"SFortBulletPuff",FBF_NORANDOM|FBF_USEAMMO)
    PISG C 3
    PISG A 5
    PISG A 3 A_ReFire
    Goto Ready
  Quad:
    TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_7)
	TNT1 A 0 A_GunFlash
    PISG B 1 A_FireBullets(2.1,1.75,-1,15,"SFortBulletPuff",FBF_NORANDOM|FBF_USEAMMO)
    PISG C 2
    TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_7)
	TNT1 A 0 A_GunFlash
    PISG B 1 A_FireBullets(2.1,1.75,-1,15,"SFortBulletPuff",FBF_NORANDOM|FBF_USEAMMO)
    PISG C 2
    TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_7)
	TNT1 A 0 A_GunFlash
    PISG B 3 A_FireBullets(2.1,1.75,-1,15,"SFortBulletPuff",FBF_NORANDOM|FBF_USEAMMO)
	Goto FireNormal+10
  Flash:
    PISF A 1 Bright A_Light1
    TNT1 A 2 Bright A_Light1
    Goto LightDone
  }
}