-------------------Weapons-------------------

if(key == "z") then
show_ammo = true
end  

if(key == keys.minigun) and on then 
		minigun_shoot = true
		while minigun_shoot do
		if(minigun.left ~= 0) then
		getBullet("GunA") 
		minigun.left = minigun.left -1
		end 
		if(minigun.right ~= 0) then
		getBullet("GunB")
		minigun.right = minigun.right -1
		end 
		wait(shoot_rate)
		end
end 
	
if(key == "f") and  on then
		if(missile_side == 1) then
				if(hydra.right ~= 0) then 
					Getmissile("LaunchB")
					missile_side = 2
				end
		elseif(missile_side == 2) then
				if(hydra.left ~= 0) then 
					Getmissile("LaunchA")
					missile_side = 1
				end
		end
end 

