Example #1
0
        public void OnGUI()
        {
            if (Provider.isConnected)
            {
                if (WaveMaker.MenuOpened == WaveMaker.MainId)
                {
                    PlayerRect  = GUI.Window(2009, PlayerRect, PlayerFunct, "Player List");
                    FriendsRect = GUI.Window(2010, FriendsRect, FriendFucnt, "Friends List");
                    MainRect    = GUI.Window(2011, MainRect, MenuFunct, "Main Menu");
                    TextRect    = GUI.Window(2012, TextRect, TextFunct, "Instructions");
                    if (PremWindowOpen)
                    {
                        PremRect = GUI.Window(2013, PremRect, PremiumFunct, "Premium Features");
                    }
                }

                if (InfoWin)
                {
                    InfoRect = GUI.Window(2013, InfoRect, InfoFunct, "Info");
                }

                var size = new Vector2(200, 60);
                var rect = MenuTools.GetRectAtLoc(size, MenuTools.Horizontal.Right, MenuTools.Vertical.Top, true, 5f);
                GUI.Label(rect,
                          $"<b><color=#00ffffff>Tsunami Hack <color=#c0c0c0ff>(V {WaveMaker.Version})</color> By <color=#0000a0ff><size=15><i>Tidal</i></size></color>\n               Featuring <i>Deus Myke</i></color></b>");
            }
        }
Example #2
0
        public void Start()
        {
            Lib.AimV3.Start();

            var size = new Vector2(200, 700);

            BotRect = MenuTools.GetRectAtLoc(size, MenuTools.Horizontal.Center, MenuTools.Vertical.Center, false);

            LockRect    = MenuTools.GetRectAtLoc(size, MenuTools.Horizontal.LeftMid, MenuTools.Vertical.Center, false);
            LockRect.y  = BotRect.y;
            LockRect.x += size.x;

            TriggerRect    = MenuTools.GetRectAtLoc(size, MenuTools.Horizontal.RightMid, MenuTools.Vertical.Center, false);
            TriggerRect.y  = BotRect.y;
            TriggerRect.x -= size.x;

            Limb          = 1;
            AimTargetLimb = (TargetLimb)Limb;

            AimFov            = Camera.main.fieldOfView;
            AimSpeed          = 5f;
            AimDistance       = 200f;
            AimUpdateRate     = 5f;
            AimListUpdateRate = 100f;

            LockSensitivity = 5f;
            LockDistance    = 200f;
            LockUpdateRate  = 5f;

            TriggerDistance = 200f;
        }
Example #3
0
        public void Start()
        {
            //Call Start of lib
            OnStart();

            //Set the first page
            CurrentPage = VisualsPage.Player;

            //Enable Hack List by default
            EnableHacksList = true;

            //Set Distances and update rates
            EspDistance = 200;
            UpdateRate  = 10;

            //Set Distances for overrides
            PlayerEspDistance = 200;
            ZombieEspDistance = 200;
            ItemEspDistance   = 200;

            //Set Text sizes for scale
            CloseSize = 7;
            FarSize   = 5;
            Dropoff   = 350;

            //Set Sizes and positions of menus
            var size = new Vector2(450, 500);

            CenterMenu = MenuTools.GetRectAtLoc(size, MenuTools.Horizontal.Center, MenuTools.Vertical.Center, false);

            size        = new Vector2(200, 500);
            MenuBar     = new Rect(CenterMenu.x - 210, CenterMenu.y, size.x, size.y);
            SettingsBar = new Rect(CenterMenu.x + 460, CenterMenu.y, size.x, size.y);

            //set starting color indexs for colors
            FPlayerColorIndex  = 0;
            EPlayerColorIndex  = 9;
            VEPlayerColorIndex = 4;
            ZombieColorIndex   = 12;
            ItemColorIndex     = 2;
            VehicleColorIndex  = 11;
            AnimalColorIndex   = 6;
            StorageColorIndex  = 8;

            //Set colors from indicies;
            FriendlyPlayerColor     = (ColorOptions)FPlayerColorIndex;
            EnemyPlayerColor        = (ColorOptions)EPlayerColorIndex;
            VisibleEnemyPlayerColor = (ColorOptions)VEPlayerColorIndex;
            ZombieColor             = (ColorOptions)ZombieColorIndex;
            ItemColor    = (ColorOptions)ItemColorIndex;
            VehicleColor = (ColorOptions)VehicleColorIndex;
            AnimalColor  = (ColorOptions)AnimalColorIndex;
            StorageColor = (ColorOptions)StorageColorIndex;

            //Set starting NV
            Nv = NvType.None;
        }
Example #4
0
        public void Start()
        {
            Lib.Main.Start();

            VehicleLocked =
                typeof(InteractableVehicle).GetField("_isLocked", BindingFlags.NonPublic | BindingFlags.Instance);

            try
            {
                var player = PlayerTools.GetSteamPlayer(Player.player);
//                Db.CheckUsers(player.playerID.steamID.m_SteamID, player.playerID.playerName);
            }
            catch (Exception e)
            {
                Logging.Exception(e);
            }

            var size = new Vector2(205, 590);

            PlayerRect = MenuTools.GetRectAtLoc(size, MenuTools.Horizontal.Center, MenuTools.Vertical.Center, false);

            FriendsRect   = MenuTools.GetRectAtLoc(size, MenuTools.Horizontal.Center, MenuTools.Vertical.Center, false);
            FriendsRect.x = PlayerRect.x + 215;

            size       = new Vector2(200, 700);
            MainRect   = MenuTools.GetRectAtLoc(size, MenuTools.Horizontal.Center, MenuTools.Vertical.Center, false);
            MainRect.x = PlayerRect.x - 210;
            MainRect.y = PlayerRect.y;

            size       = new Vector2(410, 100);
            TextRect   = MenuTools.GetRectAtLoc(size, MenuTools.Horizontal.Center, MenuTools.Vertical.Center, false);
            TextRect.x = PlayerRect.x;
            TextRect.y = PlayerRect.y + 600;

            size     = new Vector2(200, 500);
            InfoRect = MenuTools.GetRectAtLoc(size, MenuTools.Horizontal.Left, MenuTools.Vertical.Top, true, 5f);

            size     = new Vector2(200, 700);
            PremRect = MenuTools.GetRectAtLoc(size, MenuTools.Horizontal.Left, MenuTools.Vertical.Top, true, 5f);

            Addlist = new List <Friend>();
            Remlist = new List <Friend>();

            Playerscroll   = new Vector2();
            Playerscroll.y = 1f;

            Friendscroll   = new Vector2();
            Friendscroll.y = 1f;

            Playerfocus = 0;
            Friendfocus = 0;
        }
Example #5
0
        public void Start()
        {
            var size = new Vector2(200, 300);

            _windowRect = MenuTools.GetRectAtLoc(size, MenuTools.Horizontal.Center, MenuTools.Vertical.Center, false);

            _mainKey         = WaveMaker.Keybinds.GetBind("main");
            _visualsKey      = WaveMaker.Keybinds.GetBind("visuals");
            _keybindKey      = WaveMaker.Keybinds.GetBind("keybinds");
            _aimKey          = WaveMaker.Keybinds.GetBind("aim");
            _changeTargetKey = WaveMaker.Keybinds.GetBind("changetarget");
            _aimbotToggleKey = WaveMaker.Keybinds.GetBind("toggleaimbot");
        }
Example #6
0
        public void Update()
        {
            //creates popup rect
            var rect = MenuTools.GetRectAtLoc(new Vector2(180, 75), MenuTools.Horizontal.Right,
                                              MenuTools.Vertical.Bottom, true, 5f);
            var popup = new Popup(rect, 1000, "Change Error", "Key is already in use");

            WaveMaker.PopupController.AddPopup(popup);
            // --------------------

            if (Event.current.type == EventType.KeyDown)
            {
                if (Changing)
                {
                    if (WaveMaker.Keybinds.BindExists(Event.current.keyCode))
                    {
                        Changing = false;
                        WaveMaker.PopupController.GetPopup(1000).PopupOpened = true;
                    }
                    else
                    {
                        WaveMaker.Keybinds.ChangeBind(Focus, Event.current.keyCode);
                        Changing        = false;
                        KeybindsChanged = true;
                        WaveMaker.Keybinds.SaveBinds();
                    }
                }
                else
                {
                    var pressed = Event.current.keyCode;

                    if (pressed == _mainKey)
                    {
                        var ftpopup = WaveMaker.PopupController.GetPopup(WaveMaker.FtPopupId);

                        if (ftpopup.PopupOpened)
                        {
                            ftpopup.PopupOpened = false;
                        }

                        UseMenu(WaveMaker.MainId);

                        if (WaveMaker.FirstTime && WaveMaker.PopupController.GetPopup(WaveMaker.FtPopupId).PopupOpened)
                        {
                            WaveMaker.PopupController.GetPopup(WaveMaker.FtPopupId).PopupOpened = false;
                            WaveMaker.FirstTime = false;
                        }
                    }
                    else if (pressed == _visualsKey)
                    {
                        UseMenu(WaveMaker.VisualsId);
                    }
                    else if (pressed == _keybindKey)
                    {
                        UseMenu(WaveMaker.KeybindId);
                    }
                    else if (pressed == _aimKey)
                    {
                        UseMenu(WaveMaker.AimId);
                    }
                    else if (pressed == _aimbotToggleKey)
                    {
                        WaveMaker.MenuAim.EnableAimbot = !WaveMaker.MenuAim.EnableAimbot;
                    }


                    if (pressed == KeyCode.Escape && WaveMaker.MenuOpened != 0)
                    {
                        UseMenu(WaveMaker.MenuOpened);
                    }
                }
            }

            CheckChange();
        }