Server side bullet registration
This commit is contained in:
parent
b317693619
commit
26e5fa71e2
5 changed files with 47 additions and 1 deletions
|
|
@ -37,7 +37,8 @@ func fire() -> void:
|
|||
machine.animation_player.stop()
|
||||
machine.animation_player.play(with_morphems("shoot"))
|
||||
|
||||
raycast.try_deal_damage(damage)
|
||||
if is_multiplayer_authority():
|
||||
Session.shoot(damage)
|
||||
|
||||
fire_timer.start()
|
||||
machine.player_camera.recoil(horizontal_curve.sample(bullets_shot),vertical_curve.sample(bullets_shot))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue