void Grabber_Stop()\r
{\r
pointparticles(particleeffectnum("grabber_impact"), self.origin, '0 0 0', 1);\r
- sound (self, CHAN_PROJECTILE, "weapons/grabber_impact.wav", VOL_BASE, ATTN_NORM);\r
+ if(other.classname == "player")\r
+ sound (self, CHAN_PROJECTILE, "weapons/grabber_impact_player.wav", VOL_BASE, ATTN_NORM);\r
+ else\r
+ sound (self, CHAN_PROJECTILE, "weapons/grabber_impact_world.wav", VOL_BASE, ATTN_NORM);\r
\r
self.state = 1;\r
- self.think =GrabberThink;\r
+ self.think = GrabberThink;\r
self.nextthink = time;\r
self.touch = SUB_Null;\r
self.velocity = '0 0 0';\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.predator.classname == "player")\r
+ if(self.aiment.stat_eaten)\r
{\r
// if the grabber is linked to a player that we swallowed, disconnect it (or the grabber will stick to us / the player inside us)\r
// otherwise, link the grabber to the player who ate our linked player\r