team colors

This commit is contained in:
Rendo 2025-11-30 13:23:54 +05:00
commit 8d3b845857
15 changed files with 6579 additions and 25 deletions

View file

@ -121,6 +121,8 @@ func start_round() -> void:
if multiplayer.is_server():
buy_timer.start()
start_round.rpc()
round_timer.stop()
bomb_timer.stop()
for container in object_containers:
container.despawn()
attackers_alive = 0

View file

@ -0,0 +1,13 @@
extends Node
@export var material: StandardMaterial3D
@export var player: Player
@export var blue_team_texture: Texture2D
func _ready() -> void:
on_player_spawned.call_deferred()
func on_player_spawned() -> void:
await get_tree().process_frame
if player.team == Session.TEAMS.DEFENCE:
material.albedo_texture = blue_team_texture

View file

@ -0,0 +1 @@
uid://b2djbdh05pbcn