add: despawn demons

This commit is contained in:
ALittlePatate
2022-09-11 14:53:53 +02:00
parent 5736ade142
commit f269dbeb1d
2 changed files with 55 additions and 0 deletions

View File

@@ -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<Horror.Menu>();

View File

@@ -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: