MFPS 1.7 Grenade Bug?

Support for MFPS 2.0
Post Reply
User avatar
InCodeWeTrust
Contributor
Contributor
Posts: 17
Joined: Wed Mar 27, 2019 10:05 am

Fri Jul 03, 2020 12:32 pm

Fresh install with no changes or addons added. Just PUN2 and MFPS 1.7 from Unity Asset Store.

After throwing 1 grenade it does not repopulate in your hand....you can still throw the rest of the grenades but the actual prefab is missing.

Anyone else notice that?

Version: v1.7.5
User avatar
Lovatto
Admin
Admin
Posts: 1493
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Fri Jul 03, 2020 1:51 pm

I believe if it's a fresh install from the Asset Store, you mean MFPS 1.7.5
if it's so try the replacing change the line in bl_Gun.cs -> IEnumerator DoReload(...) -> (1274 by default):

Code: Select all

  if (Info.Type == GunType.Grenade) { OnAmmoLauncher.ForEach(x => { x?.SetActive(bulletsLeft > 0); }); }
with:

Code: Select all

 if (Info.Type == GunType.Grenade) { OnAmmoLauncher.ForEach(x => { x?.SetActive(true); }); }
User avatar
InCodeWeTrust
Contributor
Contributor
Posts: 17
Joined: Wed Mar 27, 2019 10:05 am

Fri Jul 03, 2020 8:35 pm

Thank you. That fixed it.
Post Reply