Let's not forget the fake prey
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 3 May 2011 23:06:32 +0000 (02:06 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 3 May 2011 23:06:32 +0000 (02:06 +0300)
data/qcsrc/server/cl_client.qc

index 33a0018..69404cb 100644 (file)
@@ -530,7 +530,7 @@ float Client_customizeentityforclient()
        Client_setmodel(setmodel_state());\r
        if not(self.stat_eaten || self.fakeprey)\r
                self.alpha = default_player_alpha;\r
        Client_setmodel(setmodel_state());\r
        if not(self.stat_eaten || self.fakeprey)\r
                self.alpha = default_player_alpha;\r
-       else if(cvar("g_vore_neighborprey_distance") && self.predator == other.predator && self != other && !(other.cvar_chase_active || other.classname == "observer"))\r
+       else if(cvar("g_vore_neighborprey_distance") && (self.predator == other.predator || self.predator == other.fakepredator) && self != other && !(other.cvar_chase_active || other.classname == "observer"))\r
                self.alpha = default_player_alpha; // allow seeing neighboring prey\r
        else\r
                self.alpha = -1; // hide prey\r
                self.alpha = default_player_alpha; // allow seeing neighboring prey\r
        else\r
                self.alpha = -1; // hide prey\r
@@ -2305,7 +2305,7 @@ void SetPlayerSize()
 \r
        if(self.stat_eaten && cvar("g_vore_neighborprey_distance"))\r
        {\r
 \r
        if(self.stat_eaten && cvar("g_vore_neighborprey_distance"))\r
        {\r
-               // resize prey\r
+               // resize prey if neighborprey is enabled\r
                self.scale *= cvar("g_vore_neighborprey_scale");\r
        }\r
 }\r
                self.scale *= cvar("g_vore_neighborprey_scale");\r
        }\r
 }\r