From f7e63a2f15819f897ef9d206e535232aceeaa79d Mon Sep 17 00:00:00 2001 From: LegendaryGuard Date: Thu, 29 Apr 2021 20:49:24 +0200 Subject: [PATCH] Fix visualization if server admin uses 'sv_ready_restart_after_countdown 1' --- qcsrc/common/gamemodes/gamemode/mmm/sv_mmm.qc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcsrc/common/gamemodes/gamemode/mmm/sv_mmm.qc b/qcsrc/common/gamemodes/gamemode/mmm/sv_mmm.qc index e822fbebe..c2931f967 100644 --- a/qcsrc/common/gamemodes/gamemode/mmm/sv_mmm.qc +++ b/qcsrc/common/gamemodes/gamemode/mmm/sv_mmm.qc @@ -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), { -- 2.39.2