
WeaponsManager
A library to help mod developers to add additional guns to the player.Details
Weapons Manager
A library to help mod developers to add additional guns to the player. Guns added by this mod can be swapped between using Q/E or R/L DPad. While inactive, a gun will be frozen, not reloading or refreshing attack cooldown.
Usage Guide for Developers:
- Import the included unitypackage into your Unity project.
- Modify one of the included gun prefabs to met your needs.
- The ExampleGun is set up to be modified the same way you'd modify a card. WeaponBase is a replica of the vanilla gun. They should be used with the Apply Card Stats bool enabled/disabled respectively.
- If you're using asymmetrical textures, you can use the included LeftRightScale script to cause them to mirror properly.
- Shoot Position determines the angle of the bullet fired, not the position.
- Important: Do not modify the two included objects. The forces applied to keep the gun in place in multiplayer are calculated specifically for the gun's physics.
- Attach the ManagedWeaponAdder script to your card's object.
- Attach your gun to the script
- Set the Apply Card Stats bool
- Turning it on will make the player's current cards and all future cards apply to the gun
- Turning it off will make the gun remain as-given forever.
- Add an icon for your weapon
- Use the included template for reference.
- This icon can easily be the same as a FancyCardBar icon
- Add a name for your weapon
- This is used in the UI to help identify your gun.
Note: custom gun sounds are currently unsupported