Пример #1
0
        private static void Game_OnUpdate(EventArgs args)
        {
            if (!Game.IsInGame)
            {
                loaded = false;
                return;
            }
            if (loaded)
            {
                return;
            }
            // <HackParticle>
            Game.GetConsoleVar("fog_enable").SetValue(0);
            Game.GetConsoleVar("fow_client_nofiltering").SetValue(1);
            Game.GetConsoleVar("dota_use_particle_fow").SetValue(0);
            Game.GetConsoleVar("dota_use_particle_fow_unbloated").SetValue(0);

            var player = ObjectManager.LocalPlayer;

            if ((player == null) || (player.Team == Team.Observer))
            {
                return;
            }
            Game.PrintMessage("<font color='#aaaaaa'>Zoom Particle Hack </font><font color='#33ff66'>Loaded</font>");
            var slider = new MenuItem("distance", "Camera Distance").SetValue(new Slider(1550, 1134, 3100));

            slider.ValueChanged += Slider_ValueChanged;
            Menu.AddItem(slider);
            Menu.AddToMainMenu();
            ZoomVar.RemoveFlags(ConVarFlags.Cheat);
            renderVar.RemoveFlags(ConVarFlags.Cheat);
            ZoomVar.SetValue(slider.GetValue <Slider>().Value);
            renderVar.SetValue(2 * (slider.GetValue <Slider>().Value));
            loaded = true;
        }
Пример #2
0
        public static void ChangeDistance(WndEventArgs args)
        {
            if (!OnUpdate.CanUpdate() || args.Msg != WmMousewheel || !Game.IsKeyDown(VkCtrl))
            {
                return;
            }
            var delta     = (short)((args.WParam >> 16) & 0xFFFF);
            var zoomValue = ZoomVar.GetInt();

            if (delta < 0)
            {
                zoomValue += 50;
            }
            if (delta > 0)
            {
                zoomValue -= 50;
            }
            if (zoomValue < 1134)
            {
                zoomValue = 1134;
            }
            ZoomVar.SetValue(zoomValue);
            MenuVar.CameraDistance.SetValue(new Slider(zoomValue, 1134, 2000));
            args.Process = false;
        }
Пример #3
0
        public static void Load()
        {
            Game.GetConsoleVar("fog_enable").SetValue(0);
            ZoomVar.SetValue(MainMenu.MenuSettings.Item("cameradistance").GetValue <Slider>().Value);
            RenderVar.SetValue(2 * MainMenu.MenuSettings.Item("cameradistance").GetValue <Slider>().Value);

            ZoomVar.RemoveFlags(ConVarFlags.Cheat);
            RenderVar.RemoveFlags(ConVarFlags.Cheat);

            var var = Game.GetConsoleVar("dota_use_particle_fow");

            var.RemoveFlags(ConVarFlags.Cheat);
            var.SetValue(0);
        }
Пример #4
0
        static void Main()
        {
            var slider = new MenuItem("distance", "Default camera distance").SetValue(new Slider(1134, 1134, 3000));

            slider.ValueChanged += Slider_ValueChanged;
            Menu.AddItem(slider);

            Menu.AddToMainMenu();

            ZoomVar.RemoveFlags(ConVarFlags.Cheat);
            ZoomVar.SetValue(slider.GetValue <Slider>().Value);
            Game.GetConsoleVar("r_farz").SetValue(18000);

            Game.OnWndProc += Game_OnWndProc;
        }
Пример #5
0
 private static void Game_OnWndProc(WndEventArgs args)
 {
     if (args.Msg == WM_MOUSEWHEEL /* && Game.IsInGame*/)
     {
         if (Game.IsKeyDown(VK_CTRL))
         {
             // Get HIWORD(wParam)
             var delta = (short)((args.WParam >> 16) & 0xFFFF);
             // GetValue
             var zoomValue = ZoomVar.GetInt();
             if (delta < 0)
             {
                 zoomValue += 50;
             }
             else
             {
                 zoomValue -= 50;
             }
             // Set updated value
             ZoomVar.SetValue(zoomValue);
             // Block processed input from game
             args.Process = false;
         }
     }
 }
Пример #6
0
        private static void Game_OnUpdate(EventArgs args)
        {
            if (!Game.IsInGame)
            {
                loaded = false;
                return;
            }
            if (loaded)
            {
                return;
            }
            var slider = new MenuItem("distance", "Camera Distance").SetValue(new Slider(1550, 1134, 2500));

            slider.ValueChanged += Slider_ValueChanged;
            Menu.AddItem(slider);
            Menu.AddToMainMenu();
            ZoomVar.RemoveFlags(ConVarFlags.Cheat);
            ZoomVar.SetValue(slider.GetValue <Slider>().Value);
            Game.GetConsoleVar("r_farz").SetValue(18000);
            Game.GetConsoleVar("fog_enable").SetValue(0);
            Game.GetConsoleVar("dota_camera_disable_zoom").SetValue(0);
            // This section makes MapHack Working
            var list = new Dictionary <string, float>
            {
                { "sv_cheats", 1 }
            };

            foreach (var data in list)
            {
                var var = Game.GetConsoleVar(data.Key);
                var.RemoveFlags(ConVarFlags.Cheat);
                var.SetValue(data.Value);
            }
            // Thats it
            loaded = true;
        }
Пример #7
0
        public ConsoleCommands(MenuFactory MenuFactory)
        {
            var ConsoleCommandsMenu = MenuFactory.Menu("Console Commands");

            FogItem          = ConsoleCommandsMenu.Item("Fog Disable", true);
            FilteringItem    = ConsoleCommandsMenu.Item("Filtering Disable", true);
            ParticleHackItem = ConsoleCommandsMenu.Item("Particle Hack Enable", true);

            Fog = Game.GetConsoleVar("fog_enable");
            Fog.SetValue(Convert.ToInt32(!FogItem.Value));

            Filtering = Game.GetConsoleVar("fow_client_nofiltering");
            Filtering.SetValue(Convert.ToInt32(FilteringItem.Value));

            ParticleHack = Game.GetConsoleVar("dota_use_particle_fow");
            ParticleHack.SetValue(Convert.ToInt32(!ParticleHackItem.Value));

            FogItem.PropertyChanged          += FogItemChanged;
            FilteringItem.PropertyChanged    += FilteringItemChanged;
            ParticleHackItem.PropertyChanged += ParticleHackItemChanged;
        }
Пример #8
0
        public WeatherHack(MenuFactory MenuFactory)
        {
            var WeatherHackMenu = MenuFactory.Menu("Weather Hack");

            WeatherItem = WeatherHackMenu.Item("Selected", new StringList(new[]
            {
                "Default",
                "Snow",
                "Rain",
                "Moonbeam",
                "Pestilence",
                "Harvest",
                "Sirocco",
                "Ash",
                "Aurora"
            }));

            Weather = Game.GetConsoleVar("cl_weather");
            Weather.SetValue(WeatherItem.Value.SelectedIndex);

            WeatherItem.PropertyChanged += WeatherItemChanged;
        }
Пример #9
0
        private static void EventsOnOnLoad(object sender, EventArgs eventArgs)
        {
            var zoomhackMenu = new Menu("Zoom Hack", "Zoom Hack");

            Menu.AddSubMenu(zoomhackMenu);

            var slider = new MenuItem("distance", "Camera Distance").SetValue(new Slider(1550, 1134, 9000));

            slider.ValueChanged += Slider_ValueChanged;
            zoomhackMenu.AddItem(slider);

            var maphackMenu = new Menu("Map Hack", "Map Hack");

            Menu.AddSubMenu(maphackMenu);

            var fogenable = new MenuItem("fog_enable", "Fog Disable").SetValue(true);

            fogenable.ValueChanged += ValueChanged;
            maphackMenu.AddItem(fogenable);
            var nofiltering = new MenuItem("no_filtering", "Filtering Disable").SetValue(true);

            nofiltering.ValueChanged += ValueChanged;
            maphackMenu.AddItem(nofiltering);
            var particle = new MenuItem("particle", "Particle Hack Enable").SetValue(true);

            particle.ValueChanged += ValueChanged;
            maphackMenu.AddItem(particle);

            Menu.AddToMainMenu();

            PrintSuccess(">>>>>> DotaMapPlus Loaded!");
            Weather.Init();

            ZoomVar.RemoveFlags(ConVarFlags.Cheat);
            renderVar.RemoveFlags(ConVarFlags.Cheat);
            ZoomVar.SetValue(slider.GetValue <Slider>().Value);
            renderVar.SetValue(2 * (slider.GetValue <Slider>().Value));

            DelayAction.Add(3000, () =>
            {
                if (Menu.Item("fog_enable").GetValue <bool>())
                {
                    Game.GetConsoleVar("fog_enable").SetValue(0);
                }
                if (!Menu.Item("fog_enable").GetValue <bool>())
                {
                    Game.GetConsoleVar("fog_enable").SetValue(1);
                }

                if (Menu.Item("no_filtering").GetValue <bool>())
                {
                    Game.GetConsoleVar("fow_client_nofiltering").SetValue(1);
                }
                if (!Menu.Item("no_filtering").GetValue <bool>())
                {
                    Game.GetConsoleVar("fow_client_nofiltering").SetValue(0);
                }

                if (Menu.Item("particle").GetValue <bool>())
                {
                    Game.GetConsoleVar("dota_use_particle_fow").SetValue(0);
                    Game.GetConsoleVar("dota_use_particle_fow_unbloated").SetValue(0);
                }
                if (!Menu.Item("particle").GetValue <bool>())
                {
                    Game.GetConsoleVar("dota_use_particle_fow").SetValue(1);
                    Game.GetConsoleVar("dota_use_particle_fow_unbloated").SetValue(1);
                }
            });
        }