added bullet damage into hit system

This commit is contained in:
Derek
2024-07-16 08:18:36 -05:00
parent 0832aa7808
commit 2b5e63a1ec
9 changed files with 536 additions and 33 deletions

View File

@@ -2,7 +2,7 @@ extends Area3D
@export var damage :=1
signal body_part_hit(dam)
signal body_part_hit(dam,bullet_damage)
# Called when the node enters the scene tree for the first time.
func _ready():
@@ -13,5 +13,5 @@ func _ready():
func _process(delta):
pass
func hit():
emit_signal("body_part_hit", damage)
func hit(bullet_damage):
emit_signal("body_part_hit", damage, bullet_damage)