]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Fade prey out while swallowing them, to better simulate their "disappearing"
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 30 Jan 2012 21:01:36 +0000 (23:01 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 30 Jan 2012 21:01:36 +0000 (23:01 +0200)
data/defaultVT.cfg
data/qcsrc/server/cl_client.qc
docs/TODO.txt

index 6f1da7ddff7988210330e1071ecbaf5b7164857b..b74f225f33b4ecf3497821ad3479ca23158df12e 100644 (file)
@@ -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"\r
 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"\r
 set g_vore_swallowmodel_range 100 "Distance by which the swallow model oscillates based on swallow progress"\r
+set g_vore_swallowfade 1 "Players fade out while being swallowed"\r
 \r
 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"\r
 set g_healthsize 1 "Players shrink and grow based on health, by this amount"\r
index 33406554dd2ac92b7a0780b3b54c26205b6719ee..9a3a5dbe8edeb05d96129caa5bf76a05bb0c054e 100644 (file)
@@ -543,7 +543,12 @@ float Client_customizeentityforclient()
        Client_setmodel(setmodel_state());\r
        self.effects &~= EF_NODEPTHTEST;\r
        if not(self.stat_eaten)\r
+       {\r
                self.alpha = default_player_alpha;\r
+               if(cvar("g_vore_swallowfade"))\r
+               if not(other == self && !chase)\r
+                       self.alpha *= 1 - self.swallow_progress_prey; // fade players out as they are swallowed, to better simulate their disappearing\r
+       }\r
        else if(cvar("g_vore_neighborprey_distance") && self.predator == other.predator && !(chase || other.classname == "observer"))\r
        {\r
                self.alpha = default_player_alpha; // allow seeing neighboring prey\r
index f363c892374feb79001b1de277660200eb5feb0d..df1549103729e67434e53ac1cc7bbfb24bae2d24 100644 (file)
 - 0.7: Re-enable cl_deathfade.\r
 \r
 - 0.7: HUD icon when stunned.\r
+\r
+- 0.7: Better portrait images.
\ No newline at end of file