diff --git a/NewHorizons/Builder/Props/GeyserBuilder.cs b/NewHorizons/Builder/Props/GeyserBuilder.cs index e79629cd..2013915a 100644 --- a/NewHorizons/Builder/Props/GeyserBuilder.cs +++ b/NewHorizons/Builder/Props/GeyserBuilder.cs @@ -56,6 +56,30 @@ namespace NewHorizons.Builder.Props geyserFluidVolume._attractionalFlowSpeed *= info.force / 55f; geyserFluidVolume._directionalFlowSpeed = info.force; } + + geyserGO.GetComponent().SetSector(sector); + var oneShotAudio = geyserGO.FindChild("Geyser_OneShotAudioSrc"); + var loopAudio = geyserGO.FindChild("Geyser_LoopAudioSrc"); + oneShotAudio.GetComponent().SetSector(sector); + loopAudio.GetComponent().SetSector(sector); + + // Someone might want a geyser just for its force maybe idk + if (info.disableSpout & info.disableShaft & info.disableBubbles) + { + oneShotAudio.SetActive(false); + loopAudio.SetActive(false); + } + // Disable start/end sounds if its just bubbles + else if (info.disableSpout & info.disableShaft) + { + oneShotAudio.SetActive(false); + } + // If it starts at the shaft, move the start/end sounds to it + else if ((info.disableSpout & !info.disableShaft) | info.offset == -67f) + { + oneShotAudio.transform.SetLocalPositionY(67f); + } + } } }