diff --git a/DevourClient/Hacks/Misc.cs b/DevourClient/Hacks/Misc.cs index 2748fa6..2630cd6 100644 --- a/DevourClient/Hacks/Misc.cs +++ b/DevourClient/Hacks/Misc.cs @@ -142,8 +142,7 @@ namespace DevourClient.Hacks _reviveInteractable.Interact(nb.gameObject); } - - public static void TPItems() + public static void TPItems() { try { diff --git a/DevourClient/Helpers/StateHelper.cs b/DevourClient/Helpers/StateHelper.cs index 5942fbc..c19d358 100644 --- a/DevourClient/Helpers/StateHelper.cs +++ b/DevourClient/Helpers/StateHelper.cs @@ -11,6 +11,56 @@ namespace DevourClient.Helpers public GameObject p_GameObject { get; set; } = default!; public string Name { get; set; } = default!; public string Id { get; set; } = default!; + + public void Kill() + { + if (p_GameObject == null) + { + return; + } + + Il2Cpp.NolanBehaviour nb = p_GameObject.GetComponent(); + } + + public void Revive() + { + if (p_GameObject == null) + { + return; + } + + Il2Cpp.NolanBehaviour nb = p_GameObject.GetComponent(); + Il2Cpp.SurvivalReviveInteractable _reviveInteractable = UnityEngine.Object.FindObjectOfType(); + + _reviveInteractable.Interact(nb.gameObject); + } + + public void Jumpscare() + { + if (p_GameObject == null) + { + return; + } + } + + public void LockInCage() + { + if (p_GameObject == null) + { + return; + } + } + + public void TP() + { + if (p_GameObject == null) + { + return; + } + + Il2Cpp.NolanBehaviour nb = Player.GetPlayer(); + nb.TeleportTo(p_GameObject.transform.position, Quaternion.identity); + } } public class Player { diff --git a/DevourClient/MelonMain.cs b/DevourClient/MelonMain.cs index 05e24fe..ea4ee11 100644 --- a/DevourClient/MelonMain.cs +++ b/DevourClient/MelonMain.cs @@ -650,6 +650,32 @@ namespace DevourClient } GUI.Label(new Rect(Settings.Settings.x + 580, Settings.Settings.y + 430 + i, 150, 30), bp.Name); + + if (GUI.Button(new Rect(Settings.Settings.x + 650, Settings.Settings.y + 430, 60, 20), "Kill")) + { + bp.Kill(); + } + + if (GUI.Button(new Rect(Settings.Settings.x + 710, Settings.Settings.y + 430, 80, 20), "Revive")) + { + bp.Revive(); + } + + if (GUI.Button(new Rect(Settings.Settings.x + 790, Settings.Settings.y + 430, 100, 20), "Jumpscare")) + { + bp.Jumpscare(); + } + + if (GUI.Button(new Rect(Settings.Settings.x + 890, Settings.Settings.y + 430, 80, 20), "TP to")) + { + bp.TP(); + } + + if (GUI.Button(new Rect(Settings.Settings.x + 970, Settings.Settings.y + 430, 110, 20), "Lock in cage")) + { + bp.LockInCage(); + } + i += 30; } } @@ -674,7 +700,7 @@ namespace DevourClient Hacks.Misc.BurnRitualObj(Helpers.Map.GetActiveScene(), true); } - if (GUI.Button(new Rect(Settings.Settings.x + 290, Settings.Settings.y + 430, 120, 20), "TP Azazel")) + if (GUI.Button(new Rect(Settings.Settings.x + 290, Settings.Settings.y + 430, 120, 20), "TP to Azazel")) { try { @@ -706,7 +732,7 @@ namespace DevourClient Hacks.Misc.BurnRitualObj(Helpers.Map.GetActiveScene(), true); } - if (GUI.Button(new Rect(Settings.Settings.x + 290, Settings.Settings.y + 430, 120, 20), "TP Azazel")) + if (GUI.Button(new Rect(Settings.Settings.x + 290, Settings.Settings.y + 430, 120, 20), "TP to Azazel")) { try { @@ -743,7 +769,7 @@ namespace DevourClient Hacks.Misc.CleanFountain(); } - if (GUI.Button(new Rect(Settings.Settings.x + 460, Settings.Settings.y + 430, 120, 20), "TP Azazel")) + if (GUI.Button(new Rect(Settings.Settings.x + 460, Settings.Settings.y + 430, 120, 20), "TP to Azazel")) { try { @@ -774,7 +800,7 @@ namespace DevourClient Hacks.Misc.BurnRitualObj(Helpers.Map.GetActiveScene(), true); } - if (GUI.Button(new Rect(Settings.Settings.x + 290, Settings.Settings.y + 430, 120, 20), "TP Azazel")) + if (GUI.Button(new Rect(Settings.Settings.x + 290, Settings.Settings.y + 430, 120, 20), "TP to Azazel")) { try {