Exemple #1
0
 private static void AIHeroClient_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
 {
     if (sender.IsMe && args.Slot == SpellSlot.E && MenuHandler.Settings.GetCheckboxValue("Barrel Position Auto-Correct"))
         if (args.End.IsInRangeOfBarrels(barrels))
         {
             GangplankFunctions.CastE(sender.Position);
             args.Process = false;
         }
 }
Exemple #2
0
        private static void Game_OnTick(EventArgs args) 
        {
            if (Gangplank.IsDead)
                return;
           
            GangplankFunctions.didActionThisTick = false;

            List<Barrel> removeBarrels = new List<Barrel>();
            foreach (Barrel b in barrels)
                if (!b.barrel.MeetsCriteria())
                    removeBarrels.Add(b);
            foreach (Barrel b in removeBarrels)
                barrels.Remove(b);

            GangplankFunctions.AutoHarrass();
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Flee))
                GangplankFunctions.Flee();
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                GangplankFunctions.Combo();
            if (MenuHandler.GetCheckboxValue(MenuHandler.Killsteal, "Activate Killsteal"))
                GangplankFunctions.KS();
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit))
                GangplankFunctions.LastHit();
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
                GangplankFunctions.Harrass();
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
                GangplankFunctions.JungleClear();
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
                GangplankFunctions.LaneClear();
            if (MenuHandler.Settings.GetCheckboxValue("Auto-Place Barrels with 3 stacks"))
                GangplankFunctions.AutoBarrel();
            if (MenuHandler.Items.GetCheckboxValue("Auto W"))
                GangplankFunctions.AutoW();

           /* if (Gangplank.PentaKills > currentPentaKills)
            {
                Chat.Print("Nice Penta! Make sure to screenshot it and post it on the UnsignedGangplank thread to show off!");
                
                currentPentaKills = Gangplank.PentaKills;
            }*/
        }