Implements active parrying as a mechanic #556
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
By pressing a hotkey (default N) you can now parry with certain weapons. Specifics depend on the item, but most have a short "warmup" after the press before an actual parry can occur, a "perfect parry" period which has increased effectiveness and special effects, and a "parry window" during which the effect is active. Failing a parry will deal stamina damage and stagger you, in most cases. There is a sound and a visual effect to alert your enemies to this.
While parry is active, you will rotate towards your cursor as to assist you with directional parries (certain items require you to be looking at your attacker). Successful parries lower or completely negate the damage, based on your timing, and convert a portion of it into stamina. Perfect parries (also usually) deal less stamina to the user.
Parry SFX taken from Citadel's #11627 by silicons