Audio system rework
This commit is contained in:
parent
96f92757b5
commit
347a990421
21 changed files with 173 additions and 29 deletions
10
audio/audio_system/team_amplified_audio.gd
Normal file
10
audio/audio_system/team_amplified_audio.gd
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
extends MultiplayerAudio3D
|
||||
|
||||
class_name TeamAmplifiedAudio3D
|
||||
|
||||
@export var team_target: Player
|
||||
@export var team_linear: float = 0.5
|
||||
|
||||
func _ready() -> void:
|
||||
if Lobby.get_team() == team_target.team:
|
||||
volume_linear = team_linear
|
||||
1
audio/audio_system/team_amplified_audio.gd.uid
Normal file
1
audio/audio_system/team_amplified_audio.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://yrc6t1s7mq3t
|
||||
Loading…
Add table
Add a link
Reference in a new issue