]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Hide crosshair and skip helper voice when there's not enough power
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 15 Nov 2011 19:57:52 +0000 (21:57 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 15 Nov 2011 19:57:52 +0000 (21:57 +0200)
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