Sword
The Sword is a powerful melee weapon with high base damage and an attack arc. It is designed for players who want to deal significant damage in a single swing.
Resource
Section titled “Resource”[gd_resource type="Resource" script_class="MeleeWeaponResource" load_steps=3 format=3 uid="uid://c4dujlqw5d4kl"]
[ext_resource type="Texture2D" uid="uid://l66orp7qg35j" path="res://entities/weapons/melee_weapons/melee_weapon_models/sword/art/sword.png" id="1_djghw"][ext_resource type="Script" uid="uid://bflt4m3fx7gmv" path="res://entities/weapons/melee_weapons/melee_weapon_resource.gd" id="1_tqsw4"]
[resource]script = ExtResource("1_tqsw4")damage = 50windup_time = 0.3attack_duration = 0.5cooldown_time = 0.4stun_time = 1.5loop_animation = falsename = "Sword"purchasable = trueis_free = falsedrop_chance = 50cost = 150currency_type = 0description = "Deals %s Base Damage with a broad slash after winding up for %s. The attack lasts %s, then enters a cooldown state for %s, and stuns targets hit for %s."short_description = "The user [color=yellow]winds up briefly[/color], then delivers a broad slash dealing [color=yellow]great[/color] damage and stunning targets [color=yellow]significantly[/color]."icon = ExtResource("1_djghw")model_uid = "uid://co3ix5krmh3qr"
Weapon Stats
Section titled “Weapon Stats”Stat | Value |
---|---|
Base Damage | 50 |
Windup Time | 0.3s |
Attack Duration | 0.5s |
Cooldown Time | 0.4s |
Stun Time | 1.5s |
Loop Animation | No |
Purchasable | Yes |
Cost | 150 |
Drop Chance | 50% |
Currency Type | 0 |
Description: Deals %s Base Damage with a broad slash after winding up for %s. The attack lasts %s, then enters a cooldown state for %s, and stuns targets hit for %s.
Gameplay Considerations
Section titled “Gameplay Considerations”- Strengths: High damage output and wide attack arc, making it still hit when the player is not directly in front of the player.
- Weaknesses: Slightly slower than the fastest weapons, requiring good timing.
- Best Used: For players who want to maximize damage per hit and control space in melee combat.
Animations
Section titled “Animations”- Attack: The sword moves forward and rotates in an arc, simulating a slash.
- Cooldown: The sword spins back to its original position, readying for the next attack.
- Idle: The sword wiggles and rotates slightly, notifying the player that it is ready.