-
Notifications
You must be signed in to change notification settings - Fork 23
Player.WS_Overview
This system is used to allow you to customize weapons to you're needs. It contains the following capabilities:
- Gun Manager
- Weapon Switching, Dropping, Pickup
- Allowed weapons list
- Weapon Item
- Weapon
- Customizable Aimer/Scope
- Customizable spray range/amount
- Accuracy/Inaccuracy
- Fire type (Single, Machine Gun, Shotgun)
- Decals/Visuals
- Sound effects (Equip, Drop, Fire, Switch, etc.)
- More...
In order to get running with this system you will need to have access to the following scripts:
- WeaponManagerNew
- WeaponNew
- WeaponItem
Setup you're player hierarchy like the following:
- Weapons (Empty Game Object to contain weapon system scripts and setup)
- Weapon Camera
- Weapon Manager (Child Objects are weapon items)
- No Weapon (REQUIRED, this is where your empty running hands animation would be)
- BrowningPistol (Example. This is a weapon I made this will be different for everyone - Contains WeaponNew script).
In your GUI Object add an empty gameobject that will contain all of your GUI elements for the weapon system like the following:
Now that your hierarchies are setup read more about the specifics of how to use each of the scripts.
The following is a list of github repositories that made all of this possible:
delta patches: https://github.com/OctopusDeploy/Octodiff
.net 4 implemented in Monodevelop: https://github.com/mono/mono
Tuples In Unity: https://gist.github.com/michaelbartnett/5652076
Octodiff: https://github.com/OctopusDeploy/Octodiff
Input Manager: https://github.com/daemon3000/InputManager