]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/view.qc
If the local player is dead, don't apply chase camera opacity changes
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / view.qc
index b1593cf3a222315b6f7d6c66514d0bb6c25932c6..0ccfbc74d98bea2657a4571d4240a5e1e1b76cd0 100644 (file)
@@ -980,7 +980,7 @@ void HUD_Crosshair(entity this)
                        if(csqcplayer && crosshair_chase_playeralpha && crosshair_chase_playeralpha < 1)
                        {
                                traceline(view_origin, view_origin + max_shot_distance * view_forward, MOVE_NORMAL, NULL);
-                               if(trace_ent == csqcplayer)
+                               if(trace_ent == csqcplayer && STAT(HEALTH) > 0)
                                        csqcplayer.alpha = crosshair_chase_playeralpha;
                                else
                                        csqcplayer.alpha = csqcplayer.m_alpha;