]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix visualization if server admin uses 'sv_ready_restart_after_countdown 1'
authorLegendaryGuard <rootuser999@gmail.com>
Thu, 29 Apr 2021 18:49:24 +0000 (20:49 +0200)
committerLegendaryGuard <rootuser999@gmail.com>
Thu, 29 Apr 2021 18:49:24 +0000 (20:49 +0200)
qcsrc/common/gamemodes/gamemode/mmm/sv_mmm.qc

index e822fbebeac51b6d55983a698bd5c2716babe010..c2931f967f86c5f745f5fae200213ce8f1249b15 100644 (file)
@@ -941,6 +941,12 @@ MUTATOR_HOOKFUNCTION(mmm, CalculateRespawnTime)
        return true;
 }
 
+//if server admin sets "sv_ready_restart_after_countdown 1", will avoid possible visual failure for karma in the scoreboard
+MUTATOR_HOOKFUNCTION(mmm, ReadLevelCvars)
+{
+       sv_ready_restart_after_countdown = 0;
+}
+
 MUTATOR_HOOKFUNCTION(mmm, Bot_FixCount, CBC_ORDER_EXCLUSIVE)
 {
        FOREACH_CLIENT(IS_REAL_CLIENT(it), {