With this mod you will be able to set a stun time for each weapon. After a successful attack this will play the knock back animation and stun the victim for the duration set on the weapon action.
I couldn't find a way to do this natively with UCC. This is what I came up with. If there is a better way to achieve this, please let me know.
Modification
Edit Jun'25: Added cooldown period and reduce stun time for consecutive hits. Avoids stun lock for too long.


I couldn't find a way to do this natively with UCC. This is what I came up with. If there is a better way to achieve this, please let me know.
Modification
- Add the CharacterVariableKnockBack script to your project. Make sure it exists within the Opsive.UltimateCharacterController assembly
- Add a sub-state machine to the base layer of your animation controller (See screen capture)
- Set the entry condition to Ability Change and AbilityIndex equals 13
- Exit transition should be AbilityIndex not equal to 13
- Add the ImpactKnockBack ability to the character.
- Under the Stop event, the Wait For Animation Event should be unchecked. Set the Duration to a default value.
- Add the Character Variable Knock Backaction to the generic module of the impact module group for the weapon
- Set the Stun Duration on the action
Edit Jun'25: Added cooldown period and reduce stun time for consecutive hits. Avoids stun lock for too long.


Attachments
Last edited: