X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fitems%2Fitem%2Fammo.qc;h=48ca0ddab6947f2dd320a96d5644983f4a055ee4;hb=350dd64390082f01f29e0d4e4ef70390ba700219;hp=3a13a1f81855c51c2eaeea4bea5adda6e10c07b3;hpb=2d5f6090a4faee9716a9c149b9ac6927cc3bb9db;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/items/item/ammo.qc b/qcsrc/common/items/item/ammo.qc index 3a13a1f81..48ca0ddab 100644 --- a/qcsrc/common/items/item/ammo.qc +++ b/qcsrc/common/items/item/ammo.qc @@ -1,23 +1,2 @@ #include "ammo.qh" -#ifdef SVQC - -METHOD(Bullets, m_spawnfunc_hookreplace, GameItem(Bullets this, entity e)) -{ - if (autocvar_sv_q3acompat_machineshotgunswap && !Item_IsLoot(e)) - { - return ITEM_Shells; - } - return this; -} - -METHOD(Shells, m_spawnfunc_hookreplace, GameItem(Shells this, entity e)) -{ - if (autocvar_sv_q3acompat_machineshotgunswap && !Item_IsLoot(e)) - { - return ITEM_Bullets; - } - return this; -} - -#endif