]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix mutator_superspec supressing other cmds
authorJakob MG <jakob_mg@hotmail.com>
Fri, 17 Aug 2012 15:31:24 +0000 (17:31 +0200)
committerJakob MG <jakob_mg@hotmail.com>
Fri, 17 Aug 2012 15:31:24 +0000 (17:31 +0200)
qcsrc/server/mutators/mutator_superspec.qc

index 1666ac1da9293f325d8f69dbc8e88db39608ca0f..2adef63df180e9ecca21bff9e0274d96a54b156a 100644 (file)
@@ -14,7 +14,7 @@ MUTATOR_HOOKFUNCTION(superspec_SV_ParseClientCommand)
                return FALSE;
 
        if(self.classname == "player")
-               return TRUE;
+               return FALSE;
 
        if(cmd_name == "followpowerup")
        {
@@ -24,6 +24,7 @@ MUTATOR_HOOKFUNCTION(superspec_SV_ParseClientCommand)
                        if(_player.strength_finished > time || _player.invincible_finished > time)
                                return _spectate(_player);
                }
+               
                centerprint(self, "No active powerups\n");
                return TRUE;
        }
@@ -36,6 +37,7 @@ MUTATOR_HOOKFUNCTION(superspec_SV_ParseClientCommand)
                        if(_player.strength_finished > time)
                                return _spectate(_player);
                }
+               
                centerprint(self, "No active Strength\n");
                return TRUE;
        }
@@ -48,6 +50,7 @@ MUTATOR_HOOKFUNCTION(superspec_SV_ParseClientCommand)
                        if(_player.invincible_finished > time)
                                return _spectate(_player);
                }
+               
                centerprint(self, "No active Shield\n");
                return TRUE;
        }
@@ -74,7 +77,7 @@ MUTATOR_HOOKFUNCTION(superspec_SV_ParseClientCommand)
                                return _spectate(_player);
                }
                
-               centerprint(self, "No active FC\n");
+               centerprint(self, "No active flag carrier\n");
                return TRUE;
        }