]> git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/cl_weapons.qc
Fix some issues with weapon reloading
[voretournament/voretournament.git] / data / qcsrc / server / cl_weapons.qc
index 8f4f600246344bd3eccfb2788a4cb7b6e07f0548..3599e378cfc96669c282450dd2081844fd1d74a0 100644 (file)
@@ -1,5 +1,9 @@
 void W_TriggerReload()\r
 {\r
+       // don't trigger reload if holding the weapon attack button\r
+       if(self.BUTTON_ATCK2)\r
+               return;\r
+\r
     weapon_action(self.weapon, WR_RELOAD);\r
 }\r
 \r