Exemple #1
0
 public override void OnPossibleToInterrupt(Obj_AI_Hero unit, Interrupter2.InterruptableTargetEventArgs spell)
 {
     if (spell.DangerLevel == Interrupter2.DangerLevel.High && E.IsReady() && E.IsInRange(unit))
     {
         E.Cast(unit);
     }
 }
Exemple #2
0
        public static void OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
        {
            if (!EntryPoint.Menu.Item("l33t.stds.misc.interrupt").GetValue<bool>())
            {
                return;
            }

            if (Spells[SpellSlot.E].IsReady() &&
                EntryPoint.Player.Distance(sender, true) <= Math.Pow(Spells[SpellSlot.E].Range, 2) &&
                sender.IsValidTarget(Spells[SpellSlot.E].Range))
            {
                if (Spells[SpellSlot.Q].IsReady())
                {
                    ProcessSphereE(sender);
                }
                else
                {
                    Spells[SpellSlot.E].Instance.Cast(sender);
                }
            }
            else if (Spells[SpellSlot.Q].IsReady() && Spells[SpellSlot.E].IsReady() &&
                     EntryPoint.Player.Distance(sender, true) <= Math.Pow(Spells[SpellSlot.SphereE].Range, 2))
            {
                ProcessSphereE(sender);
            }
        }
Exemple #3
0
 private void Interrupter_OnInterruptable(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (sender.IsValidTarget() && IsMenuEnabled("Interrupter") && E.IsReady())
     {
         E.CastIfHitchanceEquals(sender, CustomHitChance, Packets());
     }
 }
Exemple #4
0
 public override void OnPossibleToInterrupt(Obj_AI_Hero unit, Interrupter2.InterruptableTargetEventArgs spell)
 {
     if (E.IsReady() && unit.IsValidTarget(E.Range))
     {
         E.Cast(unit);
     }
 }
Exemple #5
0
 private void Interrupter2_OnInterruptableTarget(Obj_AI_Hero unit, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (E.IsReady() && Config.Item("EInterruptable").GetValue<bool>() && unit.IsValidTarget(E.Range))
     {
         E.Cast(unit);
     }
 }
Exemple #6
0
 private void OnInterruptableTarget(Obj_AI_Hero target, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (E.CanCast(target) && config.Item("useEint", true).GetValue<bool>())
     {
         if (E.CastIfHitchanceEquals(target, HitChance.High, config.Item("packets").GetValue<bool>()))
         {
             return;
         }
     }
     if (R.CanCast(target) && config.Item("useRint", true).GetValue<bool>())
     {
         if (savedQ != null && !SimpleQ && !target.IsMoving && target.Distance(qPos) > QExplosionRange &&
             target.Distance(player) < R.Range - 100 &&
             target.Position.Distance(savedQ.position) < 550 + QExplosionRange / 2 &&
             !target.HasBuffOfType(BuffType.Knockback))
         {
             var cast = Prediction.GetPrediction(target, 1000f).UnitPosition.Extend(savedQ.position, -100);
             R.Cast(cast);
         }
         else if (target.Distance(player) < R.Range - 100)
         {
             if (player.CountEnemiesInRange(2000) <= player.CountAlliesInRange(2000))
             {
                 var cast = target.Position.Extend(player.Position, -100);
                 R.Cast(cast);
             }
             else
             {
                 var cast = target.Position.Extend(player.Position, 100);
                 R.Cast(cast);
             }
         }
     }
 }
Exemple #7
0
        private static void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender,
            Interrupter2.InterruptableTargetEventArgs args)
        {
            if (!Program.Config.Item("EnabledInterrupter").GetValue<bool>() || !sender.IsValidTarget())
            {
                return;
            }
            Interrupter2.DangerLevel a;
            switch (Program.Config.Item("minChannel").GetValue<StringList>().SelectedValue)
            {
                case "HIGH":
                    a = Interrupter2.DangerLevel.High;
                    break;
                case "MEDIUM":
                    a = Interrupter2.DangerLevel.Medium;
                    break;
                default:
                    a = Interrupter2.DangerLevel.Low;
                    break;
            }

            if (args.DangerLevel == Interrupter2.DangerLevel.High ||
                args.DangerLevel == Interrupter2.DangerLevel.Medium && a != Interrupter2.DangerLevel.High ||
                args.DangerLevel == Interrupter2.DangerLevel.Medium && a != Interrupter2.DangerLevel.Medium &&
                a != Interrupter2.DangerLevel.High)
            {
                if (Program._spells[Spells.E].IsReady() && sender.IsValidTarget(Program._spells[Spells.E].Range))
                {
                    Program._spells[Spells.E].Cast(sender);
                }
            }
        }
Exemple #8
0
 private void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (E.IsReady() && sender.IsValidTarget(E.Range))
     {
         E.Cast(sender);
     }
 }
Exemple #9
0
 private void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (E.IsReady() && Config.Item("inter", true).GetValue<bool>() && sender.IsValidTarget(E.Range))
     {
         E.Cast(sender.ServerPosition);
     }
 }
Exemple #10
0
 public static void OnPossibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (Program.E.IsReady() && args.DangerLevel == Interrupter2.DangerLevel.High && sender.IsValidTarget(700))
     {
         Program.E.Cast(Program.E.GetPrediction(sender).UnitPosition);
     }
 }
Exemple #11
0
 private void OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (config.Item("useEint", true).GetValue<bool>() && E.IsReady() && E.CanCast(sender))
     {
         E.CastOnUnit(sender, config.Item("packets").GetValue<bool>());
     }
 }
Exemple #12
0
 public static void OnPossibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (args.DangerLevel == Interrupter2.DangerLevel.High && Program.E.IsReady() && Program.E.IsInRange(sender))
     {
         Program.E.Cast(sender);
     }
 }
Exemple #13
0
 private void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender,
     Interrupter2.InterruptableTargetEventArgs args)
 {
     if (config.Item("Interrupt").GetValue<bool>() && R.CanCast(sender))
     {
         R.CastOnUnit(sender);
     }
 }
Exemple #14
0
 private void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender,
     Interrupter2.InterruptableTargetEventArgs args)
 {
     if (R.IsReady() && config.Item("Interrupt", true).GetValue<bool>() && sender.Distance(player) < R.Range)
     {
         CastR();
     }
 }
Exemple #15
0
        private static void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender,
            Interrupter2.InterruptableTargetEventArgs args)
        {
            if (!CConfig.ConfigMenu.Item("InterruptSpells").GetValue<bool>() || !CSpell.E.CanCast(sender) ||
                args.DangerLevel != Interrupter2.DangerLevel.High)
                return;

            CSpell.E.Cast(sender);
        }
Exemple #16
0
 private void Interrupter2_OnInterruptableTarget(
     Obj_AI_Hero unit,
     Interrupter2.InterruptableTargetEventArgs args)
 {
     if (R.IsReady() && Config.Item("RInterruptable" + Id).GetValue<bool>() && unit.IsValidTarget(1500))
     {
         R.Cast(unit);
     }
 }
Exemple #17
0
 protected override void OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (config.Item("UseEMisc").GetValue<bool>() && E.IsReady() && args.DangerLevel == Interrupter2.DangerLevel.High)
     {
         if (Vector3.Distance(Player.ServerPosition, sender.ServerPosition) <= E.Range && myUtility.PlayerHealthPercentage < (sender.Health * 100 / sender.MaxHealth))
         {
             W.Cast(sender);
         }
     }
 }
 private static void OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (MenuExtensions.GetItemValue<bool>("dz191.vhr.misc.general.interrupt"))
     {
         if (args.DangerLevel == Interrupter2.DangerLevel.High && sender.IsValidTarget(Variables.spells[SpellSlot.E].Range))
         {
             Variables.spells[SpellSlot.E].Cast(sender);
         }
     }
 }
Exemple #19
0
 private static void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (Variables.AutoEInterrupt.GetValue<bool>() && Player.Mana == 4 && Variables.E.IsReady())
     {
         if (sender.IsValidTarget(Variables.E.Range))
         {
             Helper.CastE(sender);
         }
     }
 }
Exemple #20
0
        protected override void OnPossibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
        {
            if (!sender.IsEnemy || !Q.IsReady() || !config.Item("Use-Interrupt", true).GetValue<bool>())
                return;

            if (args.DangerLevel == Interrupter2.DangerLevel.High && Player.Distance(sender.Position) < Q.Range)
            {
                CastQ(sender);
            }
        }
Exemple #21
0
 private void OnPossibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (config.Item("useQint", true).GetValue<bool>())
     {
         if (Qint.CanCast(sender))
         {
             Q.Cast(sender, config.Item("packets").GetValue<bool>());
         }
     }
 }
Exemple #22
0
        private void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
        {
            var Rint = MenuProvider.Champion.Misc.getBoolValue("UseInterrupter");

            if (!MenuProvider.Champion.Misc.getBoolValue("UseInterrupter") || Player.IsDead)
                return;

            if (Rint && args.DangerLevel >= Interrupter2.DangerLevel.High && sender.IsValidTarget(R.Range) && sender.IsFacing(Player))
                R.CastOnBestTarget(0f, false, true);
        }
Exemple #23
0
 /// <summary>
 ///     Called on interruptable spell.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="args">The <see cref="Interrupter2.InterruptableTargetEventArgs" /> instance containing the event data.</param>
 public static void OnInterruptableTarget(AIHeroClient sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (Variables.W.IsReady() &&
         !Bools.IsSpellShielded(sender) &&
         sender.IsValidTarget(Variables.W.Range) &&
         Variables.getCheckBoxItem(Variables.WMenu, "wspell.ir"))
     {
         Variables.W.CastOnUnit(sender);
     }
 }
Exemple #24
0
 internal static void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (sender.IsValidTarget(KL.Spellbook["E"].Range) && KL.Spellbook["E"].IsReady())
     {
         if (Config.Item("useeint").GetValue<bool>())
         {
             KL.Spellbook["E"].Cast(sender.ServerPosition);
         }
     }
 }
Exemple #25
0
 internal static void OnInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (args.DangerLevel >= Interrupter2.DangerLevel.Medium
         && MenuExtensions.GetItemValue<bool>("iseriesr.vayne.misc.general.antigp")
         && Variables.spells[SpellSlot.E].IsReady()
         && sender.IsValidTarget(Variables.spells[SpellSlot.E].Range))
     {
         Variables.spells[SpellSlot.E].Cast(sender);
     }
 }
Exemple #26
0
 /// <summary>
 /// Called on interruptable spell.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="args">The <see cref="Interrupter2.InterruptableTargetEventArgs"/> instance containing the event data.</param>
 public static void OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (Variables.E.IsReady() &&
         !Bools.IsSpellShielded(sender) &&
         sender.IsValidTarget(Variables.E.Range) &&
         Variables.Menu.Item($"{Variables.MainMenuName}.espell.ir").IsActive())
     {
         Variables.E.CastOnUnit(sender);
     }
 }
Exemple #27
0
 private void OnPossibleToInterrupt(Obj_AI_Hero unit, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (!config.Item("useeint", true).GetValue<bool>())
     {
         return;
     }
     if (unit.IsValidTarget(E.Range) && E.IsReady())
     {
         E.Cast(unit, config.Item("packets").GetValue<bool>());
     }
 }
Exemple #28
0
 public override void OnPossibleToInterrupt(Obj_AI_Hero unit, Interrupter2.InterruptableTargetEventArgs spell)
 {
     if (spell.DangerLevel < Interrupter2.DangerLevel.High || unit.IsAlly)
     {
         return;
     }
     if (R.CastCheck(unit, "Interrupt.R"))
     {
         R.Cast(unit);
     }
 }
Exemple #29
0
 protected override void OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (config.Item("UseQMisc").GetValue<bool>() && Q.IsReady())
     {
         if (sender.IsEnemy && Vector3.Distance(Player.ServerPosition, sender.ServerPosition) <= Q.Range)
         {
             if (myUtility.ImmuneToCC(sender) || myUtility.ImmuneToMagic(sender)) return;
             Q.CastOnUnit(sender);
         }
     }
 }
Exemple #30
0
        public override void OnPossibleToInterrupt(Obj_AI_Hero target, Interrupter2.InterruptableTargetEventArgs args)
        {
            if (args.DangerLevel < Interrupter2.DangerLevel.High || target.IsAlly)
            {
                return;
            }

            if (R.CastCheck(target, "Interrupt.R"))
            {
                R.Cast(target);
            }
        }