]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/item/ammo.qc
Completely removed droppedweapon.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / ammo.qc
index 38a0a022a92b818defcd6a67456826de4703f82c..3a13a1f81855c51c2eaeea4bea5adda6e10c07b3 100644 (file)
@@ -4,7 +4,7 @@
 
 METHOD(Bullets, m_spawnfunc_hookreplace, GameItem(Bullets this, entity e))
 {
-       if (autocvar_sv_q3acompat_machineshotgunswap && e.classname != "droppedweapon")
+       if (autocvar_sv_q3acompat_machineshotgunswap && !Item_IsLoot(e))
        {
                return ITEM_Shells;
        }
@@ -13,7 +13,7 @@ METHOD(Bullets, m_spawnfunc_hookreplace, GameItem(Bullets this, entity e))
 
 METHOD(Shells, m_spawnfunc_hookreplace, GameItem(Shells this, entity e))
 {
-       if (autocvar_sv_q3acompat_machineshotgunswap && e.classname != "droppedweapon")
+       if (autocvar_sv_q3acompat_machineshotgunswap && !Item_IsLoot(e))
        {
                return ITEM_Bullets;
        }