
ACTOR FreeChaingun : WEAPON
{
   Weapon.UpSound "doomguy/doomswitch"
   Weapon.SelectionOrder 700
   Weapon.AmmoUse 1
   Weapon.AmmoGive 20
   Weapon.AmmoType "Clip"
   Inventory.PickupMessage "You got the BrutalWorshire Minigun" // "You got the chaingun"
   Obituary "%o turned into a latticework of flesh." // "%o was mowed down by %k's chaingun."
   Tag "BrutalWorshire Minigun"
   Inventory.RestrictedTo "FreedoomGuyClass"
   States
   {
    Ready:
     FDMG A 1 A_WeaponReady
     Loop
    Deselect:
	    NRV3 G 0 Bright A_StopSound(CHAN_7)
		FDMG A 1 A_Lower
		TNT1 A 0 A_Lower 
		TNT1 A 0 A_Lower 
		Loop
	Select:
	    NRV3 G 0 Bright A_StopSound(CHAN_7)
		FDMG A 1 A_Raise
		TNT1 A 0 A_Raise 
		TNT1 A 0 A_Raise 
		Loop
   Fire:
        FDMG A 0 Bright A_PlaySound("Freedom/MinigunSpin",7,1,True)
		FDMG A 0 A_PlaySound("Freedom/MinigunFire", CHAN_WEAPON)
		TNT1 A 0 A_FireBullets(7, 5, 1, 18, "BulletPuff")
		TNT1 A 0 A_giveinventory("DrDoomguySlowdown",1)
		FDMG A 0 A_GunFlash("Modern")
		FDMG AB 1 Bright
		ZCGG A 0 A_PlaySound("Freedom/MinigunFire", CHAN_WEAPON)
		TNT1 A 0 A_FireBullets(15, 7, 1, 18, "BulletPuff")
		FDMG B 0 A_GunFlash("Modern2")
		FDMG AB 1 Bright
		TNT1 A 0 A_Refire
		NRV3 G 0 Bright A_StopSound(CHAN_7)
		FDMG A 0 A_PlaySound("Freedom/MinigunWindDown", 7)
		FDMG ABABABAB 1
		FDMG ABABAB 2
		FDMG ABAB 3
		FDMG AB 4
		Goto Ready
   Modern:
		FDMF AB 1 Bright A_Light1
		Goto LightDone
   Modern2:
		FDMF AB 1 Bright A_Light1
		Goto LightDone
   }
}
