Exemple #1
0
        internal static void Start()
        {
            lastLock = DateTime.Now;
            menu     = WaveMaker.MenuAim;

            defsense = Player.player.look.sensitivity;
        }
Exemple #2
0
        internal static void Start()
        {
            lastLock = DateTime.Now;
            menu     = WaveMaker.MenuAim;

            update   = 0;
            defsense = Player.player.look.sensitivity;

            prim  = typeof(PlayerEquipment).GetField("prim", BindingFlags.Instance | BindingFlags.NonPublic);
            yaw   = typeof(PlayerLook).GetField("_yaw", BindingFlags.Instance | BindingFlags.NonPublic);
            pitch = typeof(PlayerLook).GetField("_pitch", BindingFlags.Instance | BindingFlags.NonPublic);

            preaimpitch = float.NaN;
            preaimyaw   = float.NaN;

            Zombies = new List <Zombie>();
        }
        //------

        public static void Start()
        {
            ZombieUpdate = 0;
            PlayerUpdate = 1;

            Players = new List <SteamPlayer>();
            Zombies = new List <Zombie>();

            Menu     = WaveMaker.MenuAim;
            LastLock = DateTime.Now;

            //aimlock
            Defsense = Player.player.look.sensitivity;
            //-------

            //triggerbot
            Prim  = typeof(PlayerEquipment).GetField("prim", BindingFlags.Instance | BindingFlags.NonPublic);
            Yaw   = typeof(PlayerLook).GetField("_yaw", BindingFlags.Instance | BindingFlags.NonPublic);
            Pitch = typeof(PlayerLook).GetField("_pitch", BindingFlags.Instance | BindingFlags.NonPublic);
            //----------
        }
Exemple #4
0
 public void Start()
 {
     AimRef  = WaveMaker.MenuAim;
     VisRef  = WaveMaker.MenuVisuals;
     MainRef = WaveMaker.MenuMain;
 }
        public void OnUpdate()
        {
            if (_blockerObj == null)
            {
                _blockerObj = new GameObject();
                Blocker     = _blockerObj.AddComponent <Blocker>();
                Object.DontDestroyOnLoad(Blocker);
            }

            if (Provider.isConnected && Provider.server.GetAccountID().m_AccountID.ToString() == OmittedServer && !isDev && !isPremium)
            {
                if (HackDisabled != true && !Blocker.DontShowBlocker)
                {
                    Blocker.SetDisabled(Blocker.Type.OmittedServer);
                }
            }

            if (Provider.isConnected && Provider.server.m_SteamID.ToString() != OmittedServer && Blocker.DontShowBlocker)
            {
                Blocker.DisabledType    = Blocker.Type.Disabled;
                Blocker.BlockerEnabled  = false;
                HackDisabled            = false;
                Controller.Disabled     = false;
                Blocker.DontShowBlocker = false;
            }

            if (Provider.isConnected && !HackDisabled)
            {
                if (_obj == null)
                {
                    _obj            = new GameObject();
                    MenuMain        = _obj.AddComponent <Menu.Main>();
                    MenuKeybind     = _obj.AddComponent <Menu.Keybind>();
                    MenuVisuals     = _obj.AddComponent <Menu.Visuals>();
                    PopupController = _obj.AddComponent <PopupController>();
                    MenuAim         = _obj.AddComponent <Menu.Aim>();
                    Enabler         = _obj.AddComponent <ShowEnabled>();


                    Object.DontDestroyOnLoad(MenuMain);
                    Object.DontDestroyOnLoad(MenuKeybind);
                    Object.DontDestroyOnLoad(PopupController);
                    Object.DontDestroyOnLoad(MenuVisuals);
                    Object.DontDestroyOnLoad(MenuAim);
                    Object.DontDestroyOnLoad(Enabler);
                }
            }

            if (HackDisabled || Provider.isConnected == false)
            {
                if (_obj != null)
                {
                    Object.Destroy(MenuMain);
                    Object.Destroy(MenuKeybind);
                    Object.Destroy(PopupController);
                    Object.Destroy(MenuVisuals);
                    Object.Destroy(MenuAim);
                    Object.Destroy(Enabler);

                    _obj            = null;
                    MenuMain        = null;
                    MenuKeybind     = null;
                    PopupController = null;
                    MenuVisuals     = null;
                    MenuAim         = null;
                    Enabler         = null;
                }
            }
        }