Hey guys, I've been making some changes to the jj_Weapon behavior. Now I feel like the de-facto maintainer of this awesome extension :p
I took the audacity to create a Github repository where I'll be uploading any new changes and releases of this and other behaviors I work on. You can download the latest version of everything here.
And you're free to contribute by forking the repo
The improvements in this version are:
1. Support for multiple instances of the same weapon. In the original version it didn’t pick the right instance when shooting, so all bullets came from the same weapon.
2. It triggers the on created event after spawning bullets.
3. Added support to modify the stock size from event sheets.
4. *NEW* It can save its state when required (implemented 'saveToJson' and 'loadFromJson' methods) this is very important to persist the state of the weapons.
DOWNLOAD | Contribute
IMPORTANT NOTE:
This jj_Weapon is a derived work from JohnJ and I'll keep recognizing him as the original author of the extension.