team colors
This commit is contained in:
parent
d147eb102f
commit
8d3b845857
15 changed files with 6579 additions and 25 deletions
|
|
@ -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
|
||||
|
|
|
|||
13
scripts/player/team_color_switcher.gd
Normal file
13
scripts/player/team_color_switcher.gd
Normal 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
|
||||
1
scripts/player/team_color_switcher.gd.uid
Normal file
1
scripts/player/team_color_switcher.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://b2djbdh05pbcn
|
||||
Loading…
Add table
Add a link
Reference in a new issue