Half-Life: Add early ammo definitions for ammo_mp5clip and ammo_mp5grenades

This commit is contained in:
Marco Cawthorne 2019-09-01 10:09:49 +02:00
parent 3dee62271f
commit 0e70bc0ab6

View file

@ -26,7 +26,8 @@ void item_ammo::touch(void)
if (other.classname == "player") {
player pl = (player)other;
sound(other, CHAN_ITEM, "items/9mmclip1.wav", 1, ATTN_NORM);
Weapons_RefreshAmmo(pl);
if (cvar("sv_playerslots") == 1) {
remove(self);
} else {
@ -114,6 +115,7 @@ void ammo_9mmAR::touch(void)
}
}
}
CLASSEXPORT(ammo_mp5clip, ammo_9mmAR)
/*
* Ammo for the 9mm Handgun and the 9mm AR.
@ -192,6 +194,7 @@ void ammo_ARgrenades::touch(void)
}
}
}
CLASSEXPORT(ammo_mp5grenades, ammo_ARgrenades)
/*
* Ammo for the Shotgun.