Tweaks to shell casing sounds.
This commit is contained in:
parent
3b4388b75e
commit
17688fef27
2 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue