From be23f852fdb1665b89dee61210e3dafc92a41327 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 21 Jul 2023 20:06:05 -0400 Subject: [PATCH] Fix supernovas being quiet #522 --- NewHorizons/Components/Stars/StellarDeathController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NewHorizons/Components/Stars/StellarDeathController.cs b/NewHorizons/Components/Stars/StellarDeathController.cs index 400297b3..f3ea24ac 100644 --- a/NewHorizons/Components/Stars/StellarDeathController.cs +++ b/NewHorizons/Components/Stars/StellarDeathController.cs @@ -84,6 +84,7 @@ namespace NewHorizons.Components.Stars { float dt = Mathf.InverseLerp(12000f, 0.0f, distanceToPlayer); audioSource.SetLocalVolume(Mathf.Lerp(0.0f, 1f, dt * dt) * Mathf.InverseLerp(0.0f, 5f, _time)); + audioSource.maxDistance = shockwaveScale.Evaluate(shockwaveTime); } RumbleManager.UpdateSupernova(distanceToPlayer);