]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use real shotgun primary speed for bot aiming
authormand1nga <mand1nga@xonotic.org>
Thu, 18 Aug 2011 13:28:15 +0000 (10:28 -0300)
committermand1nga <mand1nga@xonotic.org>
Thu, 18 Aug 2011 13:28:15 +0000 (10:28 -0300)
qcsrc/server/w_shotgun.qc

index b77ed92252eb640d7131ac40431caf54dfc9458e..c4cc5f051e6568ac85d5a62dd87f68bf52a6aa04 100644 (file)
@@ -113,7 +113,7 @@ float w_shotgun(float req)
                if(vlen(self.origin-self.enemy.origin) <= autocvar_g_balance_shotgun_secondary_melee_range)
                        self.BUTTON_ATCK2 = bot_aim(1000000, 0, 0.001, FALSE);
                else
-                       self.BUTTON_ATCK = bot_aim(1000000, 0, 0.001, FALSE);
+                       self.BUTTON_ATCK = bot_aim(autocvar_g_balance_shotgun_primary_speed, 0, 0.001, FALSE);
        else if (req == WR_THINK)
        {
                if(autocvar_g_balance_shotgun_reload_ammo && self.clip_load < autocvar_g_balance_shotgun_primary_ammo) // forced reload