From: MirceaKitsune Date: Fri, 25 Feb 2011 23:19:42 +0000 (+0200) Subject: Also remove the stomach splash effect for observers X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0ddbfb3d7e979c9e08aca34a06af4d1a116bde35;p=voretournament%2Fvoretournament.git Also remove the stomach splash effect for observers --- diff --git a/data/qcsrc/client/View.qc b/data/qcsrc/client/View.qc index 9f517b20..0b37bef0 100644 --- a/data/qcsrc/client/View.qc +++ b/data/qcsrc/client/View.qc @@ -607,11 +607,13 @@ void CSQC_UpdateView(float w, float h) else stomachsplash_alpha = 0; } - if (getstati(STAT_HEALTH) <= 0) + if(getstati(STAT_HEALTH) <= 0) stomachsplash_remove_at_respawn = 1; // schedule the effect to be removed next respawn if(getstati(STAT_HEALTH) > 0 && stomachsplash_remove_at_respawn) stomachsplash_alpha = stomachsplash_remove_at_respawn = 0; // we respawned, remove the effect + if(spectatee_status == -1) + stomachsplash_alpha = 0; stomachsplash_alpha = bound(0, stomachsplash_alpha, 1); drawpic('0 0 0', "gfx/food", '1 0 0' * vid_conwidth + '0 1 0' * vid_conheight, stov(cvar_string("hud_stomach_color")), stomachsplash_alpha, DRAWFLAG_NORMAL);