From 1b077ed6ad5004671d5f22f6f9216a822f561ca5 Mon Sep 17 00:00:00 2001 From: js6pak Date: Thu, 10 Jun 2021 20:32:33 +0200 Subject: [PATCH] Remove CanMovePatch and update readme --- README.md | 4 +--- Reactor/Patches/CanMovePatch.cs | 19 ------------------- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 Reactor/Patches/CanMovePatch.cs diff --git a/README.md b/README.md index 7669aa6..81ede28 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,7 @@ Modding api for Among Us Featuring amazing features like: -- automatic deobfuscation using [OxygenFilter](https://github.com/NuclearPowered/Reactor.OxygenFilter) -- modded handshake (example implementation is here [NuclearPowered/Impostor](https://github.com/NuclearPowered/Impostor)) -- unstripped [IMGUI](https://docs.unity3d.com/Manual/GUIScriptingGuide.html), [UI](https://docs.unity3d.com/2019.1/Documentation/ScriptReference/UI.DefaultControls.html), [AssetBundle](https://docs.unity3d.com/ScriptReference/AssetBundle.html), [ImageConversion](https://docs.unity3d.com/ScriptReference/ImageConversion.html) +- modded handshake (example implementation is here [NuclearPowered/Reactor.Impostor](https://github.com/NuclearPowered/Reactor.Impostor)) - custom rpc api - a lot of utility methods diff --git a/Reactor/Patches/CanMovePatch.cs b/Reactor/Patches/CanMovePatch.cs deleted file mode 100644 index cd1c2cc..0000000 --- a/Reactor/Patches/CanMovePatch.cs +++ /dev/null @@ -1,19 +0,0 @@ -#if STEAM -using HarmonyLib; - -namespace Reactor.Patches -{ - // Addresses the issue where players are sometimes unable to move after meetings unless they open and close a menu - // Affects 2021.3.31.3s, check whether this is required on Itch or future updates - [HarmonyPatch(typeof(PlayerControl), nameof(PlayerControl.CanMove), MethodType.Getter)] - internal static class CanMovePatch - { - public static bool Prefix(PlayerControl __instance, ref bool __result) - { - __result = __instance.moveable && !Minigame.Instance && (!DestroyableSingleton.InstanceExists || !DestroyableSingleton.Instance.Chat.IsOpen && !DestroyableSingleton.Instance.KillOverlay.IsOpen && !DestroyableSingleton.Instance.GameMenu.IsOpen) /*&& (!ControllerManager.Instance || !ControllerManager.Instance.IsUiControllerActive)*/ && (!MapBehaviour.Instance || !MapBehaviour.Instance.IsOpenStopped) && !MeetingHud.Instance && !CustomPlayerMenu.Instance && !ExileController.Instance && !IntroCutscene.Instance; - - return false; - } - } -} -#endif