weapon SFX

This commit is contained in:
Michael Campbell 2026-04-15 13:03:13 -04:00
parent afc0aab441
commit 2f30c9f04b
16 changed files with 132 additions and 11 deletions

View file

@ -9,3 +9,6 @@ var fire_rate := 125.
@abstract
func fire(aim_angle: float) -> void
func _process(delta: float) -> void:
fire_clock -= delta

View file

@ -8,3 +8,5 @@ func fire(aim_angle: float) -> void:
player_projectile.global_position = global_position + Vector3.UP * 0.5
get_tree().current_scene.add_child(player_projectile)
fire_clock = 60. / fire_rate
%SharpshooterFire.play()

View file

@ -13,3 +13,5 @@ func fire(aim_angle: float) -> void:
fire_clock = 60. / fire_rate
Player.instance.velocity += -dir * 10.
%MiniGunFire.play()

View file

@ -35,3 +35,5 @@ func fire(_aim_angle: float) -> void:
get_tree().current_scene.add_child(proj)
fire_clock = 60. / fire_rate
%MortarFire.play()