SERVER: Mitigate dual wield ammo duplication

This commit is contained in:
cypress 2024-09-01 19:22:33 -07:00
parent 1566782705
commit b257777f86

View file

@ -275,6 +275,11 @@ void() W_TakeOut =
void(float side) W_Give_Ammo = void(float side) W_Give_Ammo =
{ {
// Prevent ammo duplication when we have a low reserve
// amount when attempting to reload a Dual Wield weapon.
if (self.weapons[0].weapon_reserve == 0)
return;
float ammo_shot, max_mag, loadammo; float ammo_shot, max_mag, loadammo;
max_mag = getWeaponMag(self.weapon); max_mag = getWeaponMag(self.weapon);