From: Mario Date: Mon, 6 Jan 2020 11:56:25 +0000 (+1000) Subject: Disable bloodloss when the match has ended, fixes cases where players instantly die... X-Git-Tag: xonotic-v0.8.5~1105^2~48 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a3cc037838005a780d93f9e6c209615abff34abf;p=xonotic%2Fxonotic-data.pk3dir.git Disable bloodloss when the match has ended, fixes cases where players instantly die during intermission --- 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)) {