From 4a0b9e439468f77db473895558e5dd758a44ac2c Mon Sep 17 00:00:00 2001 From: Beu Date: Mon, 24 Jan 2022 14:49:04 +0100 Subject: [PATCH] fix StartTime & end round when no one play --- TM_TimeAttackRounds_Online.Script.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/TM_TimeAttackRounds_Online.Script.txt b/TM_TimeAttackRounds_Online.Script.txt index 7bd256c..0e0c0ed 100644 --- a/TM_TimeAttackRounds_Online.Script.txt +++ b/TM_TimeAttackRounds_Online.Script.txt @@ -226,6 +226,12 @@ Map_MapsPerMatch = S_MapsPerMatch; UpdateScoresTableFooterAndTimeLimit(StartTime, S_TimeLimit, S_MapsPerMatch); *** +***Match_StartRound*** +*** +StartTime = Now + Race::C_SpawnDuration; +UpdateScoresTableFooterAndTimeLimit(StartTime, S_TimeLimit, S_MapsPerMatch); +*** + ***Match_InitPlayLoop*** *** Round_Skipped = False; @@ -328,6 +334,20 @@ if (Net_ScriptEnvironment != S_ScriptEnvironment) { } *** +***Rounds_CheckStopRound*** +*** +// If time limit is reached +if (EndTime > 0 && Now >= EndTime) { + MB_StopRound(); + Round_Skipped = False; +} +// If forced end round or round skipped after pause +if (Round_ForceEndRound || Round_SkipPauseRound) { + MB_StopRound(); + Round_Skipped = False; +} +*** + ***Match_EndRound*** *** Race::StopSkipOutroAll();