Disabled awaits in SoundPlayer
parent
f8ed29f849
commit
069fdae20d
|
@ -103,7 +103,7 @@ func _ready():
|
||||||
print("voices: ", voices)
|
print("voices: ", voices)
|
||||||
|
|
||||||
if AutoPlay:
|
if AutoPlay:
|
||||||
await play()
|
play()
|
||||||
|
|
||||||
func pick_random():
|
func pick_random():
|
||||||
assert(len(clips) > 0, "SoundPlayer has no clips to choose from")
|
assert(len(clips) > 0, "SoundPlayer has no clips to choose from")
|
||||||
|
|
|
@ -53,7 +53,7 @@ SoundClip = "res://Assets/SFX/Weapons_HandgunShot_01.wav"
|
||||||
Voice_Count = 2
|
Voice_Count = 2
|
||||||
|
|
||||||
[node name="AudioStreamPlayer3D" parent="Handgun/SFX/Shoot" index="0"]
|
[node name="AudioStreamPlayer3D" parent="Handgun/SFX/Shoot" index="0"]
|
||||||
unit_db = 6.0
|
unit_db = 8.0
|
||||||
unit_size = 8.0
|
unit_size = 8.0
|
||||||
max_db = 6.0
|
max_db = 6.0
|
||||||
|
|
||||||
|
|
|
@ -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(&'player_list_update', player_list.get(id).serialize(), get_tree().multiplayer.get_network_unique_id())
|
||||||
|
|
||||||
@rpc(sync,auth,reliable) func destroy_player(pid: int):
|
@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))
|
var player_node = $Players.get_node(str(pid))
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue