]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/cl_client.qc
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 0f8057656039549adea22e0f25273c7fe215df36..ae99b3632a577d3b55be5aa328c120c9a9566dae 100644 (file)
@@ -530,8 +530,10 @@ float Client_customizeentityforclient()
        Client_setmodel(setmodel_state());\r
        if not(self.stat_eaten || self.fakeprey)\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
-               self.alpha = -1; // hide all prey\r
+               self.alpha = -1; // hide prey\r
        return TRUE;\r
 }\r
 \r