Fix playglobalsound with a volume parameter being too loud (#13421)
This commit is contained in:
@@ -76,7 +76,7 @@ public sealed class ServerGlobalSoundSystem : SharedGlobalSoundSystem
|
|||||||
public void PlayGlobalSoundCommand(IConsoleShell shell, string argStr, string[] args)
|
public void PlayGlobalSoundCommand(IConsoleShell shell, string argStr, string[] args)
|
||||||
{
|
{
|
||||||
Filter filter;
|
Filter filter;
|
||||||
var audio = AudioParams.Default.WithVolume(-8);
|
var audio = AudioParams.Default;
|
||||||
|
|
||||||
bool replay = true;
|
bool replay = true;
|
||||||
|
|
||||||
@@ -139,6 +139,7 @@ public sealed class ServerGlobalSoundSystem : SharedGlobalSoundSystem
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
audio = audio.AddVolume(-8);
|
||||||
PlayAdminGlobal(filter, args[0], audio, replay);
|
PlayAdminGlobal(filter, args[0], audio, replay);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user