Disabled awaits in SoundPlayer

remotes/1709858346833250237/update-godot-to-1852afb6b
unfa 2021-09-12 13:34:54 +02:00
parent f8ed29f849
commit 069fdae20d
3 changed files with 5 additions and 2 deletions

View File

@ -103,7 +103,7 @@ func _ready():
print("voices: ", voices)
if AutoPlay:
await play()
play()
func pick_random():
assert(len(clips) > 0, "SoundPlayer has no clips to choose from")

View File

@ -53,7 +53,7 @@ SoundClip = "res://Assets/SFX/Weapons_HandgunShot_01.wav"
Voice_Count = 2
[node name="AudioStreamPlayer3D" parent="Handgun/SFX/Shoot" index="0"]
unit_db = 6.0
unit_db = 8.0
unit_size = 8.0
max_db = 6.0

View File

@ -240,6 +240,9 @@ func push_local_player_info(): #
rpc(&'player_list_update', player_list.get(id).serialize(), get_tree().multiplayer.get_network_unique_id())
@rpc(sync,auth,reliable) func destroy_player(pid: int):
assert($Players.has_node(str(pid)), "Attempting to destroy a player that does not exist")
var player_node = $Players.get_node(str(pid))