-- 100 == 1  0 == 0  1/0.5


function JamCalculation()
	local L_182_
	if (math.random(1, 100) <= L_24_.JamChance) then	
		L_182_ = true
		L_75_ = true
	else
		L_182_ = false
	end
	return L_182_
end

function TracerCalculation()
	local L_183_
	if (math.random(1, 100) <= L_24_.TracerChance) then	
		L_183_ = true
	else
		L_183_ = false
	end
	return L_183_
end

function ScreamCalculation()
	local L_184_
	if (math.random(1, 100) <= L_24_.SuppressCalloutChance) then	
		L_184_ = true
	else
		L_184_ = false
	end
	return L_184_
end

function SearchResupply(L_185_arg1)
	local L_186_ = false
	local L_187_ = nil
	
	if L_185_arg1:FindFirstChild('ResupplyVal') or L_185_arg1.Parent:FindFirstChild('ResupplyVal') then
		L_186_ = true
		if L_185_arg1:FindFirstChild('ResupplyVal') then
			L_187_ = L_185_arg1.ResupplyVal
		elseif L_185_arg1.Parent:FindFirstChild('ResupplyVal') then
			L_187_ = L_185_arg1.Parent.ResupplyVal
		end
	end
	return L_186_, L_187_
end

function CheckReverb()
	local L_188_, L_189_ = workspace:FindPartOnRayWithIgnoreList(Ray.new(L_6_.CFrame.p, (L_6_.CFrame.upVector).unit * 30), IgnoreList);
		
	if L_188_ then
		local L_190_ = L_59_:WaitForChild('Fire'):FindFirstChild('ReverbSoundEffect') or Instance.new("ReverbSoundEffect", L_59_:WaitForChild('Fire'))
	elseif not L_188_ then
		if L_59_:WaitForChild('Fire'):FindFirstChild('ReverbSoundEffect') then
			L_59_.Fire.ReverbSoundEffect:Destroy()
		end
	end
end

function UpdateAmmo()
	L_29_.Text = L_103_
	L_30_.Text = L_29_.Text
	
	L_31_.Text = '| ' .. math.ceil(L_104_ / L_24_.StoredAmmo)
	L_32_.Text = L_31_.Text
	
	if L_93_ == 0 then
		L_40_.Image = 'rbxassetid://' .. 1868007495
	elseif L_93_ == 1 then
		L_40_.Image = 'rbxassetid://' .. 1868007947
	elseif L_93_ == 2 then
		L_40_.Image = 'rbxassetid://' .. 1868008584
	end
	
	if L_92_ == 1 then
		L_35_.BackgroundTransparency = 0
		L_36_.BackgroundTransparency = 0.7
		L_37_.BackgroundTransparency = 0.7
		L_38_.BackgroundTransparency = 0.7
		L_39_.BackgroundTransparency = 0.7
	elseif L_92_ == 2 then
		L_35_.BackgroundTransparency = 0
		L_36_.BackgroundTransparency = 0
		L_37_.BackgroundTransparency = 0
		L_38_.BackgroundTransparency = 0
		L_39_.BackgroundTransparency = 0
	elseif L_92_ == 3 then
		L_35_.BackgroundTransparency = 0
		L_36_.BackgroundTransparency = 0
		L_37_.BackgroundTransparency = 0
		L_38_.BackgroundTransparency = 0.7
		L_39_.BackgroundTransparency = 0.7
	elseif L_92_ == 4 then
		L_35_.BackgroundTransparency = 0
		L_36_.BackgroundTransparency = 0
		L_37_.BackgroundTransparency = 0
		L_38_.BackgroundTransparency = 0
		L_39_.BackgroundTransparency = 0.7
	elseif L_92_ == 5 then
		L_35_.BackgroundTransparency = 0
		L_36_.BackgroundTransparency = 0.7
		L_37_.BackgroundTransparency = 0
		L_38_.BackgroundTransparency = 0.7
		L_39_.BackgroundTransparency = 0.7
	elseif L_92_ == 6 then
		L_35_.BackgroundTransparency = 0
		L_36_.BackgroundTransparency = 0.7
		L_37_.BackgroundTransparency = 0
		L_38_.BackgroundTransparency = 0
		L_39_.BackgroundTransparency = 0.7
	end
	
end
