]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Disable crosshair_chase if cl_lockview is enabled
authorterencehill <piuntn@gmail.com>
Mon, 27 Sep 2021 20:15:30 +0000 (22:15 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 27 Sep 2021 20:15:30 +0000 (22:15 +0200)
qcsrc/client/hud/crosshair.qc

index c697268eb4d2ef82928b800ee5771e5cc302ad8e..cf2c01d971f134ec41ca51d1e04e175c83c9cf00 100644 (file)
@@ -229,7 +229,7 @@ void HUD_Crosshair(entity this)
        if(autocvar_chase_active > 0 && autocvar_crosshair_chase && STAT(HEALTH) <= 0 && csqcplayer)
                csqcplayer.alpha = csqcplayer.m_alpha;
 
-       if (autocvar_chase_active > 0 && autocvar_chase_front)
+       if (autocvar_chase_active > 0 && (autocvar_chase_front || autocvar_cl_lockview))
        {
                if (csqcplayer.alpha != csqcplayer.m_alpha)
                        HUD_Crosshair_ApplyPlayerAlpha(csqcplayer.m_alpha);