Audio system rework

This commit is contained in:
Rendo 2025-12-12 00:13:22 +05:00
commit 347a990421
21 changed files with 173 additions and 29 deletions

View file

@ -1,5 +1,11 @@
extends CharacterBody3D
func _ready() -> void:
if is_multiplayer_authority():
await get_tree().process_frame
await get_tree().process_frame
$Idle.multiplayer_play()
func _physics_process(delta: float) -> void:
if is_multiplayer_authority() == false:
return
@ -17,3 +23,4 @@ func _physics_process(delta: float) -> void:
else:
var normal = collision.get_normal()
velocity = velocity.bounce(normal) * 0.5
$MultiplayerAudio3D.multiplayer_play()