]> git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/View.qc
Hide crosshair and skip helper voice when there's not enough power
[voretournament/voretournament.git] / data / qcsrc / client / View.qc
index f82cc299e6e3114067e0eae710ef24ac4e44ab2b..abe99a1447477dabd6cc522aad61e520e45f24dd 100644 (file)
@@ -300,6 +300,7 @@ void CSQC_UpdateView(float w, float h)
 \r
        // helper system\r
        if(cvar("cl_helper"))\r
+       if not(getstati(STAT_ARMOR) < g_power)\r
        {\r
                if(intermission || respawned || spectatee_status < 0 || getstati(STAT_HEALTH) <= 0 || getstati(STAT_VORE_EATEN))\r
                {\r
@@ -1158,6 +1159,7 @@ void CSQC_UpdateView(float w, float h)
                localcmd(strcat("bf ", cvar_string("cl_flash_respawn_color"), " ", cvar_string("cl_flash_respawn"), "\n"));\r
 \r
        if not(getstati(STAT_VORE_EATEN)) // crosshair is useless if we're in the stomach\r
+       if not(getstati(STAT_ARMOR) < g_power)\r
        {\r
                // crosshair goes VERY LAST\r
                if(!scoreboard_active && !ons_showmap && !camera_active) {\r