From 17688fef27c32da4343910ef8625942194cc38fd Mon Sep 17 00:00:00 2001 From: unfa Date: Sun, 12 Sep 2021 04:46:48 +0200 Subject: [PATCH] Tweaks to shell casing sounds. --- Game/Assets/Weapons/Handgun/Casing.gd | 7 +++---- Game/Assets/Weapons/Handgun/Casing.tscn | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Game/Assets/Weapons/Handgun/Casing.gd b/Game/Assets/Weapons/Handgun/Casing.gd index b7d09de..61b32a0 100644 --- a/Game/Assets/Weapons/Handgun/Casing.gd +++ b/Game/Assets/Weapons/Handgun/Casing.gd @@ -25,9 +25,8 @@ func _on_Timer_timeout(): func _on_Casing_body_entered(body): var vel = linear_velocity.length() - print(linear_velocity.length()) + #print(linear_velocity.length()) - if vel > 0.25: + if vel > 1: sound_player.unit_db = -48 + min((pow(vel, 3)), 48) - - sound.play() + sound.play() diff --git a/Game/Assets/Weapons/Handgun/Casing.tscn b/Game/Assets/Weapons/Handgun/Casing.tscn index 94b0023..413c464 100644 --- a/Game/Assets/Weapons/Handgun/Casing.tscn +++ b/Game/Assets/Weapons/Handgun/Casing.tscn @@ -39,6 +39,7 @@ script = null SoundClip = "res://Assets/SFX/Weapons_Handgun_Casing_01.wav" PitchScale = 1.2 RandomizePitch = 0.01 +Voice_Count = 2 [node name="AudioStreamPlayer3D" parent="Sound" index="0"] unit_db = -12.0