From: MirceaKitsune Date: Tue, 3 May 2011 21:41:30 +0000 (+0300) Subject: First step in making prey that have the same predator able to see each other in the... X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=3e17be488986726acf1f75df3562c2e1fa2e3294;ds=sidebyside First step in making prey that have the same predator able to see each other in the stomach. The model for other prey will now be shown. However, each "occupant" must be positioned properly, else all models will just overlap in the center... which is the harder part to fix. --- diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 0f805765..85138812 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -530,6 +530,8 @@ float Client_customizeentityforclient() Client_setmodel(setmodel_state()); if not(self.stat_eaten || self.fakeprey) self.alpha = default_player_alpha; + else if(self.predator == other.predator && self != other && !(other.cvar_chase_active || other.classname == "observer")) + self.alpha = default_player_alpha; else self.alpha = -1; // hide all prey return TRUE;