Deploy and shooting brought back

This commit is contained in:
Rendo 2025-12-07 13:57:43 +05:00
commit b94e4cdf30
10 changed files with 25 additions and 15 deletions

View file

@ -31,7 +31,6 @@ func use_begin() -> void:
func fire() -> void:
if machine.ammo == 0 or fire_timer.time_left > 0:
return
machine.player.get_node("ShootAudio").multiplayer_play()
machine.ammo -= 1
bullets_shot += 1
@ -40,6 +39,7 @@ func fire() -> void:
if is_multiplayer_authority():
Session.shoot(int(machine.player.name),damage,shoot_distance)
machine.player.get_node("ShootAudio").multiplayer_play()
fire_timer.start()
machine.player_camera.recoil(horizontal_curve.sample(bullets_shot),vertical_curve.sample(bullets_shot))