First step in making prey that have the same predator able to see each other in the...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 3 May 2011 21:41:30 +0000 (00:41 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 3 May 2011 21:41:30 +0000 (00:41 +0300)
data/qcsrc/server/cl_client.qc

index 0f80576..8513881 100644 (file)
@@ -530,6 +530,8 @@ float Client_customizeentityforclient()
        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\r
                self.alpha = -1; // hide all prey\r
        return TRUE;\r