Sword Weapon
Design document for NRR Sword Weapon
Info

General
The Sword is the first melee weapon introduced to the game, designed for swift, close-quarters combat. This hack-and-slash weapon allows players to rapidly swipe at enemies and even deflect incoming projectiles, adding a dynamic defensive element to its offensive capabilities. To further enhance the depth and fast-paced nature of melee combat, we've integrated a Valour system designed to amplify the weapons' inherent speed. This is detailed in a separate document.
ValorAttributes:
The weapon can be swung at enemies to damage them.
Unlike other weapons, the sword has unlimited attacks, so you don't need to worry about ammo.
Players can either hold down the attack button for continuous swings or press it once for a single strike.
The sword's hitboxes are tied directly to its animations, meaning different attacks have different strengths and weaknesses and preventing players from simply spinning around and spamming attacks.
The sword can deflect enemy bullets back at them, damaging them on impact. This requires the player to aim their character to control the deflection direction.
The window for deflecting bullets is much smaller than the window for damaging enemies, making deflecting difficult but very rewarding with a satisfying sound and particle effect on a successful deflect.
The sword and all future melee weapons grant a constant speed boost to help players chase down enemies.
The Sword also collides with walls to indicate the player is hitting them with sparks and sound effects
The sword uses a weapon trail to show its speed and area of attack
The sword's crosshair shows the attack's speed and the specific window when it can deal damage.
The basic sword has no elemental effects, but upgraded Forge versions will.
The sword uses the Valor system to add a second system that boosts the hack-and-slash feel with speed and power

Upgrades
Weapon Enhancements
Increased damage
Increased attack rate
Increased attack speed
Increased deflection magnitude
Valor Enhancements
Decreased valor cooldown
Increased maximum valor capacity
Increased valor damage multiplier
Increased valor player + attack speed multiplier


Stats
In-game Stats
FireRate (5) out of 18
Damage (8) out of 18
Range (1) out of 18
Accuracy (18) out of 18
ClipSize (18) out of 18

Code Stats
Fire Rate: 0.55 - 0.53
Melee Damage: 8.0 - 10
Melee Animation Rate: 1.75 - 1.83
Deflect Magnitude: 0.75 - 0.85
Valor Cool Down Time: 9 - 11
Valor Player Speed Multiplier: 0.03 - 0.034
Valor Attack Speed Multiplier: 0.03 - 0.022
Valor Damage Multiplier: 0.2 - 0.28
Maximum Valor Capacity: 8 - 12
Time Until Valor Increases: 0.2
Last updated