From 5a858bea23b2d1bc6a36acaf866c0acd4bec023b Mon Sep 17 00:00:00 2001 From: Jadis <49281043+jadis0x@users.noreply.github.com> Date: Fri, 22 Jul 2022 12:53:52 +0300 Subject: [PATCH] Update MelonMain.cs --- DevourClient/MelonMain.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/DevourClient/MelonMain.cs b/DevourClient/MelonMain.cs index 4fb1e35..ab83963 100644 --- a/DevourClient/MelonMain.cs +++ b/DevourClient/MelonMain.cs @@ -16,6 +16,7 @@ namespace DevourClient bool fly = false; float fly_speed = 5; public bool _IsCarryingFirstAidOnLocalCharacter = false; + public bool _IsAutoRespawn = true; public static bool exp_modifier = false; public static float exp = 1000f; @@ -89,6 +90,11 @@ namespace DevourClient { Hacks.Misc.Fly(this.fly_speed); } + + if(Player.IsInGame() && _IsAutoRespawn && Helpers.Player.IsPlayerCrawling()) + { + Hacks.Misc.AutoRespawn(); + } } public override void OnGUI() @@ -106,7 +112,8 @@ namespace DevourClient this.fly_speed = GUI.HorizontalSlider(new Rect(Settings.Settings.x + 200, Settings.Settings.y + 130, 100, 10), this.fly_speed, 5f, 20f); //Slider for the fly speed GUI.Label(new Rect(Settings.Settings.x + 310, Settings.Settings.y + 125, 100, 30), this.fly_speed.ToString()); //Prints the value of the slider; this._IsCarryingFirstAidOnLocalCharacter = GUI.Toggle(new Rect(Settings.Settings.x + 200, Settings.Settings.y + 190, 150, 20), this._IsCarryingFirstAidOnLocalCharacter, "IsCarryingFirstAid"); - + this._IsAutoRespawn = GUI.Toggle(new Rect(Settings.Settings.x + 200, Settings.Settings.y + 220, 150, 20), this._IsAutoRespawn, "Auto-Respawn"); + Load.exp_modifier = GUI.Toggle(new Rect(Settings.Settings.x + 350, Settings.Settings.y + 40, 150, 20), Load.exp_modifier, "Exp Modifier"); Load.exp = GUI.HorizontalSlider(new Rect(Settings.Settings.x + 350, Settings.Settings.y + 70, 100, 10), Load.exp, 1000f, 50000f); //Slider for the fly speed GUI.Label(new Rect(Settings.Settings.x + 410, Settings.Settings.y + 75, 100, 30), Load.exp.ToString()); //Prints the value of the slider;