fix: removing placing the 2d graphic on entities and changing it to a swipe for the knife

This commit is contained in:
DottsGit
2026-06-06 02:26:16 -04:00
parent 18b8b3ee99
commit 4eaf4671ef
2 changed files with 17 additions and 3 deletions
+2 -2
View File
@@ -162,8 +162,8 @@ func _do_damage() -> void:
if ray_result:
var col = ray_result.collider
if col is StaticBody3D or col is CSGShape3D:
ImpactSpawner.spawn(get_tree(), "bullet", ray_result.position, ray_result.normal, 0.1)
if not col.has_method("take_damage") and (col is StaticBody3D or col is CSGShape3D):
ImpactSpawner.spawn(get_tree(), "slash", ray_result.position, ray_result.normal, 0.5)
func _finish_swing() -> void:
is_swinging = false