Disable gunfire ambient sound

This commit is contained in:
ChronosX88 2020-04-01 16:34:08 +04:00
parent 3fcd023107
commit d931c733ab

View File

@ -135,6 +135,7 @@ local function selectTeamAndSpawn(team, skin)
end
addEventHandler("onClientResourceStart", resourceRoot, function()
setAmbientSoundEnabled("gunfire", false)
skinSelectionMenu = SkinSelectionMenu()
skinSelectionMenu:showSkinSelectionButtons()
skinSelectionMenu._showLabels = function()
@ -168,4 +169,4 @@ addEventHandler("onPlayerTeamSelectedSuccessful", root, function()
unbindKey("space", "down", _selectTeamAndSpawn)
removeEventHandler("onClientRender", root, skinSelectionMenu._showLabels)
skinSelectionMenu:hideSkinSelectionButtons()
end)
end)