
ACTOR SurvivalistHMG : Weapon 
{ 
  //$Category Weapons
  //$Sprite HVMGW0
  //$Title "Heavy Machinegun"
	Weapon.Kickback 5
	Weapon.AmmoType "SurvHMGAmmo" 
	Weapon.AmmoGive 75
	Weapon.AmmoUse 1
	Inventory.PickupSound "misc/w_pkup" 
	Inventory.PickupMessage "Picked Up a Heavy Machinegun!"
	Obituary "%o was Ripped a New one by %k and their Heavy Machinegun."
	AttackSound "weapons/HMG"
	Tag "Heavy Machinegun"
	Inventory.RestrictedTo "SurvivalistClass"
 	Decal BulletChip
	States 
	{  
	Deselect: 
		HVMG A 1 A_Lower
		TNT1 A 0 A_Lower
		TNT1 A 0 A_Lower
		Loop 
	Select: 
		HVMG A 1 A_Raise 
		TNT1 A 0 A_Raise
		TNT1 A 0 A_Raise
		Loop 
	Ready: 
		HVMG A 1 A_WeaponReady 
		Loop 
	Fire: 
		HVMG B 0 A_GunFlash
		HVMG B 1 
		HVMG C 1 A_FireBullets(5, 3, 1, 15, "BulletPuff", FBF_NORANDOM|FBF_USEAMMO)  
		HVMG A 1
        TNT1 A 0 A_refire
		goto Ready 
        Flash:
		HVMG B 1 Bright A_Light1 
		HVMG C 1 Bright A_Light0 
             	Goto LightDone
        Hold:
		HVMG B 0 A_GunFlash
		HVMG B 1 
		HVMG C 1 A_FireBullets(5, 3, 1, 15, "BulletPuff", FBF_NORANDOM|FBF_USEAMMO)  
		HVMG A 1
		goto Ready 
	Spawn:
		HVMG W -1
		Stop
		}
	} 

ACTOR SurvHMGAmmo : Ammo
{
Inventory.Amount 25
Inventory.MaxAmount 250
Ammo.BackpackAmount 50
Ammo.BackpackMaxAmount 500
}