Disabeld shell casing sounds for now.

godot4-port
unfa 2020-09-26 00:30:22 +02:00
parent 9ee79f551b
commit 6eb54f9352
2 changed files with 9 additions and 8 deletions

View File

@ -24,10 +24,10 @@ func _on_FreeTimer_timeout():
func _on_Casing_body_entered(body):
$AudioStreamPlayer3D.max_db = max(100 - (linear_velocity.length() * 10), 0)
$AudioStreamPlayer3D.max_db = max(20 - (linear_velocity.length() * 10), 0)
$AudioStreamPlayer3D.pitch_scale = rand_range(0.98, 1.02)
print($AudioStreamPlayer3D.max_db)
$AudioStreamPlayer3D.play()
#$AudioStreamPlayer3D.play()
collisions += 1
#print("collision: ", String(collisions))

File diff suppressed because one or more lines are too long