Stretch Camera VFX Event + Fixes (#586)

* fixed blue bear bug

* glee club fix

* added stretch camera vfx event

* toss boys crouch fixed
This commit is contained in:
Rapandrasmus
2023-11-25 17:05:20 +01:00
committed by GitHub
parent 13db943ab5
commit 4f07d47bdb
9 changed files with 148 additions and 43 deletions

View File

@ -74,7 +74,7 @@ namespace HeavenStudio.Games.Scripts_GleeClub
anim.SetBool("Mega", true);
anim.Play("OpenMouth", 0, 0);
shouldMegaClose = true;
if (currentSound != null) SoundByte.KillLoop(currentSound, 0f);
if (currentSound != null) currentSound.Stop();
SoundByte.PlayOneShotGame("gleeClub/LoudWailStart");
currentSound = SoundByte.PlayOneShotGame("gleeClub/LoudWailLoop", -1, currentPitch, 1f, true);
BeatAction.New(game, new List<BeatAction.Action>()
@ -95,7 +95,7 @@ namespace HeavenStudio.Games.Scripts_GleeClub
anim.SetBool("Mega", false);
shouldMegaClose = false;
anim.Play("OpenMouth", 0, 0);
if (currentSound != null) SoundByte.KillLoop(currentSound, 0f);
if (currentSound != null) currentSound.Stop();
currentSound = SoundByte.PlayOneShotGame("gleeClub/WailLoop", -1, currentPitch, 1f, true);
}
@ -104,7 +104,7 @@ namespace HeavenStudio.Games.Scripts_GleeClub
if (!singing || disappeared) return;
singing = false;
anim.Play(mega ? "MegaCloseMouth" : "CloseMouth", 0, 0);
if (currentSound != null) SoundByte.KillLoop(currentSound, 0f);
if (currentSound != null) currentSound.Stop();
if (playSound) SoundByte.PlayOneShotGame("gleeClub/StopWail");
}
}