]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Skip melee attack for shotgun while reloading
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 11 Feb 2011 20:20:03 +0000 (22:20 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 11 Feb 2011 20:20:03 +0000 (22:20 +0200)
qcsrc/server/w_shotgun.qc

index 38e7fef8d93c9bcc098149e9037af61349a80cef..788a578b2b2b659e4e1423d0850e1f4fce246e09 100644 (file)
@@ -131,6 +131,7 @@ float w_shotgun(float req)
                                }
                        }
                }
+               if (self.clip_load >= 0) // we are not currently reloading
                if (self.BUTTON_ATCK2 && autocvar_g_balance_shotgun_secondary)
                if (weapon_prepareattack(1, autocvar_g_balance_shotgun_secondary_refire))
                {