From a3cc037838005a780d93f9e6c209615abff34abf Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 6 Jan 2020 21:56:25 +1000 Subject: [PATCH] Disable bloodloss when the match has ended, fixes cases where players instantly die during intermission --- qcsrc/common/mutators/mutator/bloodloss/sv_bloodloss.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/common/mutators/mutator/bloodloss/sv_bloodloss.qc b/qcsrc/common/mutators/mutator/bloodloss/sv_bloodloss.qc index a89691d20..95356bb4f 100644 --- a/qcsrc/common/mutators/mutator/bloodloss/sv_bloodloss.qc +++ b/qcsrc/common/mutators/mutator/bloodloss/sv_bloodloss.qc @@ -9,6 +9,9 @@ MUTATOR_HOOKFUNCTION(bloodloss, PlayerPreThink) { entity player = M_ARGV(0, entity); + if(game_stopped) + return; // during intermission, the player's health changes to strange values for the engine, let's not cause damage during this phase! + if(IS_PLAYER(player)) if(GetResource(player, RES_HEALTH) <= autocvar_g_bloodloss && !IS_DEAD(player)) { -- 2.39.2