From 01456fb8758954b3d8824e5750acee6fb8117544 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 28 Feb 2021 17:50:40 +1000 Subject: [PATCH] Ensure csqcmodel_isdead is reset each frame, fixes #2537 --- qcsrc/client/csqcmodel_hooks.qc | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index f53ea725c..4c1617699 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -738,6 +738,7 @@ void CSQCModel_Hook_PostUpdate(entity this, bool isnew, bool isplayer, bool islo bool is_playermodel = (substring(this.model, 0, 14) == "models/player/" || substring(this.model, 0, 17) == "models/ok_player/" || (substring(this.model, 0, 16) == "models/monsters/" && (this.isplayermodel & BIT(1)))); this.isplayermodel = BITSET(this.isplayermodel, ISPLAYER_MODEL, is_playermodel); + this.csqcmodel_isdead = false; // workaround for dead players who become a spectator // save values set by server if((this.isplayermodel & ISPLAYER_MODEL)) -- 2.39.2