New player model with anims!!!!!!

This commit is contained in:
Twirpytherobot
2025-11-16 18:42:06 +00:00
parent 9d5feb6f0e
commit 3431c12dc2
10 changed files with 301 additions and 49 deletions
+4 -2
View File
@@ -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