]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
prey stealing: Don't do it for team mates
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 8 Sep 2010 16:07:39 +0000 (19:07 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 8 Sep 2010 16:07:39 +0000 (19:07 +0300)
data/qcsrc/server/vore.qc

index cbda069082843c94cdd70fe7e0c80b73c09695f4..ce70da9a76ae482be41f041c67e29aaf3c70c218 100644 (file)
@@ -394,6 +394,7 @@ void Vore()
 \r
                Vore_Regurgitate(self);\r
                if(random() < cvar("g_vore_stealprey"))\r
+               if(self.predator.team != target_predator.team) // don't steal a team mate's prey\r
                if(Swallow_condition_check(self))\r
                {\r
                        oldself = self;\r