movement sync

This commit is contained in:
Rendo 2025-12-03 16:05:52 +05:00
commit bb3a14ece7
13 changed files with 46 additions and 35 deletions

View file

@ -39,7 +39,7 @@ func fire() -> void:
machine.animation_player.play(with_morphems("shoot"))
if is_multiplayer_authority():
Session.shoot(damage,shoot_distance)
Session.shoot(int(machine.player.name),damage,shoot_distance)
fire_timer.start()
machine.player_camera.recoil(horizontal_curve.sample(bullets_shot),vertical_curve.sample(bullets_shot))