From: MirceaKitsune Date: Wed, 8 Sep 2010 00:13:59 +0000 (+0300) Subject: Fix a bug where the grabber would still stick to a player after he's been swallowed... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bf4addf59a3a2ee1a3b691e3cf353581a4c05e81;p=voretournament%2Fvoretournament.git Fix a bug where the grabber would still stick to a player after he's been swallowed. If you kept holding the fire button down while bringing a player toward you with the grabber, you would have the gun sticking to you (the player inside you) if you still held the fire button pressed. --- diff --git a/data/qcsrc/server/g_grabber.qc b/data/qcsrc/server/g_grabber.qc index dee5461c..07a21b30 100644 --- a/data/qcsrc/server/g_grabber.qc +++ b/data/qcsrc/server/g_grabber.qc @@ -131,6 +131,10 @@ void GrabberThink() if(self.aiment) WarpZone_RefSys_AddIncrementally(self, self.aiment); + // prevent the grabber from sticking to a player that has been swallowed + if(self.aiment.eater.classname == "player") + RemoveGrabber(self.owner); + self.nextthink = time; makevectors(self.owner.v_angle);