-REGISTER_AMMO(Bullets
- , model = "models/items/a_bullets.mdl"
- , sound = "misc/itempickup.wav"
- , name = "bullets"
- , itemid = IT_NAILS
- , botvalue = 2000
-)
-REGISTER_AMMO(Cells
- , model = "models/items/a_cells.md3"
- , sound = "misc/itempickup.wav"
- , name = "cells"
- , itemid = IT_ROCKETS
- , botvalue = 2000
-)
-REGISTER_AMMO(Plasma
- , model = "models/items/a_cells.md3"
- , sound = "misc/itempickup.wav"
- , name = "plasma"
- , itemid = IT_ROCKETS
- , botvalue = 2000
-)
-REGISTER_AMMO(Rockets
- , model = "models/items/a_rockets.md3"
- , sound = "misc/itempickup.wav"
- , name = "rockets"
- , itemid = IT_ROCKETS
- , botvalue = 3000
-)
-REGISTER_AMMO(Shells
- , model = "models/items/a_shells.md3"
- , sound = "misc/itempickup.wav"
- , name = "shells"
- , itemid = IT_SHELLS
- , botvalue = 500
-)
+METHOD(Shells, m_spawnfunc_hookreplace, GameItem(Shells this, entity e))
+{
+ if (autocvar_sv_q3acompat_machineshotgunswap && !Item_IsLoot(e))
+ {
+ return ITEM_Bullets;
+ }
+ return this;
+}