Fix playglobalsound volume (#8208)

This commit is contained in:
metalgearsloth
2022-05-16 23:31:51 +10:00
committed by GitHub
parent 644277bf6f
commit b1ccdb7238

View File

@@ -52,6 +52,13 @@ public sealed class PlayGlobalSound : IConsoleCommand
return; return;
} }
// No users specified so play for them all.
if (args.Length == 2)
{
filter = Filter.Empty().AddAllPlayers(_playerManager);
}
else
{
filter = Filter.Empty(); filter = Filter.Empty();
// Skip the first argument, which is the sound path. // Skip the first argument, which is the sound path.
@@ -67,6 +74,8 @@ public sealed class PlayGlobalSound : IConsoleCommand
filter.AddPlayer(session); filter.AddPlayer(session);
} }
}
break; break;
} }