extends "res://scenes/multiplayer/match/scripts/mode.gd" func setup(p_match:Match) -> void: p_match.scoreboard.add_panel() p_match.scoreboard.add_child(DeathmatchScoringComponent.new(p_match.scoreboard, p_match.player_spawner)) #p_match.scoreboard.scoring_resources.append(DeathmatchScoringComponent.new(p_match.scoreboard, p_match.players)) p_match.player_spawner.child_entered_tree.connect(func(player:Player) -> void: player.iff.fill = Color.RED var panel:ScorePanel = p_match.scoreboard.get_panel(0) panel.add_entry(player.peer_id, player.username) player.damage.connect(_ffa_damage_handler) ) func _ffa_damage_handler(source: Node, target: Node, amount: float) -> void: assert(target.find_children("*", "Health")) target.health.damage.rpc(amount, source.peer_id)