From 6f9b77fc01cf4d61899f841c6d5891ef1bc7befa Mon Sep 17 00:00:00 2001 From: Gurge44 Date: Thu, 9 Apr 2026 08:37:13 +0200 Subject: [PATCH] fix noClip in GUI --- Modules/ClientControlGUI.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Modules/ClientControlGUI.cs b/Modules/ClientControlGUI.cs index f0f27fba4..bcf360d16 100644 --- a/Modules/ClientControlGUI.cs +++ b/Modules/ClientControlGUI.cs @@ -463,9 +463,7 @@ public class ClientControlGUI : MonoBehaviour } y += BH + P * 0.7f; - bool canNoclip = PlayerControl.LocalPlayer - && PlayerControl.LocalPlayer.CanMove - && (!AmongUsClient.Instance.IsGameStarted || !GameStates.IsOnlineGame); + bool canNoclip = canMove && (!AmongUsClient.Instance.IsGameStarted || !GameStates.IsOnlineGame); if (canNoclip) { @@ -473,7 +471,8 @@ public class ClientControlGUI : MonoBehaviour bool noclipOn = ControllerManagerUpdatePatch.NoClipEnabled; Btn(ref y, noclipOn ? "No-clip: ON" : "No-clip: OFF", noclipOn ? _sHost : _sAction, () => { - ControllerManagerUpdatePatch.NoClipEnabled = !ControllerManagerUpdatePatch.NoClipEnabled; + ControllerManagerUpdatePatch.NoClipEnabled = canNoclip && !ControllerManagerUpdatePatch.NoClipEnabled; + if (OperatingSystem.IsAndroid()) PlayerControl.LocalPlayer.Collider.offset = ControllerManagerUpdatePatch.NoClipEnabled ? new Vector2(0f, 127f) : new Vector2(0f, -0.3636f); }); } }