]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Do not apply v_deathtilt when observing and during the intermission
authorterencehill <piuntn@gmail.com>
Sat, 30 Apr 2016 20:39:19 +0000 (22:39 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 30 Apr 2016 20:39:19 +0000 (22:39 +0200)
qcsrc/lib/csqcmodel/cl_player.qc

index 13fb92749386f7ce5e6806e20879bce88e14ed59..0b0de75649aab42d97851711fca47dd1342c8bf8 100644 (file)
@@ -333,7 +333,7 @@ void CSQCPlayer_SetCamera()
                if (view.csqcmodel_teleported) refdefflags |= REFDEFFLAG_TELEPORTED;
                if (input_buttons & BIT(1)) refdefflags |= REFDEFFLAG_JUMPING;
                // note: these two only work in WIP2, but are harmless in WIP1
-               if (STAT(HEALTH) <= 0) refdefflags |= REFDEFFLAG_DEAD;
+               if (STAT(HEALTH) <= 0 && STAT(HEALTH) != -666 && STAT(HEALTH) != -2342) refdefflags |= REFDEFFLAG_DEAD;
                if (intermission) refdefflags |= REFDEFFLAG_INTERMISSION;
                V_CalcRefdef(view, refdefflags);
        }