diff --git a/DevourClient/Hacks/Misc.cs b/DevourClient/Hacks/Misc.cs index 7b42b4f..2d37ed2 100644 --- a/DevourClient/Hacks/Misc.cs +++ b/DevourClient/Hacks/Misc.cs @@ -273,6 +273,39 @@ namespace DevourClient.Hacks } } + public static void DespawnDemons() + { + foreach (SurvivalDemonBehaviour demon in Helpers.Entities.Demons) + { + if (demon != null) + { + demon.Despawn(); + } + } + } + + public static void DespawnSpiders() + { + foreach (SpiderBehaviour spider in Helpers.Entities.Spiders) + { + if (spider != null) + { + spider.Despawn(); + } + } + } + + public static void DespawnGhosts() + { + foreach (GhostBehaviour ghost in Helpers.Entities.Ghosts) + { + if (ghost != null) + { + ghost.Despawn(); + } + } + } + public static void ShowMessageBox(string message) { Horror.Menu menu = UnityEngine.Object.FindObjectOfType(); diff --git a/DevourClient/MelonMain.cs b/DevourClient/MelonMain.cs index fcf6b33..39037cb 100644 --- a/DevourClient/MelonMain.cs +++ b/DevourClient/MelonMain.cs @@ -654,6 +654,12 @@ namespace DevourClient MelonLogger.Msg("Azazel not found !"); } } + + if (GUI.Button(new Rect(Settings.Settings.x + 290, Settings.Settings.y + 460, 120, 20), "Despawn demons")) + { + Hacks.Misc.DespawnDemons(); + } + return; case "Molly": @@ -680,6 +686,12 @@ namespace DevourClient MelonLogger.Msg("Azazel not found !"); } } + + if (GUI.Button(new Rect(Settings.Settings.x + 290, Settings.Settings.y + 460, 120, 20), "Despawn demons")) + { + Hacks.Misc.DespawnDemons(); + } + return; case "Inn": @@ -711,6 +723,11 @@ namespace DevourClient MelonLogger.Msg("Azazel not found !"); } } + + if (GUI.Button(new Rect(Settings.Settings.x + 290, Settings.Settings.y + 460, 120, 20), "Despawn spiders")) + { + Hacks.Misc.DespawnSpiders(); + } return; case "Town": @@ -737,6 +754,11 @@ namespace DevourClient MelonLogger.Msg("Azazel not found !"); } } + + if (GUI.Button(new Rect(Settings.Settings.x + 290, Settings.Settings.y + 460, 120, 20), "Despawn ghosts")) + { + Hacks.Misc.DespawnGhosts(); + } return; default: