From 0e78d6232815ee5ede113f2919ae6ff8b79c89c9 Mon Sep 17 00:00:00 2001 From: Lukas Bagaric Date: Wed, 18 Sep 2024 23:55:59 +0200 Subject: [PATCH] Fix Maps With Crazy Default TimeDilation Values --- USrc/MutVoteSys.uc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/USrc/MutVoteSys.uc b/USrc/MutVoteSys.uc index a595dce..08ed24d 100644 --- a/USrc/MutVoteSys.uc +++ b/USrc/MutVoteSys.uc @@ -80,7 +80,7 @@ event PostBeginPlay() { ApplyVotedPreset(); - SetTimer(Level.TimeDilation, true); + SetTimer(0.5, true); LoadConfig(); LoadHistory(); Info = Spawn(class'VS_Info', self); @@ -386,6 +386,11 @@ event Timer() { case GS_Travelling: break; } + + if (TimerRate != Level.TimeDilation) { + Log("TimeDilation has changed to"@Level.TimeDilation, 'VoteSys'); + SetTimer(Level.TimeDilation, true); + } } function CheckIdleTimeout() {