Cvar the distance by which prey are separated in the stomach. Setting the cvar to...
[voretournament/voretournament.git] / data / qcsrc / server / cl_client.qc
index 85138812266dc178a754a4cc478c7874d67d7446..ae99b3632a577d3b55be5aa328c120c9a9566dae 100644 (file)
@@ -530,10 +530,10 @@ 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(self.predator == other.predator && self != other && !(other.cvar_chase_active || other.classname == "observer"))\r
-               self.alpha = default_player_alpha;\r
+       else if(cvar("g_vore_preydistance") && self.predator == other.predator && self != other && !(other.cvar_chase_active || other.classname == "observer"))\r
+               self.alpha = default_player_alpha; // allow seeing neighboring prey\r
        else\r
        else\r
-               self.alpha = -1; // hide all prey\r
+               self.alpha = -1; // hide prey\r
        return TRUE;\r
 }\r
 \r
        return TRUE;\r
 }\r
 \r