From: Mario Date: Sun, 1 Sep 2019 12:51:50 +0000 (+1000) Subject: If the local player is dead, don't apply chase camera opacity changes X-Git-Tag: xonotic-v0.8.5~1332 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=16b303d5bb5e12b32d43b7e7a2cb33edc872545d;p=xonotic%2Fxonotic-data.pk3dir.git If the local player is dead, don't apply chase camera opacity changes --- 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;