From 16b303d5bb5e12b32d43b7e7a2cb33edc872545d Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 1 Sep 2019 22:51:50 +1000 Subject: [PATCH] If the local player is dead, don't apply chase camera opacity changes --- qcsrc/client/view.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index b1593cf3a..0ccfbc74d 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -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; -- 2.39.2