From 859cedf37a0782fa9a62a48432a220156ae1dec7 Mon Sep 17 00:00:00 2001 From: wookywok <62037083+wookywok@users.noreply.github.com> Date: Sun, 21 Apr 2024 09:10:07 -0500 Subject: [PATCH] Force Dive for Splashdown (#884) finally you can forcibly submerge people in Heaven Studio --- Assets/Scripts/Games/Splashdown/Splashdown.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Assets/Scripts/Games/Splashdown/Splashdown.cs b/Assets/Scripts/Games/Splashdown/Splashdown.cs index b0ca1b4d..1a9cd919 100644 --- a/Assets/Scripts/Games/Splashdown/Splashdown.cs +++ b/Assets/Scripts/Games/Splashdown/Splashdown.cs @@ -63,6 +63,14 @@ namespace HeavenStudio.Games.Loaders resizable = true, defaultLength = 8 }, + + new GameAction("forceDive", "Force Dive") + { + function = delegate {var e = eventCaller.currentEntity; Splashdown.instance.ForceDive(); }, + defaultLength = 0.5f, + resizable = false, + }, + new GameAction("amount", "Change Synchrette Number") { function = delegate { Splashdown.instance.SpawnSynchrettes(eventCaller.currentEntity["amount"], eventCaller.currentEntity.beat); }, @@ -208,6 +216,16 @@ namespace HeavenStudio.Games BeatAction.New(instance, actions); } + public void ForceDive() + { + if (IsIntroing()) return; + foreach (var synchrette in currentSynchrettes) + { + synchrette.GoDown(false); + player.GoDown(false); + } + } + public void GoDown(double beat, float length) { if (IsIntroing()) return;