mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-21 11:21:14 +00:00
SERVER: Mitigate dual wield ammo duplication
This commit is contained in:
parent
1566782705
commit
b257777f86
1 changed files with 5 additions and 0 deletions
|
@ -275,6 +275,11 @@ void() W_TakeOut =
|
|||
|
||||
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;
|
||||
|
||||
max_mag = getWeaponMag(self.weapon);
|
||||
|
|
Loading…
Reference in a new issue