New player model with anims!!!!!!
This commit is contained in:
@@ -48,8 +48,10 @@ func perform_attack() -> bool:
|
||||
if owner_character._body:
|
||||
owner_character._body.play_attack()
|
||||
|
||||
# Find targets in range
|
||||
_find_and_damage_targets()
|
||||
# Delay damage until animation hits (roughly 70% through the animation)
|
||||
# This makes the damage apply when the swing actually connects
|
||||
var damage_delay = weapon_data.attack_cooldown * 0.4 # Adjust this multiplier to change when damage happens
|
||||
get_tree().create_timer(damage_delay).timeout.connect(_find_and_damage_targets)
|
||||
|
||||
attack_performed.emit()
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user