add: despawn demons
This commit is contained in:
@@ -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>();
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user