weapon SFX
This commit is contained in:
parent
afc0aab441
commit
2f30c9f04b
16 changed files with 132 additions and 11 deletions
|
|
@ -9,3 +9,6 @@ var fire_rate := 125.
|
|||
|
||||
@abstract
|
||||
func fire(aim_angle: float) -> void
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
fire_clock -= delta
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -13,3 +13,5 @@ func fire(aim_angle: float) -> void:
|
|||
fire_clock = 60. / fire_rate
|
||||
|
||||
Player.instance.velocity += -dir * 10.
|
||||
|
||||
%MiniGunFire.play()
|
||||
|
|
|
|||
|
|
@ -35,3 +35,5 @@ func fire(_aim_angle: float) -> void:
|
|||
get_tree().current_scene.add_child(proj)
|
||||
|
||||
fire_clock = 60. / fire_rate
|
||||
|
||||
%MortarFire.play()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue