turret tweaks

This commit is contained in:
derek
2024-07-18 13:45:37 -05:00
parent 330e4a599d
commit 5f67dbe6ba
11 changed files with 95 additions and 36 deletions

View File

@@ -158,14 +158,14 @@ func _physics_process(delta):
# Reloading
if Input.is_action_just_pressed("reload"):
gun.reload(self,delta)
gun.reload(delta)
if Input.is_action_pressed("inspect") and !gun.anim_player.is_playing():
gun.anim_player.play("inspect")
# Shooting & fire modes
if Input.is_action_pressed("shoot"):
gun.shoot(self,delta)
gun.shoot(delta)
if Input.is_action_just_released("shoot"):
gun.cycle_count = gun.cycle_count_start