From: LegendaryGuard Date: Thu, 29 Apr 2021 18:49:24 +0000 (+0200) Subject: Fix visualization if server admin uses 'sv_ready_restart_after_countdown 1' X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f7e63a2f15819f897ef9d206e535232aceeaa79d;p=xonotic%2Fxonotic-data.pk3dir.git Fix visualization if server admin uses 'sv_ready_restart_after_countdown 1' --- 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), {