Fixed hold length

This commit is contained in:
Rapandrasmus 2023-06-11 14:44:28 +02:00
parent 509ea2f3c1
commit 7b6c6b319a
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ namespace HeavenStudio.Games.Loaders
{
new GameAction("medium", "Medium Bot")
{
preFunction = delegate { Fillbots.PreSpawnFillbot(eventCaller.currentEntity.beat, 4, Scripts_Fillbots.BotSize.Medium, Scripts_Fillbots.BotVariant.Normal); },
preFunction = delegate { Fillbots.PreSpawnFillbot(eventCaller.currentEntity.beat, 3, Scripts_Fillbots.BotSize.Medium, Scripts_Fillbots.BotVariant.Normal); },
defaultLength = 8f
}
});

View file

@ -215,7 +215,7 @@ namespace HeavenStudio.Games.Scripts_Fillbots
game.filler.DoScaledAnimationAsync("Hold", 0.5f);
SoundByte.PlayOneShotGame("fillbots/armExtension");
SoundByte.PlayOneShotGame("fillbots/beep");
fillSound = SoundByte.PlayOneShotGame("fillbots/water", -1, 1 / ((float)holdLength * 0.25f), 1, true);
fillSound = SoundByte.PlayOneShotGame("fillbots/water", -1, 1 / (float)(holdLength / 3), 1, true);
releaseEvent = game.ScheduleInput(startBeat + 4, holdLength, InputType.STANDARD_UP, JustRelease, OutRelease, OutRelease);
beepEvent = new GameEvent()
{