Now if it fits, thanks Wolf!
This mod, adds the M203 standalone grenade launcher for the JP36 rifle in the new underbarrel section. A change of model was used for the modification to fit correctly with the weapon and to avoid that it crosses the parts of the weapon.
This now working like the GL in Little Friend Rifle!! I was not able to put independent ammo, therefore it expends 10 of ammo for each projectile. (If someone finds the way, can add freely) Thanks to Saint Dragon for help me with that :D and port the project to Beardlib (No more Dr_Newbie base code). Now you have 3 projectiles independent of the weapon ammo.
I also found a way to add incendiary ammo, independently of this. I'm working on that :3 Done! Add-on is live.
This mod can serve as a template to add this upgrade to any weapon, including Custom Weapons. Modifying the model is something really simple to do (Blender).
To change a projectile, only press the underbarrel key (usually "4").
This mod, fits seamlessly to any weapon skin.
Special thanks to Killerwolf for their inventory icon ^^, Cpone for him code for fix the animations, Dr_Newbie (Original lua code for GL Mod) and Saint Dragon for him base for complete standalone version.
BeardLib is required, Attachment Animations is optional (For no glitched animation).
(Decompress this into PAYDAY 2\assets\mod_overrides).
Bugs:
*In the reloading animation in assault rifle mode, for some reason does not remove the charger. Animation removed.
*The Steelsight it's moved slightly upwards, using the attachment animations of Cpone I'll try to solve it.
*No scope and no laser kit are working correctly (Same problem that Steelsight).
*Hand clipping when reload. Just for half-second. But, is better that a telekinesis reload. (No idea how fix this...)
If someone wishes to collaborate with the resolution of these last problems, he has total freedom to take both the code and the models ^^.