public static void RefreshStatus()
        {
            bool toggle = BlazeManager.GetForPlayer <bool>("RPC Block");

            BlazeManagerMenu.Main.togglerList["RPC Block"].btnOn.SetActive(toggle);
            BlazeManagerMenu.Main.togglerList["RPC Block"].btnOff.SetActive(!toggle);
        }
Beispiel #2
0
        private static IntPtr patch_method(IntPtr __self, IntPtr parameters, byte opCode, SendOptions sendParams, EgMessageType messageType = EgMessageType.Operation)
        {
            /*
             * if (UnityEngine.Input.GetKey(UnityEngine.KeyCode.P))
             * {
             *  VRC.UI.PageWorldInfo pageWorldInfo = UnityEngine.Object.FindObjectsOfType<VRC.UI.PageWorldInfo>()[0];
             *  Console.WriteLine(pageWorldInfo.apiWorld.id);
             * }
             */
            /*
             * Console.WriteLine("------------------------------");
             * Console.WriteLine("opCode: " + opCode.ToString());
             * Console.WriteLine("sendParams [channel]: " + sendParams.Channel.ToString());
             * Console.WriteLine("sendParams [DeliveryMode]: " + sendParams.DeliveryMode.ToString());
             * Console.WriteLine("sendParams [Encrypt]: " + sendParams.Encrypt.ToString());
             * Console.WriteLine("messageType: " + messageType.ToString());
             */

            if (BlazeManager.GetForPlayer <bool>("Photon Serilize"))
            {
                if (sendParams.DeliveryMode == DeliveryMode.UnreliableUnsequenced && sendParams.Channel != 1)
                {
                    return(true.Cast());
                }
            }

            return((pPhotonPeer.InvokeOriginal(__self, new IntPtr[] { parameters, new IntPtr(opCode), sendParams.Cast(), new IntPtr((int)messageType) }) != null).Cast());
        }
        public static void Toggle_Mode()
        {
            bool toggle = !BlazeManager.GetForPlayer <bool>("Fly Type");

            BlazeManager.SetForPlayer("Fly Type", toggle);
            RefreshStatus();
        }
        public static void RefreshStatus_FastJoin()
        {
            bool toggle = BlazeManager.GetForPlayer <bool>("Fast Join");

            BlazeManagerMenu.Main.togglerList["Fast Join"].btnOn.SetActive(toggle);
            BlazeManagerMenu.Main.togglerList["Fast Join"].btnOff.SetActive(!toggle);
        }
        public static void RefreshStatus_SteamSpoof()
        {
            bool toggle = BlazeManager.GetForPlayer <bool>("Steam Spoof");

            BlazeManagerMenu.Main.togglerList["Steam Spoof"].btnOn.SetActive(toggle);
            BlazeManagerMenu.Main.togglerList["Steam Spoof"].btnOff.SetActive(!toggle);
        }
        public static void RefreshStatusSpawn()
        {
            bool toggle = BlazeManager.GetForPlayer <bool>("No Portal Spawn");

            BlazeManagerMenu.Main.togglerList["No Portal Spawn"].btnOn.SetActive(toggle);
            BlazeManagerMenu.Main.togglerList["No Portal Spawn"].btnOff.SetActive(!toggle);
        }
        // TriggerEvent
        //  (VRC_EventHandler handler,
        //   VRC_EventHandler.VrcEvent e,
        //   VRC_EventHandler.VrcBroadcastType broadcast,
        //   int instagatorId,
        //   float fastForward);
        private static void patch_method(IntPtr instance, IntPtr handler, IntPtr e, IntPtr broadcast, IntPtr instagatorId, IntPtr fastForward)
        {
            if (instance == IntPtr.Zero)
            {
                return;
            }

            var    eVent   = new VRC_EventHandler.VrcEvent(e);
            string paramet = eVent.ParameterString;

            if (BlazeManager.GetForPlayer <bool>("RPC Block"))
            {
                if (!whiteList.Contains(paramet))
                {
                    return;
                }
            }

            pTriggerEvent.InvokeOriginal(instance, new IntPtr[] { handler, e, broadcast, instagatorId, fastForward });

            if (BlazeManager.GetForPlayer <bool>("No Portal Spawn"))
            {
                if (paramet == "ConfigurePortal")
                {
                    UserUtils.RemoveInstiatorObjects();
                }
            }
        }
        public static void RefreshStatus()
        {
            bool toggle = BlazeManager.GetForPlayer <bool>("Hide Pickup");

            BlazeManagerMenu.Main.togglerList["Hide Pickup"].btnOn.SetActive(toggle);
            BlazeManagerMenu.Main.togglerList["Hide Pickup"].btnOff.SetActive(!toggle);
            Update();
        }
        private static void patch_method(IntPtr instance, IntPtr e, VRC_EventHandler.VrcBroadcastType broadcast, IntPtr instagatorId, IntPtr fastForward)
        {
            if (BlazeManager.GetForPlayer <bool>("Global Events"))
            {
                broadcast = VRC_EventHandler.VrcBroadcastType.Always;
            }

            pGlobalEvents.InvokeOriginal(instance, new IntPtr[] { e, new IntPtr((int)broadcast), instagatorId, fastForward });
        }
        private static IntPtr patch_method4()
        {
            if (BlazeManager.GetForPlayer <bool>("Steam Spoof"))
            {
                return(false.Cast());
            }

            return((pPatch[3].InvokeOriginal() != null).Cast());
        }
        private static IntPtr patch_method3()
        {
            if (BlazeManager.GetForPlayer <bool>("Fast Join"))
            {
                return(true.Cast());
            }

            return((pPatch[2].InvokeOriginal() != null).Cast());
        }
        public static void Toggle_Enable()
        {
            bool toggle = !BlazeManager.GetForPlayer <bool>("Fly Enable");

            BlazeManager.SetForPlayer("Fly Enable", toggle);
            RefreshStatus();
            Player.Instance.GetComponent <Collider>().enabled = !toggle;
            Physics.gravity = toggle ? Vector3.zero : new Vector3(0, -9.5f, 0);
        }
        public static void RefreshStatus()
        {
            bool toggle = BlazeManager.GetForPlayer <bool>("AntiBlock");

            BlazeManagerMenu.Main.togglerList["AntiBlock"].btnOn.SetActive(toggle);
            BlazeManagerMenu.Main.togglerList["AntiBlock"].btnOff.SetActive(!toggle);
            foreach (var player in UnityEngine.Object.FindObjectsOfType <VRC.Player>())
            {
                player.UpdateModeration();
            }
        }
 internal static void Update()
 {
     ScanObjects();
     if (BlazeManager.GetForPlayer <bool>("Hide Pickup"))
     {
         HideAllObjects();
     }
     else
     {
         ShowAllObjects();
     }
 }
        public static void RefreshStatus()
        {
            bool toggle1 = BlazeManager.GetForPlayer <bool>("Fly Enable");

            BlazeManagerMenu.Main.togglerList["Fly Enabled"].btnOn.SetActive(toggle1);
            BlazeManagerMenu.Main.togglerList["Fly Enabled"].btnOff.SetActive(!toggle1);

            bool toggle2 = BlazeManager.GetForPlayer <bool>("Fly Type");

            BlazeManagerMenu.Main.togglerList["Fly Mode"].btnOn.SetActive(toggle2);
            BlazeManagerMenu.Main.togglerList["Fly Mode"].btnOff.SetActive(!toggle2);
        }
        private static void patch_method(IntPtr instance, IntPtr collider)
        {
            if (instance == IntPtr.Zero)
            {
                return;
            }

            if (BlazeManager.GetForPlayer <bool>("No Portal Join"))
            {
                return;
            }

            pPortalJoin.InvokeOriginal(instance, new IntPtr[] { collider });
        }
 public static void Toggle_Enable()
 {
     BlazeManager.SetForPlayer("Invis API", !BlazeManager.GetForPlayer <bool>("Invis API"));
     RefreshStatus();
 }
 public static void Toggle_SteamSpoof()
 {
     BlazeManager.SetForPlayer("Steam Spoof", !BlazeManager.GetForPlayer <bool>("Steam Spoof"));
     RefreshStatus_SteamSpoof();
     VRCPlayer.Refresh_Properties();
 }
 public static void Toggle_FastJoin()
 {
     BlazeManager.SetForPlayer("Fast Join", !BlazeManager.GetForPlayer <bool>("Fast Join"));
     RefreshStatus_FastJoin();
 }
        public static void Update()
        {
            if (!BlazeManager.GetForPlayer <bool>("Fly Enable"))
            {
                return;
            }
            if (BlazeManager.GetForPlayer <bool>("Fly Type"))
            {
                Player    player    = Player.Instance;
                Transform transform = Camera.main.transform;
                player.GetComponent <Collider>().enabled = false;
                float MultiSpeed = Input.GetKey(KeyCode.LeftShift) ? 2.5F : 1F;
                float calcTimes  = MultiSpeed * Time.deltaTime;
                // NoClipMode
                if (Input.GetKey(KeyCode.E))
                {
                    player.transform.position += new Vector3(0, 1f, 0) * fNoClipSpeed * calcTimes;
                }
                else if (Input.GetKey(KeyCode.Q))
                {
                    player.transform.position -= new Vector3(0, 1f, 0) * fNoClipSpeed * calcTimes;
                }

                Vector3 moveControl = Player.Instance.transform.position;
                if (Math.Abs(Input.GetAxis("Vertical")) > 0f)
                {
                    moveControl += calcTimes * fNoClipSpeed * transform.forward * Input.GetAxis("Vertical");
                }
                if (Math.Abs(Input.GetAxis("Horizontal")) > 0f)
                {
                    moveControl += calcTimes * fNoClipSpeed * transform.right * Input.GetAxis("Horizontal");
                }
                UserUtils.TeleportTo(moveControl);
            }
            else
            {
                Player player = Player.Instance;
                player.GetComponent <Collider>().enabled = true;
                if (Input.GetKey(KeyCode.Q))
                {
                    Physics.gravity = new Vector3(0, -9.5f, 0);
                    iCountBalance   = 10;
                }
                else if (Input.GetKey(KeyCode.E))
                {
                    Physics.gravity = new Vector3(0, 9.5f, 0);
                    iCountBalance   = 10;
                }
                else if (iCountBalance >= 0)
                {
                    CharacterController controller = player.GetComponent <CharacterController>();
                    if (controller.velocity[1] != 0.0f)
                    {
                        iCountBalance   = 10;
                        Physics.gravity = new Vector3(0, -controller.velocity[1] * 2.0f);
                    }
                    else
                    {
                        iCountBalance   = -1;
                        Physics.gravity = Vector3.zero;
                    }
                }
            }
        }
        private static void patch_method(IntPtr endpoint, IntPtr method, IntPtr responseContainer, IntPtr requestParams, IntPtr authenticationRequired, IntPtr disableCache, IntPtr cacheLifetime, IntPtr retryCount, IntPtr credentials)
        {
            string sEndpoint = IL2Import.IntPtrToString(endpoint);

            if ((sEndpoint == "visits" || sEndpoint == "joins" || (sEndpoint.StartsWith("avatars/avtr_") && sEndpoint.EndsWith("/select"))) && BlazeManager.GetForPlayer <bool>("Invis API"))
            {
                return;
            }

            pInvisMode.InvokeOriginal(IntPtr.Zero, new IntPtr[] {
                endpoint,
                method,
                responseContainer,
                requestParams,
                authenticationRequired,
                disableCache,
                cacheLifetime,
                retryCount,
                credentials
            });
        }
 public static void Toggle_Enable()
 {
     BlazeManager.SetForPlayer("AntiBlock", !BlazeManager.GetForPlayer <bool>("AntiBlock"));
     RefreshStatus();
 }
Beispiel #23
0
 public static void Init()
 {
     BlazeManager.Start();
 }
 public static void Toggle_Enable()
 {
     BlazeManager.SetForPlayer("Global Events", !BlazeManager.GetForPlayer <bool>("Global Events"));
     RefreshStatus();
 }
Beispiel #25
0
 public static void Toggle_Enable()
 {
     BlazeManager.SetForPlayer("Photon Serilize", !BlazeManager.GetForPlayer <bool>("Photon Serilize"));
     RefreshStatus();
 }
 public static void Toggle_Enable()
 {
     BlazeManager.SetForPlayer("Hide Pickup", !BlazeManager.GetForPlayer <bool>("Hide Pickup"));
     RefreshStatus();
 }
 public static void Toggle_Enable_Spawn()
 {
     BlazeManager.SetForPlayer("No Portal Spawn", !BlazeManager.GetForPlayer <bool>("No Portal Spawn"));
     RefreshStatusSpawn();
 }