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);