mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-20 01:46:21 +00:00
Remove CanMovePatch and update readme
This commit is contained in:
2 files changed
+1
-22
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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<HudManager>.InstanceExists || !DestroyableSingleton<HudManager>.Instance.Chat.IsOpen && !DestroyableSingleton<HudManager>.Instance.KillOverlay.IsOpen && !DestroyableSingleton<HudManager>.Instance.GameMenu.IsOpen) /*&& (!ControllerManager.Instance || !ControllerManager.Instance.IsUiControllerActive)*/ && (!MapBehaviour.Instance || !MapBehaviour.Instance.IsOpenStopped) && !MeetingHud.Instance && !CustomPlayerMenu.Instance && !ExileController.Instance && !IntroCutscene.Instance;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user