]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/w_uzi.qc
Revert that last change, due to not working properly. It's not an urgent feature...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / w_uzi.qc
index 10390188d3e1bd63b8c6842c571bb4d1d4ec10cb..a02175884d9f9dd1c76272e2586ffede03600e18 100644 (file)
@@ -150,13 +150,6 @@ void uzi_mode1_fire_auto()
 {
        float uzi_spread;
 
-       // if there's not enough ammo for this attack (but we still have the weapon), reload
-       if(autocvar_g_balance_uzi_reload_ammo && self.clip_load < max(autocvar_g_balance_uzi_sustained_ammo, autocvar_g_balance_uzi_first_ammo))
-       {
-               W_UZI_Reload();
-               return;
-       }
-
        // if this weapon is reloadable, decrease its load. Else decrease the player's ammo
        if not(self.items & IT_UNLIMITED_WEAPON_AMMO)
        {
@@ -275,13 +268,6 @@ float w_uzi(float req)
                                        return FALSE;
                                }
 
-                               // if there's not enough ammo for this attack (but we still have the weapon), reload
-                               if(autocvar_g_balance_uzi_reload_ammo && self.clip_load < autocvar_g_balance_uzi_burst_ammo)
-                               {
-                                       W_UZI_Reload();
-                                       return;
-                               }
-
                                // if this weapon is reloadable, decrease its load. Else decrease the player's ammo
                                if not(self.items & IT_UNLIMITED_WEAPON_AMMO)
                                {