mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-07-14 16:04:50 +00:00
Scoring and Scoreboard implemented
This commit is contained in:
parent
171193e8cd
commit
0144426aac
14 changed files with 228 additions and 22 deletions
|
|
@ -16,6 +16,7 @@ class_name ExplosiveDamageComponent extends Area3D
|
|||
|
||||
@export var damage : int = 100
|
||||
@export var impulse_force : int = 1000
|
||||
var damage_dealer : Player
|
||||
|
||||
func _physics_process(_delta : float) -> void:
|
||||
for body in get_overlapping_bodies():
|
||||
|
|
@ -26,6 +27,6 @@ func _physics_process(_delta : float) -> void:
|
|||
|
||||
for area in get_overlapping_areas():
|
||||
if area is HealthComponent and is_multiplayer_authority():
|
||||
area.damage.rpc(damage)
|
||||
area.damage.rpc(damage, damage_dealer.player_id)
|
||||
|
||||
set_physics_process(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue