Rockers and tweezers patch (#448)

* Rockers - Can now pitch down samples and bends, bends also correctly pitch to playback speed now.

* No peeking anim adjustment

* Added new no peeking signs
This commit is contained in:
Rapandrasmus
2023-06-03 16:51:30 +02:00
committed by GitHub
parent 445d06046a
commit 761ae362e1
86 changed files with 405 additions and 290 deletions

View File

@ -101,6 +101,7 @@ namespace HeavenStudio.Games.Scripts_Rockers
public void StrumStrings(bool gleeClub, int[] pitches, Rockers.PremadeSamples sample, int sampleTones, bool disableStrumEffect = false, bool jump = false, bool barely = false)
{
if (strumming) return;
muted = false;
strumming = true;
StopSounds();
@ -209,7 +210,7 @@ namespace HeavenStudio.Games.Scripts_Rockers
lastBendPitch = pitch;
if (chordSound != null)
{
chordSound.BendUp(0.05f, Jukebox.GetPitchFromSemiTones(Jukebox.GetSemitonesFromPitch(chordSound.pitch) + pitch, true));
chordSound.BendUp(0.05f, Jukebox.GetPitchFromSemiTones(Jukebox.GetSemitonesFromPitch(chordSound.pitch, true) + pitch, true));
}
else
{
@ -217,7 +218,7 @@ namespace HeavenStudio.Games.Scripts_Rockers
{
if (stringSounds[i] != null)
{
stringSounds[i].BendUp(0.05f, Jukebox.GetPitchFromSemiTones(Jukebox.GetSemitonesFromPitch(stringSounds[i].pitch) + pitch, true));
stringSounds[i].BendUp(0.05f, Jukebox.GetPitchFromSemiTones(Jukebox.GetSemitonesFromPitch(stringSounds[i].pitch, true) + pitch, true));
}
}
}
@ -275,9 +276,9 @@ namespace HeavenStudio.Games.Scripts_Rockers
muted = true;
}
public void UnHold()
public void UnHold(bool overrideMute = false)
{
if (!muted) return;
if (!muted && !overrideMute) return;
muted = false;
if (!together) DoScaledAnimationAsync("UnCrouch", 0.5f);
}