]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Ensure csqcmodel_isdead is reset each frame, fixes #2537
authorMario <mario.mario@y7mail.com>
Sun, 28 Feb 2021 07:50:40 +0000 (17:50 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 28 Feb 2021 07:50:51 +0000 (17:50 +1000)
qcsrc/client/csqcmodel_hooks.qc

index f53ea725c7d537403a7d785b7e21caf66cc82599..4c16176996b6f54e0bddfd27849f6da8f421bfc7 100644 (file)
@@ -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))