more tweaks to breakable vent and barrel can now explode

This commit is contained in:
derek
2024-12-12 16:15:01 -06:00
parent 763b074148
commit 78dc14b84f
15 changed files with 297 additions and 104 deletions

View File

@@ -41,10 +41,9 @@ func _physics_process(delta):
mesh.visible = false
ray.enabled = false
if body.is_in_group("enemy_target"):
if body.has_method("hit"):
hit_indicator.play()
enemy_particles.emitting = true
SignalBus.emit_signal("enemy_hit")
ray.get_collider().hit(bullet_damage)
#bullethole effect