]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add some checks to prevent players throwing nades instantly after re-spawning
authorMario <mario.mario@y7mail.com>
Sun, 26 May 2013 12:07:58 +0000 (22:07 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 26 May 2013 12:07:58 +0000 (22:07 +1000)
qcsrc/server/mutators/mutator_riflearena.qc

index 841e76dbfd2a1961f05030a97daec8d543c54bae..b9af805093ed7ff4b00013d391975b1e8d98c795 100644 (file)
@@ -9,6 +9,12 @@ float ra_CanThrowNade()
        if(gameover)
                return FALSE;
                
+       if(self.deadflag)
+               return FALSE;
+               
+       if not(IS_PLAYER(self))
+               return FALSE;
+               
        if not(autocvar_g_riflearena_nades)
                return FALSE;