From 482e24244ca215aefcadd2a82ae8ee5921db6d7d Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 11 Apr 2021 23:41:45 +0200 Subject: [PATCH] Fix slow revival progress speed when reviving a player frozen by an ice nade --- qcsrc/common/mutators/mutator/nades/nades.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcsrc/common/mutators/mutator/nades/nades.qc b/qcsrc/common/mutators/mutator/nades/nades.qc index 599edf926..a75a00804 100644 --- a/qcsrc/common/mutators/mutator/nades/nades.qc +++ b/qcsrc/common/mutators/mutator/nades/nades.qc @@ -1369,6 +1369,8 @@ MUTATOR_HOOKFUNCTION(nades, PlayerPreThink) if (n > 0 && STAT(FROZEN, player) == FROZEN_TEMP_DYING) // OK, there is at least one teammate reviving us { STAT(REVIVE_PROGRESS, player) = bound(0, STAT(REVIVE_PROGRESS, player) + frametime * max(1/60, autocvar_g_freezetag_revive_speed), 1); + // undo what PlayerPreThink did + STAT(REVIVE_PROGRESS, player) = bound(0, STAT(REVIVE_PROGRESS, player) + frametime * player.revive_speed, 1); SetResource(player, RES_HEALTH, max(1, STAT(REVIVE_PROGRESS, player) * start_health)); if(STAT(REVIVE_PROGRESS, player) >= 1) -- 2.39.2