]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Fix a bug where the grabber would still stick to a player after he's been swallowed...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 8 Sep 2010 00:13:59 +0000 (03:13 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 8 Sep 2010 00:13:59 +0000 (03:13 +0300)
data/qcsrc/server/g_grabber.qc

index dee5461c9e4af6daf7f5a648ee9713e5bc089d5f..07a21b30c506b28a3d209877b77fb0cd21a47144 100644 (file)
@@ -131,6 +131,10 @@ void GrabberThink()
        if(self.aiment)\r
                WarpZone_RefSys_AddIncrementally(self, self.aiment);\r
 \r
+       // prevent the grabber from sticking to a player that has been swallowed\r
+       if(self.aiment.eater.classname == "player")\r
+               RemoveGrabber(self.owner);\r
+\r
        self.nextthink = time;\r
 \r
        makevectors(self.owner.v_angle);\r