Player Damage Setup
Due to the way invector has setup damaging I had to override how a few things work. I have added the Prevent Self Damage boolean under the Health tab of the MP_vThirdPersonController component.
Setup Player Damaging
To allow yourself to damage other players you need to modify the two following components to allow the Player layer/tag:
- MP_vShooterManager (Shooter version of the package, if you have it)
- MP_vMeleeManager (Melee Combat version of the package, if you have it)
MP_vMeleeManager Setup
Open the Hit Properties > Hit Damage Tags and add Player. This will not be Player if you modified the root characters gameobject to be something tagged other than Player. If it isn't Player then add your custom tag.
MP_vShooterManager
Open the Damage Layers tab. Then on the Damage Layer make sure Body Part is selected. Also make sure that the Ignore Tags does not have Player selected. Again, just like the MP_vMeleeManager component, if you have a custom tag other than Player on the root of your character, make sure that custom tag isn't selected here.
Final Thoughts, Please Read
With this setup any player will be able to damage anyone else. With the Prevent Self Damage selected it will also mean that you won't be able to shoot/punch yourself.
However, what if you want only to be able to damage certain other players, like a team scenario. If that's the case we need to setup the Team component to know who/what we can damage. Read about the Team component next.