]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Content blur & color when being swallowed
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 16 May 2012 11:12:40 +0000 (14:12 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 16 May 2012 11:12:40 +0000 (14:12 +0300)
data/defaultVT.cfg
data/qcsrc/client/View.qc

index 626bdb3d5f935ba9240b602d96ac7c3175881dd3..929d95dcc7f2991dbd3e3833cb65ee3c062890d0 100644 (file)
@@ -1220,6 +1220,8 @@ seta hud_contents_water_alpha 0.5 "alpha of the water color blend when inside it
 seta hud_contents_water_color "0.4 0.3 0.3"\r
 seta hud_contents_stomach_alpha 0.2 "alpha of the stomach color blend when inside it"\r
 seta hud_contents_stomach_color "0.3 0.2 0"\r
+seta hud_contents_swallow_alpha 0.2 "alpha of the swallow color blend while getting eaten"\r
+seta hud_contents_swallow_color "0.3 0.25 0.2"\r
 \r
 seta hud_shownames 2 "1 = draw names of nearby team mates, 2 = also draw names of nearby enemies"\r
 seta hud_shownames_observers 1 "allow observers to see player names"\r
index 8a6e09f9f18def4a5386f9518d0e603d0c425b99..4ae32330cffaff82eac8d8ecee237751ed20263d 100644 (file)
@@ -708,6 +708,12 @@ void CSQC_UpdateView(float w, float h)
                        liquidcolor = stov(cvar_string("hud_contents_stomach_color"));\r
                        incontent = 1;\r
                }\r
+               else if(getstatf(STAT_VORE_PROGRESS_PREY))\r
+               {\r
+                       liquidalpha = cvar("hud_contents_swallow_alpha");\r
+                       liquidcolor = stov(cvar_string("hud_contents_swallow_color"));\r
+                       incontent = 1;\r
+               }\r
                else\r
                {\r
                        switch(pointcontents(view_origin))\r