Play wowozela UI sounds at wowozela_volume

This commit is contained in:
Xerasin 2021-10-02 14:56:22 -07:00
parent 86fdb24332
commit 6299ac3eb4

View File

@ -195,6 +195,7 @@ function SWEP:Holster()
end
function SWEP:OnKeyEvent(key, press)
if self.GetLooping == nil then return end
if SERVER and key == IN_USE and press then
self:SetLooping(not self:GetLooping())
self:GetOwner():ChatPrint(("Looping is now %s."):format(self:GetLooping() and "enabled" or "disabled"))
@ -500,7 +501,7 @@ if CLIENT then
wowozela.PlayURL(path, "noplay", function(snd, _, err)
if not snd or err then return end
lastHttp = snd
snd:SetVolume(0.25)
snd:SetVolume(wowozela.intvolume or 0.25)
snd:Play()
timer.Simple(1.5, function()
@ -1009,7 +1010,7 @@ if CLIENT then
wowozela.PlayURL(text, "noplay", function(snd, _, err)
if not snd or err then soundError("Invalid Ogg/Mp3!") return end
lastHttp = snd
snd:SetVolume(0.25)
snd:SetVolume(wowozela.intvolume or 0.25)
snd:Play()
timer.Simple(1.5, function()