Hithurtboxes
This commit is contained in:
@@ -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%)
|
||||
|
||||
Reference in New Issue
Block a user