RS_Mind-WeaponsManager icon

WeaponsManager

A library to help mod developers to add additional guns to the player.

Last updated 2 weeks ago
Total downloads 17123
Total rating 0 
Categories Utilities
Dependency string RS_Mind-WeaponsManager-1.2.1
Dependants 2 other packages depend on this package

This mod requires the following mods to function

willis81808-UnboundLib-3.2.14 icon
willis81808-UnboundLib

This is a helpful utility for ROUNDS modders aimed at simplifying common tasks.

Preferred version: 3.2.14
Pykess-ModdingUtils-0.4.8 icon
Pykess-ModdingUtils

Utilities aimed at making modding easier and more accessible

Preferred version: 0.4.8

README

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:

  1. Import the included unitypackage into your Unity project.
  2. 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.
  3. Attach the ManagedWeaponAdder script to your card's object.
  4. Attach your gun to the script
  5. 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.
  6. Add an icon for your weapon
    • Use the included template for reference.
    • This icon can easily be the same as a FancyCardBar icon
  7. Add a name for your weapon
    • This is used in the UI to help identify your gun.

Note: custom gun sounds are currently unsupported