From cb5957afd2605390664b47173dd49ff84e112049 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Wed, 16 May 2012 14:12:40 +0300 Subject: [PATCH] Content blur & color when being swallowed --- data/defaultVT.cfg | 2 ++ data/qcsrc/client/View.qc | 6 ++++++ 2 files changed, 8 insertions(+) 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)) -- 2.39.2