protected override void OnActivate()
        {
            if (this.hero?.HeroId != HeroId.npc_dota_hero_zuus)
            {
                // only for zeus
                return;
            }

            this.settings     = new Settings(this.Orbwalker.Settings.Factory.Parent);
            this.arcLightning = this.abilityFactory.GetAbility <zuus_arc_lightning>();
        }
        public SimpleComboPlugin(IServiceContext context)
        {
            // combo example on key press without orbwalker!
            // check OrbwalkerAsync sample if u need orbwalker in combo

            this.owner            = context.Owner;
            this.inventoryManager = context.Inventory;
            this.targetSelector   = context.TargetSelector;

            this.arcLightning     = context.AbilityFactory.GetAbility <zuus_arc_lightning>();
            this.lightningBolt    = context.AbilityFactory.GetAbility <zuus_lightning_bolt>();
            this.thundergodsWrath = context.AbilityFactory.GetAbility <zuus_thundergods_wrath>();
        }
Exemplo n.º 3
0
        public AbilityFactoryPlugin(IServiceContext context)
        {
            this.owner = context.Owner;
            var abilityFactory = context.AbilityFactory;

            // some abilities are missing
            // write on discord (#development) if you need them
            // ability names: https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Scripting/Built-In_Ability_Names
            this.arcLightning  = abilityFactory.GetAbility <zuus_arc_lightning>();
            this.lightningBolt = abilityFactory.GetAbility <zuus_lightning_bolt>();

            // also you can get ability by id, but its not preferred
            var thunder = abilityFactory.GetAbility(AbilityId.zuus_thundergods_wrath);
        }