// Riot Shotgun (Shadow Warrior)

ACTOR RiotShotgun  : IDMWeapon
{
	Weapon.SelectionOrder 400
	Weapon.KickBack 100
	Weapon.AmmoUse 1
	Weapon.AmmoGive 8
	Weapon.AmmoType "IDMShell"
	//Weapon.PreferredSkin "SuperNailgunMarine"
	Inventory.PickupMessage "Riot Shotgun! (Slot 3)"
	Obituary "%o got a dozen pellets from %k's Riot Shotgun."
	Tag "Riot Shotgun"
	Decal BulletChip
	Damagetype "Bullet"
	AttackSound "weapons/riotshf"
	+WEAPON.NOLMS
	States
	{
	Ready:
      ASHG A 1 A_WeaponReady
      Loop
	Deselect:
      TNT1 A 0 A_Lower
      TNT1 A 0 A_Lower
	  ASHG A 1 A_Lower
      Loop
    Select:
	  TNT1 A 0 A_PlaySound("weapons/wswitch",CHAN_WEAPON)
    Sloop:
	  TNT1 A 0 A_Raise
      TNT1 A 0 A_Raise
	  ASHG A 1 A_Raise
	  Loop
	Fire:
	  TNT1 A 0 A_GunFlash
	  TNT1 A 0 A_JumpIfInventory("DuelItem",1,"DuelFire")
	  TNT1 A 0 A_JumpIfInventory("PowerIDMWeaponLevel2",1,"Level2")
	  TNT1 A 0 A_JumpIfInventory("PowerQuadDamage",1,"Quad")
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,16,5,"IDMShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
   	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,16,5,"IDMShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,16,5,"IDMShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,16,5,"IDMShotPuff")
	  Goto FireEnd
	Quad:
	  TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_5)
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,16,5,"ExtremeShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_5)
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,16,5,"ExtremeShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_5)
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,16,5,"ExtremeShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_5)
	  TNT1 A 0 A_GunFlash
 	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,16,5,"ExtremeShotPuff")
	  Goto FireEnd
	Level2:
	  TNT1 A 0 A_JumpIfInventory("PowerQuadDamage",1,"QuadLevel2")
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,16,5,"IDMShotPuff",FBF_NOFLASH)
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
   	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,16,5,"IDMShotPuff",FBF_NOFLASH)
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,16,5,"IDMShotPuff",FBF_NOFLASH)
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,16,5,"IDMShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_Refire
	  Goto Ready
	QuadLevel2:
	  TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_5)
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,16,5,"ExtremeShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_5)
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,16,5,"ExtremeShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_5)
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,16,5,"ExtremeShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_5)
	  TNT1 A 0 A_GunFlash
 	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,16,5,"ExtremeShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_Refire
	  Goto Ready
	DuelFire:
	  TNT1 A 0 A_GunFlash
	  TNT1 A 0 A_JumpIfInventory("PowerIDMWeaponLevel2",1,"DuelLevel2")
	  TNT1 A 0 A_JumpIfInventory("PowerQuadDamage",1,"DuelQuad")
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,14,5,"IDMShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
   	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,14,5,"IDMShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,14,5,"IDMShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,14,5,"IDMShotPuff")
	  Goto FireEnd
	DuelQuad:
	  TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_5)
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,14,5,"ExtremeShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_5)
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,14,5,"ExtremeShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_5)
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,14,5,"ExtremeShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_5)
	  TNT1 A 0 A_GunFlash
 	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,14,5,"ExtremeShotPuff")
	  Goto FireEnd
	DuelLevel2:
	  TNT1 A 0 A_JumpIfInventory("PowerQuadDamage",1,"DuelQuadLevel2")
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,14,5,"IDMShotPuff",FBF_NOFLASH)
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
   	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,14,5,"IDMShotPuff",FBF_NOFLASH)
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,14,5,"IDMShotPuff",FBF_NOFLASH)
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,14,5,"IDMShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_Refire
	  Goto Ready
	DuelQuadLevel2:
	  TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_5)
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,14,5,"ExtremeShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_5)
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,14,5,"ExtremeShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_5)
	  TNT1 A 0 A_GunFlash
	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,14,5,"ExtremeShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_CheckReload
	  TNT1 A 0 A_Playsound("misc/qdmg2",CHAN_5)
	  TNT1 A 0 A_GunFlash
 	  ASHG B 1 Bright Offset(0,41) A_FireBullets(7.0,3.55,14,5,"ExtremeShotPuff")
	  ASHG C 1 Bright Offset(0,41)
	  ASHG F 1 Offset(0,37)
	  ASHG E 2 Offset(0,39)
	  TNT1 A 0 A_Refire
	  Goto Ready
	FireEnd:
	  ASHG C 1 Bright Offset(0,44)
	  ASHG F 1 Offset(0,44)
	  ASHG D 2 Offset(0,44)
	  ASHG A 1 Offset(0,44)
	  TNT1 A 0 A_CheckReload
	  ASHG A 1 Offset(0,44) A_Playsound("weapons/riotrel",CHAN_7)
   	  ASHG D 2 Offset(0,44)
	  ASHG E 1 Offset(0,44)
	  ASHG F 2 Offset(0,44)
	  ASHG A 1 Offset(0,44)
	  ASHG D 2 Offset(0,44)
	  ASHG E 1 Offset(0,44)
	  ASHG F 2 Offset(0,44)
	  ASHG D 1 Offset(0,44)
	  ASHG E 2 Offset(0,44)
	  ASHG F 1 Offset(0,44)
	  ASHG A 2 Offset(0,44)
	  ASHG D 1 Offset(0,44)
	  ASHG E 2 Offset(0,44)
	  ASHG F 1 Offset(0,44)
	  ASHG A 7 Offset(0,44)
	  ASHG A 2 Offset(0,39) A_Playsound("weapons/riotrdy",CHAN_7)
	  ASHG A 2 Offset(0,36)
	  ASHG A 4 Offset(0,33)
	  TNT1 A 0 A_Refire
	  Goto Ready
	Flash:
	  TNT1 A 3 A_Light1
	  TNT1 A 3 A_Light0
	  Goto LightDone
    Spawn:
  	  ASHT A -1 Bright
  	  Stop
    }
}