]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/item/ammo.qc
Merge branch 'master' into cloudwalk9/mgburstfix
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / ammo.qc
index d7e0dcc6872d0d55b9d7b00aad234920acf5cb45..739d94aca1e8b3fb9954ce8a278570f96c6363cf 100644 (file)
@@ -1 +1,14 @@
 #include "ammo.qh"
+
+#ifdef SVQC
+
+METHOD(Shells, m_spawnfunc_hookreplace, GameItem(Shells this, entity e))
+{
+       if (autocvar_sv_q3acompat_machineshotgunswap && !Item_IsLoot(e))
+       {
+               return ITEM_Bullets;
+       }
+       return this;
+}
+
+#endif