From: Mircea Kitsune Date: Fri, 11 Feb 2011 22:49:30 +0000 (+0200) Subject: Remove the first code. Now that bots know how to reload their weapons during brakes... X-Git-Tag: xonotic-v0.5.0~309^2~7^2~30 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6110f5b7f8b966f961eff44f0161e6b3cef2c1d9;p=xonotic%2Fxonotic-data.pk3dir.git Remove the first code. Now that bots know how to reload their weapons during brakes, it might be less intelligent to not switch while reloading during combat. --- diff --git a/qcsrc/server/bot/havocbot/havocbot.qc b/qcsrc/server/bot/havocbot/havocbot.qc index 40c95586d..7463cfc6f 100644 --- a/qcsrc/server/bot/havocbot/havocbot.qc +++ b/qcsrc/server/bot/havocbot/havocbot.qc @@ -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)