mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 11:57:40 +02:00
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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user