From 59f290773fec12983e431ec6cf8c5f4c3b0d6226 Mon Sep 17 00:00:00 2001 From: Jadis <49281043+jadis0x@users.noreply.github.com> Date: Thu, 8 Sep 2022 23:34:11 +0300 Subject: [PATCH] Added WalkInLobby function --- DevourClient/Hacks/Misc.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/DevourClient/Hacks/Misc.cs b/DevourClient/Hacks/Misc.cs index e14a557..3ea053b 100644 --- a/DevourClient/Hacks/Misc.cs +++ b/DevourClient/Hacks/Misc.cs @@ -6,6 +6,7 @@ using System.Runtime.InteropServices; using DevourClient.Helpers; using System.Linq; using System.Collections.Generic; +using Opsive.UltimateCharacterController.Character; namespace DevourClient.Hacks { @@ -43,6 +44,20 @@ namespace DevourClient.Hacks nb.locomotion.SetPosition(pos, false); } + public static void WalkInLobby(bool walk) + { + try { + if (Helpers.LocalPlayer.GetLocalPlayer().GetComponent() == null) + { + Helpers.LocalPlayer.GetLocalPlayer().AddComponent(); + Helpers.LocalPlayer.GetLocalPlayer().GetComponent().enabled = false; + } + + Helpers.LocalPlayer.GetLocalPlayer().GetComponent().enabled = walk; + } + catch { return; } + } + public static void BurnRitualObj(string map, bool burnAll) { SurvivalObjectBurnController _altar = UnityEngine.Object.FindObjectOfType();