fix: 2d surface hit graphics no longer appear when hitting an entity
This commit is contained in:
@@ -198,7 +198,7 @@ func _shoot_hitscan() -> void:
|
||||
|
||||
if result.collider.has_method("take_damage"):
|
||||
result.collider.take_damage(damage, result.position, player)
|
||||
else:
|
||||
elif result.collider is StaticBody3D or result.collider is CSGShape3D:
|
||||
ImpactSpawner.spawn(get_tree(), "bullet", result.position, result.normal, 0.08)
|
||||
|
||||
# Spawn cosmetic tracer
|
||||
|
||||
Reference in New Issue
Block a user