mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-08 06:12:17 -05:00
Encounter: fix Max Ammo changing ammo incorrectly on weapons that have alt weapon
This commit is contained in:
parent
95c77f14c3
commit
5e15644cf7
@ -332,20 +332,29 @@ full_ammo_powerup( drop_item, player )
|
||||
x++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( isdefined( level.zombie_include_equipment ) && isdefined( level.zombie_include_equipment[ primary_weapons[ x ] ] ) )
|
||||
{
|
||||
x++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( isdefined( level.zombie_weapons_no_max_ammo ) && isdefined( level.zombie_weapons_no_max_ammo[ primary_weapons[ x ] ] ) )
|
||||
{
|
||||
x++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( players[ i ] hasweapon( primary_weapons[ x ] ) )
|
||||
{
|
||||
if(clip_only)
|
||||
{
|
||||
if (weaponMaxAmmo(primary_weapons[x]) == 0)
|
||||
{
|
||||
x++;
|
||||
continue;
|
||||
}
|
||||
|
||||
new_ammo = players[i] getWeaponAmmoStock(primary_weapons[x]) + weaponClipSize(primary_weapons[x]);
|
||||
if(weaponDualWieldWeaponName(primary_weapons[x]) != "none")
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user