From: MirceaKitsune Date: Fri, 25 Feb 2011 22:33:13 +0000 (+0200) Subject: Splash screen with green goo when inside the stomach. Effect needs to be smooth someh... X-Git-Url: https://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=c10867b8097107354812a99a03d4d3b4613d67a5 Splash screen with green goo when inside the stomach. Effect needs to be smooth somehow, though --- diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index de48ff47..dfdfba8d 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -1083,6 +1083,9 @@ seta hud_damage_pain_threshold_lower_health 50 "at which health we start lowerin seta hud_damage_pain_threshold_pulsating_min 0.6 "minimum value when calculating the pulse: max(pulsating_min, fabs(sin(PI * time / period))" seta hud_damage_pain_threshold_pulsating_period 0.8 "one pulse every X seconds" +seta hud_stomach 0.3 "displays a splash on the screen when inside the stomach, value specifies alpha" +seta hud_stomach_color "0.5 1 0" "color of the stomach screen splash" + seta hud_postprocessing 1 "enables the ability for effects such as hud_damage_blur and hud_contents to apply a postprocessing method upon the screen - enabling this disables manual editing of the postprocess cvars" seta hud_postprocessing_maxbluralpha 0.5 "maximum alpha which the blur postprocess can be" seta hud_postprocessing_maxblurradius 10 "maximum radius which the blur postprocess can be" diff --git a/data/qcsrc/client/View.qc b/data/qcsrc/client/View.qc index c91828e7..e6a94a07 100644 --- a/data/qcsrc/client/View.qc +++ b/data/qcsrc/client/View.qc @@ -590,6 +590,10 @@ void CSQC_UpdateView(float w, float h) } } + if(cvar("hud_stomach")) + if(getstati(STAT_VORE_EATEN)) + drawpic('0 0 0', "gfx/blood", '1 0 0' * vid_conwidth + '0 1 0' * vid_conheight, stov(cvar_string("hud_stomach_color")), cvar("hud_stomach"), DRAWFLAG_NORMAL); + if(cvar("hud_postprocessing")) { // lets apply the postprocess effects from the previous two functions if needed if(damage_blurpostprocess_x || content_blurpostprocess_x)