Added WalkInLobby function
This commit is contained in:
@@ -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<UltimateCharacterLocomotionHandler>() == null)
|
||||
{
|
||||
Helpers.LocalPlayer.GetLocalPlayer().AddComponent<UltimateCharacterLocomotionHandler>();
|
||||
Helpers.LocalPlayer.GetLocalPlayer().GetComponent<UltimateCharacterLocomotionHandler>().enabled = false;
|
||||
}
|
||||
|
||||
Helpers.LocalPlayer.GetLocalPlayer().GetComponent<UltimateCharacterLocomotionHandler>().enabled = walk;
|
||||
}
|
||||
catch { return; }
|
||||
}
|
||||
|
||||
public static void BurnRitualObj(string map, bool burnAll)
|
||||
{
|
||||
SurvivalObjectBurnController _altar = UnityEngine.Object.FindObjectOfType<SurvivalObjectBurnController>();
|
||||
|
||||
Reference in New Issue
Block a user