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)
|
public static void ShowMessageBox(string message)
|
||||||
{
|
{
|
||||||
Horror.Menu menu = UnityEngine.Object.FindObjectOfType<Horror.Menu>();
|
Horror.Menu menu = UnityEngine.Object.FindObjectOfType<Horror.Menu>();
|
||||||
|
|||||||
@@ -654,6 +654,12 @@ namespace DevourClient
|
|||||||
MelonLogger.Msg("Azazel not found !");
|
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;
|
return;
|
||||||
|
|
||||||
case "Molly":
|
case "Molly":
|
||||||
@@ -680,6 +686,12 @@ namespace DevourClient
|
|||||||
MelonLogger.Msg("Azazel not found !");
|
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;
|
return;
|
||||||
|
|
||||||
case "Inn":
|
case "Inn":
|
||||||
@@ -711,6 +723,11 @@ namespace DevourClient
|
|||||||
MelonLogger.Msg("Azazel not found !");
|
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;
|
return;
|
||||||
|
|
||||||
case "Town":
|
case "Town":
|
||||||
@@ -737,6 +754,11 @@ namespace DevourClient
|
|||||||
MelonLogger.Msg("Azazel not found !");
|
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;
|
return;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user