From: MirceaKitsune Date: Mon, 30 Jan 2012 21:01:36 +0000 (+0200) Subject: Fade prey out while swallowing them, to better simulate their "disappearing" X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=caf447a8fd16f4331d14cd576298260df10dd3e5;p=voretournament%2Fvoretournament.git Fade prey out while swallowing them, to better simulate their "disappearing" --- diff --git a/data/defaultVT.cfg b/data/defaultVT.cfg index 6f1da7dd..b74f225f 100644 --- a/data/defaultVT.cfg +++ b/data/defaultVT.cfg @@ -1637,6 +1637,7 @@ set g_vore_regurgitatecolor_particles 0.75 "players who are dirty from regurgita set g_vore_neighborprey_distance 4 "Distance by which prey inside the same stomach are positioned away from each other. 0 disables seeing neighboring prey" set g_vore_neighborprey_distance_item 16 "Distance by which items inside the same stomach are positioned away from each other. 0 disables seeing neighboring items" set g_vore_swallowmodel_range 100 "Distance by which the swallow model oscillates based on swallow progress" +set g_vore_swallowfade 1 "Players fade out while being swallowed" seta cl_healthsize_fov 0.2 "offset field of view by this amount based on size, to further induce the effect of being large or small" set g_healthsize 1 "Players shrink and grow based on health, by this amount" diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 33406554..9a3a5dbe 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -543,7 +543,12 @@ float Client_customizeentityforclient() Client_setmodel(setmodel_state()); self.effects &~= EF_NODEPTHTEST; if not(self.stat_eaten) + { self.alpha = default_player_alpha; + if(cvar("g_vore_swallowfade")) + if not(other == self && !chase) + self.alpha *= 1 - self.swallow_progress_prey; // fade players out as they are swallowed, to better simulate their disappearing + } else if(cvar("g_vore_neighborprey_distance") && self.predator == other.predator && !(chase || other.classname == "observer")) { self.alpha = default_player_alpha; // allow seeing neighboring prey diff --git a/docs/TODO.txt b/docs/TODO.txt index f363c892..df154910 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -131,3 +131,5 @@ - 0.7: Re-enable cl_deathfade. - 0.7: HUD icon when stunned. + +- 0.7: Better portrait images. \ No newline at end of file