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();