From: mand1nga Date: Thu, 18 Aug 2011 12:57:34 +0000 (-0300) Subject: Fix rifle aim for bots X-Git-Tag: xonotic-v0.5.0~120 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=09513c82a417d25c8e2f460bd1d85945118b7054;p=xonotic%2Fxonotic-data.pk3dir.git Fix rifle aim for bots --- diff --git a/qcsrc/server/w_rifle.qc b/qcsrc/server/w_rifle.qc index d89d44571..02d859e0f 100644 --- a/qcsrc/server/w_rifle.qc +++ b/qcsrc/server/w_rifle.qc @@ -116,7 +116,7 @@ float w_rifle(float req) self.bot_secondary_riflemooth = 0; if(self.bot_secondary_riflemooth == 0) { - if(bot_aim(autocvar_g_balance_rifle_primary_speed, 0, autocvar_g_balance_rifle_primary_lifetime, TRUE)) + if(bot_aim(autocvar_g_balance_rifle_primary_speed, 0, autocvar_g_balance_rifle_primary_lifetime, FALSE)) { self.BUTTON_ATCK = TRUE; if(random() < 0.01) self.bot_secondary_riflemooth = 1; @@ -124,7 +124,7 @@ float w_rifle(float req) } else { - if(bot_aim(autocvar_g_balance_rifle_secondary_speed, 0, autocvar_g_balance_rifle_secondary_lifetime, TRUE)) + if(bot_aim(autocvar_g_balance_rifle_secondary_speed, 0, autocvar_g_balance_rifle_secondary_lifetime, FALSE)) { self.BUTTON_ATCK2 = TRUE; if(random() < 0.03) self.bot_secondary_riflemooth = 0; @@ -147,7 +147,7 @@ float w_rifle(float req) self.rifle_accumulator += autocvar_g_balance_rifle_primary_burstcost; } if (self.BUTTON_ATCK2) - { + { if (autocvar_g_balance_rifle_secondary) { if(autocvar_g_balance_rifle_secondary_reload)