Different damage based on body part

This commit is contained in:
Rendo 2025-12-11 20:54:24 +05:00
commit 1d5065cbbf
8 changed files with 86 additions and 101 deletions

View file

@ -14,7 +14,7 @@ func _exit() -> void:
func attack() -> void:
if is_multiplayer_authority():
Session.shoot(int(machine.player.name),damage,1.5)
Session.shoot(int(machine.player.name),damage,damage,damage,1.5)
func on_animation_finished(animation):
if animation == machine.animation_prefix + "attack":

View file

@ -12,7 +12,7 @@ func _exit() -> void:
func attack() -> void:
if is_multiplayer_authority():
Session.shoot(int(machine.player.name),damage,1.5)
Session.shoot(int(machine.player.name),damage,damage,damage,1.5)
func on_animation_finished(animation):
if animation == machine.animation_prefix + "heavy_attack":