From: MirceaKitsune Date: Wed, 16 May 2012 11:12:40 +0000 (+0300) Subject: Content blur & color when being swallowed X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cb5957afd2605390664b47173dd49ff84e112049;p=voretournament%2Fvoretournament.git Content blur & color when being swallowed --- diff --git a/data/defaultVT.cfg b/data/defaultVT.cfg index 626bdb3d..929d95dc 100644 --- a/data/defaultVT.cfg +++ b/data/defaultVT.cfg @@ -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" seta hud_contents_stomach_alpha 0.2 "alpha of the stomach color blend when inside it" seta hud_contents_stomach_color "0.3 0.2 0" +seta hud_contents_swallow_alpha 0.2 "alpha of the swallow color blend while getting eaten" +seta hud_contents_swallow_color "0.3 0.25 0.2" seta hud_shownames 2 "1 = draw names of nearby team mates, 2 = also draw names of nearby enemies" seta hud_shownames_observers 1 "allow observers to see player names" diff --git a/data/qcsrc/client/View.qc b/data/qcsrc/client/View.qc index 8a6e09f9..4ae32330 100644 --- a/data/qcsrc/client/View.qc +++ b/data/qcsrc/client/View.qc @@ -708,6 +708,12 @@ void CSQC_UpdateView(float w, float h) liquidcolor = stov(cvar_string("hud_contents_stomach_color")); incontent = 1; } + else if(getstatf(STAT_VORE_PROGRESS_PREY)) + { + liquidalpha = cvar("hud_contents_swallow_alpha"); + liquidcolor = stov(cvar_string("hud_contents_swallow_color")); + incontent = 1; + } else { switch(pointcontents(view_origin))