Grenade bounce and radius

This commit is contained in:
Rendo 2025-12-10 00:43:05 +05:00
commit 11eb875d2e
6 changed files with 28 additions and 16 deletions

View file

@ -10,8 +10,9 @@ func _exit() -> void:
machine.animation_player.animation_finished.disconnect(on_animation_finished)
func on_animation_finished(animation):
if animation == machine.animation_prefix + "throw":
if animation == machine.animation_prefix + "throw" or animation == machine.animation_prefix + "shoot":
transition.emit("Idle")
func fire() -> void:
if machine.ammo == 0: