From: Rudolf Polzer Date: Wed, 24 Aug 2011 09:46:06 +0000 (+0200) Subject: do not prevent shooting crylink secondary while holding primary fire to focus later X-Git-Tag: xonotic-v0.5.0~70 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ec211de001e35912c3792f0fee0716f9fe436124;p=xonotic%2Fxonotic-data.pk3dir.git do not prevent shooting crylink secondary while holding primary fire to focus later --- diff --git a/qcsrc/server/w_crylink.qc b/qcsrc/server/w_crylink.qc index d58f6e0dd..05f381f3b 100644 --- a/qcsrc/server/w_crylink.qc +++ b/qcsrc/server/w_crylink.qc @@ -532,7 +532,8 @@ float w_crylink(float req) { if(autocvar_g_balance_crylink_reload_ammo && self.clip_load < min(autocvar_g_balance_crylink_primary_ammo, autocvar_g_balance_crylink_secondary_ammo)) // forced reload weapon_action(self.weapon, WR_RELOAD); - else if (self.BUTTON_ATCK) + + if (self.BUTTON_ATCK) { if (self.crylink_waitrelease != 1) if (weapon_prepareattack(0, autocvar_g_balance_crylink_primary_refire)) @@ -543,7 +544,8 @@ float w_crylink(float req) self.crylink_waitrelease = 1; } } - else if(self.BUTTON_ATCK2 && autocvar_g_balance_crylink_secondary) + + if(self.BUTTON_ATCK2 && autocvar_g_balance_crylink_secondary) { if (self.crylink_waitrelease != 2) if (weapon_prepareattack(1, autocvar_g_balance_crylink_secondary_refire))