Overview:
Combat is an important mechanic, where the player is allowed to fight back from some of the dangers.
The system has 2 main parts: Swing and Parry. One is for offence and other one is for defence
This system is not unique to the Player, as any human NPC has the same combat capabilities and mechanics as the Player
Inner workings:
General:
- There are multiple weapon types: one handed, two handed, knife, etc.
- Stats consist of speed, damage and range. A knife for example can have high speed but low damage and low range. This makes the weapon good for close quarter combat with a smaller amount of enemies, where a halberd has a low speed but high damage and long range, making it good for sweeping many enemies at once
- Each weapon has a durability. It depletes at a constant rate. Weapons can be repaired by fireflies in workshops or by yourself if you are a Firefly
- Weapons can get and upgrade that gives a perk/additional effect with a drawback
- Weapons can be gladed with materials to be with upgraded stats without any drawbacks
Swinging
- When the player clicks the left mouse button, they swing once.
- Clicking multiple times creates a combo that has a sequence of 2 or 4 animations played.
- Every time the weapon hits something with its hitbox, it deals damage as well as sending the direction data of where it hit the target. Depending on where the weapon hits (body parts), it deals different amounts of damage.
- If the weapon hits a wall or a prop it still removes durability (just like in real life woo)
- Swinging takes away stamina. The player can swing without stamina, but it will be much more sloppy, slow and it will deal 3x less damage.
- Attacks with inertia will deal more damage than attacks done while just standing still (Eg: Jumping and attacking from above or running forward and gaining velocity)
- Players cannot swing while crouched or while performing parkour maneuvers.
Kicking (requires Kick skill)