From d98e976dfdc4c333cab110559fa0f2377182f97d Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Tue, 15 Nov 2011 21:57:52 +0200 Subject: [PATCH] Hide crosshair and skip helper voice when there's not enough power --- data/qcsrc/client/View.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/qcsrc/client/View.qc b/data/qcsrc/client/View.qc index f82cc299..abe99a14 100644 --- a/data/qcsrc/client/View.qc +++ b/data/qcsrc/client/View.qc @@ -300,6 +300,7 @@ void CSQC_UpdateView(float w, float h) // helper system if(cvar("cl_helper")) + if not(getstati(STAT_ARMOR) < g_power) { if(intermission || respawned || spectatee_status < 0 || getstati(STAT_HEALTH) <= 0 || getstati(STAT_VORE_EATEN)) { @@ -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")); if not(getstati(STAT_VORE_EATEN)) // crosshair is useless if we're in the stomach + if not(getstati(STAT_ARMOR) < g_power) { // crosshair goes VERY LAST if(!scoreboard_active && !ons_showmap && !camera_active) { -- 2.39.2