matadors dont come inside the player anymore with sword attack. also got rid of matador.gd dublicate.. that i made for testing animation

This commit is contained in:
2026-08-26 08:39:40 +03:00
parent 2a6f4c0f7b
commit b177e0aee3
4 changed files with 3 additions and 8 deletions
+2 -1
View File
@@ -61,6 +61,7 @@ var _blood_burst: CPUParticles3D = null
@onready var _mesh: Node3D = $matador2
@onready var _hit_area: Area3D = $HitArea
const _ANIM_RUN: StringName = &"Run"
const _ANIM_IDLE: StringName = &"Taunt"
const _ANIM_ATTACK: StringName = &"Attack"
@@ -551,7 +552,7 @@ func _tick_attack(delta: float) -> void:
if _swing_timer > 0.0:
_lunge_timer = maxf(0.0, _lunge_timer - delta)
if _lunge_timer > 0.0 and dist > 0.1:
if _lunge_timer > 0.0 and dist > DP.f("mat_attack_min_dist"):
_accelerate(to_bull.normalized(), DP.f("mat_lunge_speed"), delta)
else:
_decelerate(22.0, delta)