From 04b4137078b87bdcbbf17db42dd9639ba1b8d1d7 Mon Sep 17 00:00:00 2001 From: Beu Date: Wed, 10 Apr 2024 11:07:21 +0200 Subject: [PATCH] add Big Message when someone have a perfect time --- TM_RoundsNearest.Script.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/TM_RoundsNearest.Script.txt b/TM_RoundsNearest.Script.txt index 02f7c02..d3b4903 100644 --- a/TM_RoundsNearest.Script.txt +++ b/TM_RoundsNearest.Script.txt @@ -265,14 +265,16 @@ if (Round_ForceEndRound || Round_SkipPauseRound || Round_Skipped) { // Get the last round points ComputeLatestRaceScores(True); Race::SortScores(Race::C_Sort_TotalPoints); - UIManager.UIAll.ScoreTableVisibility = CUIConfig::EVisibility::ForcedVisible; UIManager.UIAll.UISequence = CUIConfig::EUISequence::EndRound; - MB_Sleep(3000); + MB_Sleep(S_ChatTime * 1000 / 3); + UIManager.UIAll.ScoreTableVisibility = CUIConfig::EVisibility::ForcedVisible; + MB_Sleep(S_ChatTime * 1000 / 3); // Add them to the total scores ComputeScores(); UIModules_ScoresTable::SetCustomPoints([]); Race::SortScores(Race::C_Sort_TotalPoints); - MB_Sleep(3000); + MB_Sleep(S_ChatTime * 1000 / 3); + UIModules_BigMessage::SetMessage(""); UIManager.UIAll.ScoreTableVisibility = CUIConfig::EVisibility::Normal; UIManager.UIAll.UISequence = CUIConfig::EUISequence::Playing; @@ -450,6 +452,8 @@ Void ComputeLatestRaceScores(Boolean _DisplayMessages) { Points += S_BonusForPerfect; if (_DisplayMessages) { UIManager.UIAll.SendChat("$ff3" ^ FormatPlayerName(Score.User.Name) ^ " did the perfect time"); + UIModules_BigMessage::SetMessage(FormatPlayerName(Score.User.Name) ^ " did the perfect time"); + ModeUtils::PlaySound(CUIConfig::EUISound::TieBreakPoint, 0); } } Scores::SetPlayerRoundPoints(Score, Points);