Hithurtboxes

This commit is contained in:
Twirpytherobot
2025-11-21 23:53:28 +00:00
parent 2ec7d56511
commit 10cc8720b7
16 changed files with 416 additions and 100 deletions
+8
View File
@@ -18,6 +18,14 @@ enum Hand { MAIN_HAND, OFF_HAND, TWO_HAND }
@export var attack_animation: String = "Attack1" # Animation to play when attacking
@export var knockback_force: float = 8.0 # How much to push the target back
@export_category("Attack Timing")
## Time before hitbox activates (wind-up/anticipation)
@export var startup_time: float = 0.15
## Duration hitbox stays active (the actual hit window)
@export var active_time: float = 0.2
## Time after hitbox deactivates (follow-through, can't act)
## Note: recovery_time = attack_cooldown - startup_time - active_time (calculated automatically)
@export_category("Defense Stats")
@export var can_block: bool = false
@export_range(0.0, 1.0) var block_reduction: float = 0.5 # Percentage of damage blocked (0.5 = 50%)