Pickup ked weapons multiply the bullets.

Report errors found in any assets.
Post Reply
User avatar
Lovatto
Admin
Admin
Posts: 1755
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

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:

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);
    }
How to find your Invoice Number: Here
How to find your Order Number: Here
Post Reply