Pickup ked weapons multiply the bullets.
Posted: Mon Aug 02, 2021 7:40 am
There's a bug that provokes that the pickupked weapons multiplies the bullet with each pickup causing the ammo of each weapon get to unreasonable amounts.
In order to fix this issue simply replace the function SetUpPickUpWeapon(...) of bl_GunManager.cs with this:
In order to fix this issue simply replace the function SetUpPickUpWeapon(...) of bl_GunManager.cs with this:
Code: Select all
void SetUpPickUpWeapon(GunPickUpData data, bl_Gun gun, int slotID)
{
PlayerEquip[slotID] = gun;
gun.Setup(true);
if (gun.Info.Type == GunType.Grenade)
{
if (gun.bulletsLeft <= 0) gun.bulletsLeft = 1;
else
gun.numberOfClips++;
}
else
{
gun.bulletsLeft = data.Bullets;
gun.numberOfClips = data.Clips;
}
bl_UIReferences.Instance.PlayerUI.LoadoutUI.ReplaceSlot(slotID, gun);
}