]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/items/item/ammo.qc
Merge branch 'martin-t/warns' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / ammo.qc
1 #include "ammo.qh"
2
3 #ifdef SVQC
4
5 METHOD(Bullets, m_spawnfunc_hookreplace, GameItem(Bullets this, entity e))
6 {
7         if (autocvar_sv_q3acompat_machineshotgunswap && !Item_IsLoot(e))
8         {
9                 return ITEM_Shells;
10         }
11         return this;
12 }
13
14 METHOD(Shells, m_spawnfunc_hookreplace, GameItem(Shells this, entity e))
15 {
16         if (autocvar_sv_q3acompat_machineshotgunswap && !Item_IsLoot(e))
17         {
18                 return ITEM_Bullets;
19         }
20         return this;
21 }
22
23 #endif