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 b1593cf..0ccfbc7 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;