Update MelonMain.cs #10

Merged
jadis0x merged 1 commits from patch-1 into master 2022-07-22 10:36:34 +00:00
Showing only changes of commit 5a858bea23 - Show all commits

View File

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