increase music radius to cover most of the dungeon but not the surface world
This commit is contained in:
parent
20a3234371
commit
19a4cbff68
|
@ -96,6 +96,8 @@ namespace MuzikaGromche
|
||||||
|
|
||||||
if (__instance.currentBehaviourStateIndex is 1 && !__instance.farAudio.isPlaying)
|
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);
|
__instance.farAudio.PlayOneShot(Plugin.AudioStart);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,6 +128,8 @@ namespace MuzikaGromche
|
||||||
|
|
||||||
if (__instance.currentBehaviourStateIndex is 2 && !__instance.creatureVoice.isPlaying && !__instance.farAudio.isPlaying)
|
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.clip = Plugin.AudioLoop;
|
||||||
__instance.creatureVoice.Play();
|
__instance.creatureVoice.Play();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue