]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove the first code. Now that bots know how to reload their weapons during brakes...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 11 Feb 2011 22:49:30 +0000 (00:49 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 11 Feb 2011 22:49:30 +0000 (00:49 +0200)
qcsrc/server/bot/havocbot/havocbot.qc

index 40c95586d86968b77e6bc7ac1dbb0b9249e442b0..7463cfc6f0e9362f5bcdea43dddfb84b832ad7fa 100644 (file)
@@ -967,11 +967,6 @@ void havocbot_chooseweapon()
                return;
        }
 
-       // Do not change weapon while reloading. If we do, the bot risks switching betwen empty weapons
-       // before getting to reload them, shooting none of them at all, giving lower overall performance
-       if(self.weapon && self.clip_load < 1)
-               return;
-
        // Do not change weapon during the next second after a combo
        i = time - self.lastcombotime;
        if(i < 1)