fix: removing placing the 2d graphic on entities and changing it to a swipe for the knife
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user