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); }
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; }
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; }
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; }
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); } }); }
static void Main() { ZoomVar.RemoveFlags(ConVarFlags.Cheat); Game.OnWndProc += Game_OnWndProc; }