]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Disable monster spawning in invasion mode
authorMario <mario.mario@y7mail.com>
Mon, 5 Aug 2013 20:24:39 +0000 (06:24 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 5 Aug 2013 20:24:39 +0000 (06:24 +1000)
qcsrc/server/command/cmd.qc

index 8655b6741f2ef44d8428bc946984405ed3a65b2a..a12fc3f14b1ea55f5539a2c9a8554e3c9f5b7a1b 100644 (file)
@@ -278,6 +278,7 @@ void ClientCommand_mobspawn(float request, float argc)
                        
                        if(autocvar_g_monsters_max <= 0 || autocvar_g_monsters_max_perplayer <= 0) { sprint(self, "Monster spawning is disabled.\n"); }
                        else if(!IS_PLAYER(self)) { sprint(self, "You can't spawn monsters while spectating.\n"); }
+                       else if(g_invasion) { sprint(self, "You can't spawn monsters during an invasion!\n"); }
                        else if not(autocvar_g_monsters) { Send_Notification(NOTIF_ONE, self, MSG_INFO, INFO_MONSTERS_DISABLED); }
                        else if(self.vehicle) { sprint(self, "You can't spawn monsters while driving a vehicle.\n"); }
                        else if(autocvar_g_campaign) { sprint(self, "You can't spawn monsters in campaign mode.\n"); }