]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/weapons/selection.qc
Offhand: fix ammo consumption
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / selection.qc
index 7b5eb25ef45a6a22ac9c2c10c00ef30939c45958..afc445cb26d6fb5c8348a15e2c6c5abc04ecd887 100644 (file)
@@ -24,8 +24,8 @@ float client_hasweapon(entity cl, float wpn, float andammo, float complain)
        if(time < self.hasweapon_complain_spam)
                complain = 0;
 
-       // ignore hook button when using nades without hook
-       if (autocvar_g_nades && cl.offhand != OFFHAND_HOOK)
+       // ignore hook button when using other offhand equipment
+       if (cl.offhand != OFFHAND_HOOK)
        if (wpn == WEP_HOOK.m_id && !((cl.weapons | weaponsInMap) & WepSet_FromWeapon(wpn)))
            complain = 0;