increase music radius to cover most of the dungeon but not the surface world

This commit is contained in:
Nikita Vilunov 2024-03-10 01:47:21 +01:00
parent 20a3234371
commit 19a4cbff68
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,8 @@ namespace MuzikaGromche
if (__instance.currentBehaviourStateIndex is 1 && !__instance.farAudio.isPlaying)
{
Debug.Log($"Playing start music: maxDistance: {__instance.farAudio.maxDistance}, minDistance: {__instance.farAudio.minDistance}, volume: {__instance.farAudio.volume}, spread: {__instance.farAudio.spread}");
__instance.farAudio.maxDistance = 150;
__instance.farAudio.PlayOneShot(Plugin.AudioStart);
}
@ -126,6 +128,8 @@ namespace MuzikaGromche
if (__instance.currentBehaviourStateIndex is 2 && !__instance.creatureVoice.isPlaying && !__instance.farAudio.isPlaying)
{
Debug.Log($"Playing loop music: maxDistance: {__instance.creatureVoice.maxDistance}, minDistance: {__instance.creatureVoice.minDistance}, volume: {__instance.creatureVoice.volume}, spread: {__instance.creatureVoice.spread}");
__instance.creatureVoice.maxDistance = 150;
__instance.creatureVoice.clip = Plugin.AudioLoop;
__instance.creatureVoice.Play();
}