whiff strum guitar + snekky

This commit is contained in:
Rapandrasmus 2023-12-15 20:14:08 +01:00
parent 7fc8b2ab2d
commit 677a492293
3 changed files with 20 additions and 8 deletions

View file

@ -623,7 +623,7 @@ namespace HeavenStudio.Games
&& PlayerInput.GetIsAction(InputAction_FlickRelease) && !IsExpectingInputNow(InputAction_FlickRelease)) && PlayerInput.GetIsAction(InputAction_FlickRelease) && !IsExpectingInputNow(InputAction_FlickRelease))
{ {
// todo: strum // todo: strum
Soshi.UnHold(); Soshi.StrumStringsLast(false, false, true);
} }
if (PlayerInput.GetIsAction(InputAction_BasicRelease)) if (PlayerInput.GetIsAction(InputAction_BasicRelease))
{ {

View file

@ -99,9 +99,21 @@ namespace HeavenStudio.Games.Scripts_Rockers
} }
} }
private bool lastGleeClub = false;
private Rockers.PremadeSamples lastSample;
private int lastSampleTones;
public void StrumStringsLast(bool disableStrumEffect = false, bool jump = false, bool barely = false)
{
StrumStrings(lastGleeClub, lastPitches, lastSample, lastSampleTones, disableStrumEffect, jump, barely);
}
public void StrumStrings(bool gleeClub, int[] pitches, Rockers.PremadeSamples sample, int sampleTones, bool disableStrumEffect = false, bool jump = false, bool barely = false) public void StrumStrings(bool gleeClub, int[] pitches, Rockers.PremadeSamples sample, int sampleTones, bool disableStrumEffect = false, bool jump = false, bool barely = false)
{ {
if (strumming) return; if (strumming) return;
lastGleeClub = gleeClub;
lastSample = sample;
lastSampleTones = sampleTones;
muted = false; muted = false;
strumming = true; strumming = true;
StopSounds(); StopSounds();

View file

@ -199,13 +199,13 @@ namespace HeavenStudio.Games
{ {
MultiSound.Play(new MultiSound.Sound[] MultiSound.Play(new MultiSound.Sound[]
{ {
new MultiSound.Sound("sneakySpirits/moving", beat, 1f, volume1 * 0.01f), new MultiSound.Sound("sneakySpirits/moving", beat, 1f, volume1 * 0.01f, false, 0.019),
new MultiSound.Sound("sneakySpirits/moving", beat + length, 1f, volume2 * 0.01f), new MultiSound.Sound("sneakySpirits/moving", beat + length, 1f, volume2 * 0.01f, false, 0.019),
new MultiSound.Sound("sneakySpirits/moving", beat + length * 2, 1f, volume3 * 0.01f), new MultiSound.Sound("sneakySpirits/moving", beat + length * 2, 1f, volume3 * 0.01f, false, 0.019),
new MultiSound.Sound("sneakySpirits/moving", beat + length * 3, 1f, volume4 * 0.01f), new MultiSound.Sound("sneakySpirits/moving", beat + length * 3, 1f, volume4 * 0.01f, false, 0.019),
new MultiSound.Sound("sneakySpirits/moving", beat + length * 4, 1f, volume5 * 0.01f), new MultiSound.Sound("sneakySpirits/moving", beat + length * 4, 1f, volume5 * 0.01f, false, 0.019),
new MultiSound.Sound("sneakySpirits/moving", beat + length * 5, 1f, volume6 * 0.01f), new MultiSound.Sound("sneakySpirits/moving", beat + length * 5, 1f, volume6 * 0.01f, false, 0.019),
new MultiSound.Sound("sneakySpirits/moving", beat + length * 6, 1f, volume7 * 0.01f), new MultiSound.Sound("sneakySpirits/moving", beat + length * 6, 1f, volume7 * 0.01f, false, 0.019),
}, forcePlay: true); }, forcePlay: true);
} }