]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
If the local player is dead, don't apply chase camera opacity changes
authorMario <mario@smbclan.net>
Sun, 1 Sep 2019 12:51:50 +0000 (22:51 +1000)
committerMario <mario@smbclan.net>
Sun, 1 Sep 2019 12:51:50 +0000 (22:51 +1000)
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;