]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/w_grabber.qc
Use self.stat_eaten instead of checking self.predator.classname. Also adjust the...
[voretournament/voretournament.git] / data / qcsrc / server / w_grabber.qc
index 30d7131c4901d74e0df3712d7656fe1c4bbb5f66..ba0afe738c4a50d53d1d4ad084653898f2255e2e 100644 (file)
@@ -62,7 +62,7 @@ void spawnfunc_weapon_grabber (void)
 \r
 float w_grabber(float req)\r
 {\r
-       if(self.predator.classname == "player") // we can't use weapons while in the stomach\r
+       if(self.stat_eaten) // we can't use weapons while in the stomach\r
        {\r
                self.grabber_state |= GRABBER_REMOVING;\r
                return FALSE;\r