]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Splash screen with green goo when inside the stomach. Effect needs to be smooth someh...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 25 Feb 2011 22:33:13 +0000 (00:33 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 25 Feb 2011 22:33:13 +0000 (00:33 +0200)
data/defaultVoretournament.cfg
data/qcsrc/client/View.qc

index de48ff47e1dee1f911dcdd715cbfcc71954786dd..dfdfba8d18428b3bb5e2c1416c4f77520b7d1818 100644 (file)
@@ -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))"\r
 seta hud_damage_pain_threshold_pulsating_period 0.8 "one pulse every X seconds"\r
 \r
+seta hud_stomach 0.3 "displays a splash on the screen when inside the stomach, value specifies alpha"\r
+seta hud_stomach_color "0.5 1 0" "color of the stomach screen splash"\r
+\r
 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"\r
 seta hud_postprocessing_maxbluralpha 0.5 "maximum alpha which the blur postprocess can be"\r
 seta hud_postprocessing_maxblurradius 10 "maximum radius which the blur postprocess can be"\r
index c91828e7b4cacf7f5fdc1fbc4f271d0441e83214..e6a94a0775415baf0d5473daf59a154fcd171848 100644 (file)
@@ -590,6 +590,10 @@ void CSQC_UpdateView(float w, float h)
                }\r
        }\r
 \r
+       if(cvar("hud_stomach"))\r
+       if(getstati(STAT_VORE_EATEN))\r
+               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);\r
+\r
        if(cvar("hud_postprocessing"))\r
        { // lets apply the postprocess effects from the previous two functions if needed\r
                if(damage_blurpostprocess_x || content_blurpostprocess_x)\r