Esempio n. 1
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Clockwork", "zaioClockwork", false, "npc_dota_hero_rattletrap", true);

            heroMenu.AddItem(new MenuItem("zaioClockworkAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioClockworkAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioClockworkKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioClockworkKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            _circleTillHook         = new MenuItem("zaioClockworkStopTillHook", "Circle on blocked Hook").SetValue(true);
            _circleTillHook.Tooltip = "Moves on a circle when your hook is blocked.";
            heroMenu.AddItem(_circleTillHook);

            ZaioMenu.LoadHeroSettings(heroMenu);
        }
Esempio n. 2
0
File: Nyx.cs Progetto: Mej0/a
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Nyx", "zaioNyx", false, "npc_dota_hero_nyx_assassin", true);

            heroMenu.AddItem(new MenuItem("zaioNyxAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioNyxAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioNyxKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioNyxKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _ultAbility      = MyHero.GetAbilityById(AbilityId.nyx_assassin_vendetta);
            _manaBurnAbility = MyHero.GetAbilityById(AbilityId.nyx_assassin_mana_burn);
            _stunAbility     = MyHero.GetAbilityById(AbilityId.nyx_assassin_impale);
        }
Esempio n. 3
0
File: Sniper.cs Progetto: Mej0/a
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Sniper", "zaioSniper", false, "npc_dota_hero_sniper", true);

            heroMenu.AddItem(new MenuItem("zaioSniperAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioSniperAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioSniperKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioSniperKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _shrapnelAbility = MyHero.GetAbilityById(AbilityId.sniper_shrapnel);
            _ultAbility      = MyHero.GetAbilityById(AbilityId.sniper_assassinate);
        }
Esempio n. 4
0
File: Tiny.cs Progetto: Mej0/a
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Tiny", "zaioTiny", false, "npc_dota_hero_tiny", true);

            heroMenu.AddItem(new MenuItem("zaioTinyAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioTinyAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            OnLoadMenuItems(supportedStuff);

            _throwBackComboKey =
                new MenuItem("zaioTinyThrowBack", "Throw Back").SetValue(new KeyBind(0, KeyBindType.Press));
            _throwBackComboKey.Tooltip       = "Throws an enemy back to your allies or under your tower.";
            _throwBackComboKey.ValueChanged += _throwBackComboKey_ValueChanged;
            heroMenu.AddItem(_throwBackComboKey);

            _throwBackHeroCount =
                new MenuItem("zaioTinyThrowBackHeroCount", "Throw Back Hero Count").SetValue(new Slider(2, 1, 4));
            _throwBackHeroCount.Tooltip = "How many allied heroes must be close to throw back an enemy.";
            heroMenu.AddItem(_throwBackHeroCount);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _avalancheAbility = MyHero.GetAbilityById(AbilityId.tiny_avalanche);
            _tossAbility      = MyHero.GetAbilityById(AbilityId.tiny_toss);

            _throwBackCombo = new Combo(ThrowBack,
                                        KeyInterop.KeyFromVirtualKey((int)_throwBackComboKey.GetValue <KeyBind>().Key));
            _throwBackCombo.Activate();
        }
Esempio n. 5
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Phantom Assassin", "zaioPhantomAssassink", false, "npc_dota_hero_phantom_assassin",
                                    true);

            heroMenu.AddItem(new MenuItem("zaioPhantomAssassinAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioPhantomAssassinAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioPhantomAssassinKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioPhantomAssassinKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _daggerAbility = MyHero.GetAbilityById(AbilityId.phantom_assassin_stifling_dagger);
            _blinkAbility  = MyHero.GetAbilityById(AbilityId.phantom_assassin_phantom_strike);
        }
Esempio n. 6
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("AntiMage", "zaioAntiMage", false, "npc_dota_hero_antimage", true);

            heroMenu.AddItem(new MenuItem("zaioAntiMageAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioAntiMageAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioAntiMageKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioAntiMageKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            this._minimumEnemyUltCount =
                new MenuItem("zaioAntiMageMinEnemyCount", "Minimum Enemies for Ult").SetValue(new Slider(1, 0, 4));
            this._minimumEnemyUltCount.Tooltip = "Minimum enemies besides your target to use ult. Also used for killsteal with (+1)!";
            heroMenu.AddItem(this._minimumEnemyUltCount);

            this.OnLoadMenuItems(supportedStuff, supportedKillsteal);

            ZaioMenu.LoadHeroSettings(heroMenu);

            this._blinkAbility = this.MyHero.GetAbilityById(AbilityId.antimage_blink);
            this._ultAbility   = this.MyHero.GetAbilityById(AbilityId.antimage_mana_void);
        }
Esempio n. 7
0
File: MonkeyKing.cs Progetto: Mej0/a
        public override void OnLoad()
        {
            base.OnLoad();

            Player.OnExecuteOrder += Player_OnExecuteOrder;

            var heroMenu = new Menu("MonkeyKing", "zaioMonkeyKing", false, "npc_dota_hero_monkey_king", true);

            heroMenu.AddItem(new MenuItem("zaioMonkeyKingAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioMonkeyKingAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioMonkeyKingKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioMonkeyKingKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            _minimumEnemyUltCount =
                new MenuItem("zaioMonkeyKingMinEnemyCount", "Minimum Enemies for Ult").SetValue(new Slider(1, 0, 4));
            _minimumEnemyUltCount.Tooltip = "Minimum enemies besides your target to use ult.";
            heroMenu.AddItem(_minimumEnemyUltCount);

            _stunAbility        = MyHero.GetAbilityById(AbilityId.monkey_king_boundless_strike);
            _springAbility      = MyHero.GetAbilityById(AbilityId.monkey_king_primal_spring);
            _springEarlyAbility = MyHero.GetAbilityById(AbilityId.monkey_king_primal_spring_early);
            _ultAbility         = MyHero.GetAbilityById(AbilityId.monkey_king_wukongs_command);

            ZaioMenu.LoadHeroSettings(heroMenu);
        }
Esempio n. 8
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Windrunner", "zaioWindrunner", false, "npc_dota_hero_windrunner", true);

            heroMenu.AddItem(new MenuItem("zaioWindrunnerAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioWindrunnerAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioWindrunnerKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioWindrunnerKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            _branchShackle         = new MenuItem("zaioBranchShackle", "Use Shackle -> Blink -> Branch").SetValue(true);
            _branchShackle.Tooltip = "Will use the shackle -> blink -> branch trick if suitable.";
            heroMenu.AddItem(_branchShackle);

            _orbwalkWhileUlt         = new MenuItem("zaioOrbwalkWhileUlt", "Enable Ult-Orbwalking").SetValue(false);
            _orbwalkWhileUlt.Tooltip = "Enables orbwalking while being under the effect of focus fire.";
            heroMenu.AddItem(_orbwalkWhileUlt);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _shackleAbility   = MyHero.GetAbilityById(AbilityId.windrunner_shackleshot);
            _powerShotAbility = MyHero.GetAbilityById(AbilityId.windrunner_powershot);
            _ultAbility       = MyHero.GetAbilityById(AbilityId.windrunner_focusfire);

            NewTargetAcquired     += OnNewTargetAcquired;
            Player.OnExecuteOrder += Player_OnExecuteOrder;
        }
Esempio n. 9
0
File: Lina.cs Progetto: Mej0/a
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Lina", "zaioLinak", false, "npc_dota_hero_lina", true);

            heroMenu.AddItem(new MenuItem("zaioLinaAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioLinaAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioLinaKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioLinaKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _stunAbility  = MyHero.GetAbilityById(AbilityId.lina_light_strike_array);
            _slaveAbility = MyHero.GetAbilityById(AbilityId.lina_dragon_slave);
            _ultAbility   = MyHero.GetAbilityById(AbilityId.lina_laguna_blade);
        }
Esempio n. 10
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("SpiritBreaker", "zaioSpiritBreaker", false, "npc_dota_hero_spirit_breaker", true);

            heroMenu.AddItem(new MenuItem("zaioSpiritBreakerAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioSpiritBreakerAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            OnLoadMenuItems(supportedStuff);

            _chargeAwayKey =
                new MenuItem("zaioSpiritBreakerChargeAway", "Charge Away").SetValue(new KeyBind(0, KeyBindType.Press));
            _chargeAwayKey.Tooltip       = "Hotkey for charging away.";
            _chargeAwayKey.ValueChanged += _chargeAwayKey_ValueChanged;
            heroMenu.AddItem(_chargeAwayKey);



            ZaioMenu.LoadHeroSettings(heroMenu);

            _chargeAbility = MyHero.GetAbilityById(AbilityId.spirit_breaker_charge_of_darkness);
            _ultAbility    = MyHero.GetAbilityById(AbilityId.spirit_breaker_nether_strike);

            _chargeAway = new Combo(ChargeAwayFunc,
                                    KeyInterop.KeyFromVirtualKey((int)_chargeAwayKey.GetValue <KeyBind>().Key));
            _chargeAway.Activate();
        }
Esempio n. 11
0
File: Zeus.cs Progetto: Mej0/a
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Zeus", "zaioZeus", false, "npc_dota_hero_zuus", true);

            heroMenu.AddItem(new MenuItem("zaioZeusAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioZeusAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioZeusKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioZeusKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            _smartUltKillsteal         = new MenuItem("zaioSmartUltKillsteal", "Smart Killsteal").SetValue(true);
            _smartUltKillsteal.Tooltip =
                "Only use ult to killsteal when enemy is regenerating, not visible, or more than one enemy can be killed.";
            heroMenu.AddItem(_smartUltKillsteal);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _qAbility   = MyHero.GetAbilityById(AbilityId.zuus_arc_lightning);
            _wAbility   = MyHero.GetAbilityById(AbilityId.zuus_lightning_bolt);
            _ultAbility = MyHero.GetAbilityById(AbilityId.zuus_thundergods_wrath);

            GameDispatcher.OnIngameUpdate += GameDispatcher_OnIngameUpdate;
        }
Esempio n. 12
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Legion", "zaioLegion", false, "npc_dota_hero_legion_commander", true);

            heroMenu.AddItem(new MenuItem("zaioLegionAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioLegionAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioLegionKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioLegionKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _oddsAbility           = MyHero.GetAbilityById(AbilityId.legion_commander_overwhelming_odds);
            _duelAbility           = MyHero.GetAbilityById(AbilityId.legion_commander_duel);
            _pressTheAttackAbility = MyHero.GetAbilityById(AbilityId.legion_commander_press_the_attack);
        }
Esempio n. 13
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Ember Spirit", "zaioEmber Spirit", false, "npc_dota_hero_ember_spirit", true);

            heroMenu.AddItem(new MenuItem("zaioEmberSpiritAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioEmberSpiritAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioEmberSpiritKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioEmberSpiritKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            _minimumRemnantItem =
                new MenuItem("zaioEmberSpiritMinimumRemnant", "Save Remnants").SetValue(new Slider(1, 0, 3));
            _minimumRemnantItem.Tooltip = "Minimum Remnants to keep.";
            heroMenu.AddItem(_minimumRemnantItem);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _ultActivateAbility = MyHero.GetAbilityById(AbilityId.ember_spirit_activate_fire_remnant);
            _ultAbility         = MyHero.GetAbilityById(AbilityId.ember_spirit_fire_remnant);
            _shieldAbility      = MyHero.GetAbilityById(AbilityId.ember_spirit_flame_guard);
            _stunAbility        = MyHero.GetAbilityById(AbilityId.ember_spirit_searing_chains);
        }
Esempio n. 14
0
File: Lion.cs Progetto: Mej0/a
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Lion", "zaioLion", false, "npc_dota_hero_lion", true);

            heroMenu.AddItem(new MenuItem("zaioLionAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioLionAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioLionKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioLionKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _ultAbility  = MyHero.GetAbilityById(AbilityId.lion_finger_of_death);
            _manaAbility = MyHero.GetAbilityById(AbilityId.lion_mana_drain);
            _stunAbility = MyHero.GetAbilityById(AbilityId.lion_impale);
            _hexAbility  = MyHero.GetAbilityById(AbilityId.lion_voodoo);
        }
Esempio n. 15
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Troll", "zaioTroll", false, "npc_dota_hero_troll_warlord", true);

            heroMenu.AddItem(new MenuItem("zaioTrollAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioTrollAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioTrollKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioTrollKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _toggleAbility = MyHero.GetAbilityById(AbilityId.troll_warlord_berserkers_rage);
            _rangedAbility = MyHero.GetAbilityById(AbilityId.troll_warlord_whirling_axes_ranged);
            _meleeAbility  = MyHero.GetAbilityById(AbilityId.troll_warlord_whirling_axes_melee);
            _ultAbility    = MyHero.GetAbilityById(AbilityId.troll_warlord_battle_trance);
        }
Esempio n. 16
0
File: Axe.cs Progetto: Mej0/a
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Axe", "zaioAxe", false, "npc_dota_hero_axe", true);

            heroMenu.AddItem(new MenuItem("zaioAxeAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioAxeAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioAxeKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioAxeKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _callAbility = MyHero.GetAbilityById(AbilityId.axe_berserkers_call);
            _ultAbility  = MyHero.GetAbilityById(AbilityId.axe_culling_blade);
        }
Esempio n. 17
0
File: Luna.cs Progetto: Mej0/a
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Luna", "zaioLuna", false, "npc_dota_hero_luna",
                                    true);

            heroMenu.AddItem(new MenuItem("zaioLunaAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioLunaAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioLunaKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioLunaKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            _minimumEnemyUltCount =
                new MenuItem("zaioLunaMinEnemyCount", "Minimum Enemies for Ult").SetValue(new Slider(1, 0, 4));
            _minimumEnemyUltCount.Tooltip = "Minimum enemies besides your target to use ult.";
            heroMenu.AddItem(_minimumEnemyUltCount);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _nukeAbility = MyHero.GetAbilityById(AbilityId.luna_lucent_beam);
            _aoeAbility  = MyHero.GetAbilityById(AbilityId.luna_eclipse);
        }
Esempio n. 18
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Sven", "zaioSven", false, "npc_dota_hero_sven", true);

            heroMenu.AddItem(new MenuItem("zaioSvenAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioSvenAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioSvenKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioSvenKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _stormboltAbility = MyHero.GetAbilityById(AbilityId.sven_storm_bolt);
            _warcryAbility    = MyHero.GetAbilityById(AbilityId.sven_warcry);
            _ultAbility       = MyHero.GetAbilityById(AbilityId.sven_gods_strength);
        }
Esempio n. 19
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Necrophos", "zaioNecrophos", false, "npc_dota_hero_necrolyte", true);

            heroMenu.AddItem(new MenuItem("zaioNecrophosAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioNecrophosAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioNecrophosKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioNecrophosKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            _autoGhost         = new MenuItem("zaioNecrophosAutoGhost", "Auto Ghost").SetValue(true);
            _autoGhost.Tooltip = "Will use Ghost Shroud when in danger.";
            heroMenu.AddItem(_autoGhost);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _pulseAbility = MyHero.GetAbilityById(AbilityId.necrolyte_death_pulse);
            _ghostAbility = MyHero.GetAbilityById(AbilityId.necrolyte_sadist);
            _ultAbility   = MyHero.GetAbilityById(AbilityId.necrolyte_reapers_scythe);


            GameDispatcher.OnIngameUpdate += GameDispatcher_OnIngameUpdate;
        }
Esempio n. 20
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("QueenOfPain", "zaioQueenOfPain", false, "npc_dota_hero_queenofpain", true);

            heroMenu.AddItem(new MenuItem("zaioQueenOfPainAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioQueenOfPainAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioQueenOfPainKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioQueenOfPainKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            this._minimumEnemyUltCount =
                new MenuItem("zaioQueenOfPainMinEnemyCount", "Minimum Enemies for Ult").SetValue(new Slider(1, 0, 4));
            this._minimumEnemyUltCount.Tooltip = "Minimum enemies besides your target to use ult.";
            heroMenu.AddItem(this._minimumEnemyUltCount);

            this.OnLoadMenuItems(supportedStuff, supportedKillsteal);

            ZaioMenu.LoadHeroSettings(heroMenu);

            this._qAbility   = this.MyHero.GetAbilityById(AbilityId.queenofpain_shadow_strike);
            this._wAbility   = this.MyHero.GetAbilityById(AbilityId.queenofpain_blink);
            this._eAbility   = this.MyHero.GetAbilityById(AbilityId.queenofpain_scream_of_pain);
            this._ultAbility = this.MyHero.GetAbilityById(AbilityId.queenofpain_sonic_wave);
        }
Esempio n. 21
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Slark", "zaioSlark", false, "npc_dota_hero_slark", true);

            heroMenu.AddItem(new MenuItem("zaioSlarkAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioSlarkAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _purgeAbility = MyHero.GetAbilityById(AbilityId.slark_dark_pact);
            _jumpAbility  = MyHero.GetAbilityById(AbilityId.slark_pounce);
        }
Esempio n. 22
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Ursa", "zaioUrsa", false, "npc_dota_hero_ursa", true);

            heroMenu.AddItem(new MenuItem("zaioUrsaAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioUrsaAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _ultAbility        = MyHero.GetAbilityById(AbilityId.ursa_enrage);
            _earthshockAbility = MyHero.GetAbilityById(AbilityId.ursa_earthshock);
            _overpowerAbility  = MyHero.GetAbilityById(AbilityId.ursa_overpower);
        }
Esempio n. 23
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("SkywrathMage", "zaioSkywrathMage", false, "npc_dota_hero_skywrath_mage", true);

            heroMenu.AddItem(new MenuItem("zaioSpiritBreakerAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioSkywrathMageAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _slowAbility    = MyHero.GetAbilityById(AbilityId.skywrath_mage_concussive_shot);
            _qAbility       = MyHero.GetAbilityById(AbilityId.skywrath_mage_arcane_bolt);
            _silenceAbility = MyHero.GetAbilityById(AbilityId.skywrath_mage_ancient_seal);
            _ultAbility     = MyHero.GetAbilityById(AbilityId.skywrath_mage_mystic_flare);
        }
Esempio n. 24
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Jakiro", "zaioJakiro", false, "npc_dota_hero_jakiro", true);

            heroMenu.AddItem(new MenuItem("zaioJakiroAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioJakiroAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _ultAbility  = MyHero.GetAbilityById(AbilityId.jakiro_macropyre);
            _stunAbility = MyHero.GetAbilityById(AbilityId.jakiro_ice_path);
            _dualAbility = MyHero.GetAbilityById(AbilityId.jakiro_dual_breath);
            _orbAbility  = MyHero.GetAbilityById(AbilityId.jakiro_liquid_fire);
        }
Esempio n. 25
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Leshrak", "zaioLeshrak", false, "npc_dota_hero_leshrak", true);

            heroMenu.AddItem(new MenuItem("zaioLeshrakAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioLeshrakAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _stunAbility      = MyHero.GetAbilityById(AbilityId.leshrac_split_earth);
            _ultAbility       = MyHero.GetAbilityById(AbilityId.leshrac_pulse_nova);
            _edictAbility     = MyHero.GetAbilityById(AbilityId.leshrac_diabolic_edict);
            _lightningAbility = MyHero.GetAbilityById(AbilityId.leshrac_lightning_storm);
        }
Esempio n. 26
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Pudge", "zaioPudge", false, "npc_dota_hero_pudge", true);

            heroMenu.AddItem(new MenuItem("zaioPudgeAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioPudgeAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioPudgeKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioPudgeKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            _autoDeny         = new MenuItem("zaioPudgeAutoDeny", "Auto Deny").SetValue(true);
            _autoDeny.Tooltip = "Will automatically try to use your rot to deny your hero.";
            heroMenu.AddItem(_autoDeny);

            _stopOnHook         = new MenuItem("zaioPudgeStopHook", "Stop On Hook").SetValue(true);
            _stopOnHook.Tooltip = "Stops after using hook so you don't approach the enemy.";
            heroMenu.AddItem(_stopOnHook);

            _circleTillHook         = new MenuItem("zaioPudgeStopTillHook", "Circle on Hook block").SetValue(true);
            _circleTillHook.Tooltip = "Moves on a circle when your hook is blocked.";
            heroMenu.AddItem(_circleTillHook);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _rotAbility  = MyHero.GetAbilityById(AbilityId.pudge_rot);
            _ultAbility  = MyHero.GetAbilityById(AbilityId.pudge_dismember);
            _hookAbility = MyHero.GetAbilityById(AbilityId.pudge_meat_hook);

            GameDispatcher.OnIngameUpdate += GameDispatcher_OnIngameUpdate;
            Unit.OnModifierAdded          += Unit_OnModifierAdded;
            Unit.OnModifierRemoved        += Unit_OnModifierRemoved;
        }
Esempio n. 27
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("Oracle", "zaioOracle", false, "npc_dota_hero_oracle", true);

            heroMenu.AddItem(new MenuItem("zaioOracleAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioOracleAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioOracleKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioOracleKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            var helpAllies = new MenuItem("helpAllies", "Help allies").SetValue(false);

            heroMenu.AddItem(helpAllies);
            helpAllies.ValueChanged += (sender, args) => HelpAllies = args.GetNewValue <bool>();
            HelpAllies = helpAllies.IsActive();

            heroMenu.AddItem(new AllyHeroesToggler("enabledAllies", "Allies", allyToggler));

            this._HPThreshold =
                new MenuItem("zaioOracleHealPercentage", "Minimum Percent for Heal").SetValue(new Slider(1, 0, 100));
            this._HPThreshold.Tooltip = "Percent of ally life before heal";
            heroMenu.AddItem(this._HPThreshold);

            this.OnLoadMenuItems(supportedStuff, supportedKillsteal);

            ZaioMenu.LoadHeroSettings(heroMenu);

            this._qAbility   = this.MyHero.GetAbilityById(AbilityId.oracle_fortunes_end);
            this._wAbility   = this.MyHero.GetAbilityById(AbilityId.oracle_fates_edict);
            this._eAbility   = this.MyHero.GetAbilityById(AbilityId.oracle_purifying_flames);
            this._ultAbility = this.MyHero.GetAbilityById(AbilityId.oracle_false_promise);
        }
Esempio n. 28
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("ShadowFiend", "zaioShadowFiend", false, "npc_dota_hero_nevermore", true);

            heroMenu.AddItem(new MenuItem("zaioShadowFiendAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioShadowFiendAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioShadowFiendKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioShadowFiendKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            _razeAbilities[0] = MyHero.GetAbilityById(AbilityId.nevermore_shadowraze1);
            _razeAbilities[1] = MyHero.GetAbilityById(AbilityId.nevermore_shadowraze2);
            _razeAbilities[2] = MyHero.GetAbilityById(AbilityId.nevermore_shadowraze3);

            _drawRazesItem               = new MenuItem("zaioShadowFiendDrawRazes", "Draw Razes").SetValue(true);
            _drawRazesItem.Tooltip       = "Draws the hitbox of each raze with a circle.";
            _drawRazesItem.ValueChanged += _drawRazesItem_ValueChanged;
            heroMenu.AddItem(_drawRazesItem);


            ToggleRazeEffects(_drawRazesItem.GetValue <bool>());

            ZaioMenu.LoadHeroSettings(heroMenu);

            _ultAbility = MyHero.GetAbilityById(AbilityId.nevermore_requiem);

            GameDispatcher.OnIngameUpdate += GameDispatcher_OnIngameUpdate;
        }
Esempio n. 29
0
        public override void OnLoad()
        {
            base.OnLoad();

            var heroMenu = new Menu("StormSpirit", "zaioStormSpirit", false, "npc_dota_hero_storm_spirit", true);

            heroMenu.AddItem(new MenuItem("zaioStormSpiritAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioStormSpiritAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioStormSpiritKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioStormSpiritKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            this._maxChaseDistance =
                new MenuItem("zaioMaxUltDistance", "Maximum distance for ult").SetValue(new Slider(1000, 0, 10000));
            this._maxChaseDistance.Tooltip = "Maximum number of yards between you and your target before you ult";
            heroMenu.AddItem(this._maxChaseDistance);

            this._minMana =
                new MenuItem("zaioMinMana", "Min Mana after ult").SetValue(new Slider(1, 0, (int)MyHero.Mana));
            this._minMana.Tooltip = "Min Mana after ult to catch up";
            heroMenu.AddItem(this._minMana);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _qAbility   = MyHero.GetAbilityById(AbilityId.storm_spirit_static_remnant);
            _wAbility   = MyHero.GetAbilityById(AbilityId.storm_spirit_electric_vortex);
            _eAbility   = MyHero.GetAbilityById(AbilityId.storm_spirit_overload);
            _ultAbility = MyHero.GetAbilityById(AbilityId.storm_spirit_ball_lightning);
        }
Esempio n. 30
0
        public override void OnLoad()
        {
            base.OnLoad();
            var heroMenu = new Menu("Naga", "zaioNaga", false, "npc_dota_hero_naga_siren", true);

            heroMenu.AddItem(new MenuItem("zaioNagaAbilitiesText", "Supported Abilities"));
            var supportedStuff = new MenuItem("zaioNagaAbilities", string.Empty);

            supportedStuff.SetValue(new AbilityToggler(SupportedAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedStuff);

            heroMenu.AddItem(new MenuItem("zaioNagaKillstealAbilitiesText", "Supported Killsteal Abilities"));
            var supportedKillsteal = new MenuItem("zaioNagaKillstealAbilities", string.Empty);

            supportedKillsteal.SetValue(new AbilityToggler(KillstealAbilities.ToDictionary(x => x, y => true)));
            heroMenu.AddItem(supportedKillsteal);

            OnLoadMenuItems(supportedStuff, supportedKillsteal);

            _functionWheelItem =
                new MenuItem("zaioNagaFunctionWheel", "Function Wheel").SetValue(new KeyBind(0, KeyBindType.Press));
            _functionWheelItem.Tooltip       = "Hotkey for showing the function wheel.";
            _functionWheelItem.ValueChanged += _functionWheelItem_ValueChanged;
            heroMenu.AddItem(_functionWheelItem);

            _stackAnctientsItem = new MenuItem("zaioNagaStackAncients", "Stack Ancients?").SetValue(false);
            heroMenu.AddItem(_stackAnctientsItem);

            ZaioMenu.LoadHeroSettings(heroMenu);

            _illuAbility    = MyHero.GetAbilityById(AbilityId.naga_siren_mirror_image);
            _rootAbility    = MyHero.GetAbilityById(AbilityId.naga_siren_ensnare);
            _ripTideAbility = MyHero.GetAbilityById(AbilityId.naga_siren_rip_tide);

            _stackJungleEntry = new WheelEntry("Stack Jungle", StackJungle, false);
            _farmJungleEntry  = new WheelEntry("Farm Jungle", FarmJungleFunc);
            _pushLaneEntry    = new WheelEntry("Push Lanes", PushLanesFunc);
            _mixedModeEntry   = new WheelEntry("Mixed Mode", MixedMode);

            var key = KeyInterop.KeyFromVirtualKey((int)_functionWheelItem.GetValue <KeyBind>().Key);

            _functionWheel = new FunctionWheel(key)
            {
                _mixedModeEntry,
                _pushLaneEntry,
                _farmJungleEntry,
                _stackJungleEntry
            };

            _availableCamps = new List <JungleCamp>(JungleCamps.GetCamps);
            Log.Debug($"Init jungle camps! {_availableCamps.Count}");

            if (MyHero.Team == Team.Dire)
            {
                Log.Debug($"using radiant to dire creep lanes");
                _enemyCreepRouteTop    = _radiantToDireTop;
                _enemyCreepRouteMid    = _radiantToDireMid;
                _enemyCreepRouteBottom = _radiantToDireBot;
            }
            else
            {
                Log.Debug($"using reversed radiant to dire creep lanes");
                _enemyCreepRouteTop    = new List <Vector3>(_radiantToDireTop);
                _enemyCreepRouteMid    = new List <Vector3>(_radiantToDireMid);
                _enemyCreepRouteBottom = new List <Vector3>(_radiantToDireBot);

                _enemyCreepRouteTop.Reverse();
                _enemyCreepRouteMid.Reverse();
                _enemyCreepRouteBottom.Reverse();
            }
            Game.OnIngameUpdate += Game_OnIngameUpdate;
        }