Fixes round restart audio clipping (#24044)

* Fix round end audio clipping

* weh

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Hannah Giovanna Dawson
2024-01-20 03:40:00 +00:00
committed by GitHub
parent ed2fa96ca0
commit 5af1d0ea8b
4 changed files with 32 additions and 2 deletions

View File

@@ -166,6 +166,10 @@ namespace Content.Shared.GameTicking
public int PlayerCount { get; }
public RoundEndPlayerInfo[] AllPlayersEndInfo { get; }
public string? LobbySong;
/// <summary>
/// Sound gets networked due to how entity lifecycle works between client / server and to avoid clipping.
/// </summary>
public string? RestartSound;
public RoundEndMessageEvent(
@@ -175,7 +179,8 @@ namespace Content.Shared.GameTicking
int roundId,
int playerCount,
RoundEndPlayerInfo[] allPlayersEndInfo,
string? lobbySong)
string? lobbySong,
string? restartSound)
{
GamemodeTitle = gamemodeTitle;
RoundEndText = roundEndText;
@@ -184,6 +189,7 @@ namespace Content.Shared.GameTicking
PlayerCount = playerCount;
AllPlayersEndInfo = allPlayersEndInfo;
LobbySong = lobbySong;
RestartSound = restartSound;
}
}