Flight improvements #2

Merged
pozhiloy-enotik merged 3 commits from master into master 2022-05-11 19:25:56 +00:00
Showing only changes of commit 375d47af6a - Show all commits

View File

@@ -3,6 +3,7 @@ using MelonLoader;
using UnityEngine.UI; using UnityEngine.UI;
using System.Reflection; using System.Reflection;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using DevourClient.Helpers;
namespace DevourClient.Hacks namespace DevourClient.Hacks
{ {
@@ -10,7 +11,7 @@ namespace DevourClient.Hacks
{ {
public static void Fly(float speed) //normal speed 5f public static void Fly(float speed) //normal speed 5f
{ {
NolanBehaviour nb = Object.FindObjectOfType<NolanBehaviour>(); NolanBehaviour nb = Player.GetPlayer();
Vector3 pos = nb.transform.position; Vector3 pos = nb.transform.position;
if (Input.GetKey(KeyCode.W)) if (Input.GetKey(KeyCode.W))
{ {