From: mand1nga Date: Thu, 18 Aug 2011 13:53:21 +0000 (-0300) Subject: Take in account cvar g_antilag_bullets for aiming (only for shotgun for now) X-Git-Tag: xonotic-v0.5.0~118 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=39c23852345ce7e09c270a023d8b691c7151dc72;p=xonotic%2Fxonotic-data.pk3dir.git Take in account cvar g_antilag_bullets for aiming (only for shotgun for now) --- diff --git a/qcsrc/server/w_shotgun.qc b/qcsrc/server/w_shotgun.qc index c4cc5f051..9d80ff4a7 100644 --- a/qcsrc/server/w_shotgun.qc +++ b/qcsrc/server/w_shotgun.qc @@ -113,7 +113,13 @@ 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(autocvar_g_balance_shotgun_primary_speed, 0, 0.001, FALSE); + { + if(autocvar_g_antilag_bullets) + self.BUTTON_ATCK = bot_aim(1000000, 0, 0.001, FALSE); + else + 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