예제 #1
0
    public ComboKill ComboKill;                  // find object of type combo kill on awake
    void Awake()
    {
        rb = GetComponent <Rigidbody>();

        //adding initial movement force           to make sure it will not keep physics once going other direction (like HTMAVG)
        rb.AddForce(transform.forward * Velocity, ForceMode.VelocityChange);

        ComboKill = GameObject.FindObjectOfType <ComboKill>();
    }
예제 #2
0
        private static void Game_OnUpdate(EventArgs args)
        {
            if (ObjectManager.Player.IsDead)
                return;

            RefreshComboType();

            var t = TargetSelector.GetTarget(W.Range * 2, TargetSelector.DamageType.Physical);
            {
                var xComboText = "Combo Kill";
                if (t.IsValidTarget(W.Range))
                {
                    if (t.Health < GetComboDamage(t))
                    {
                        vComboKill = ComboKill.FullCombo;
                        Drawing.DrawText(t.HPBarPosition.X + 145, t.HPBarPosition.Y + 20, Color.Beige, xComboText);
                    }
                }

                else if (t.IsValidTarget(W.Range * 2 - 30))
                {
                    if (t.Health < GetComboDamage(t) - ObjectManager.Player.GetSpellDamage(t, SpellSlot.W))
                    {
                        vComboKill = ComboKill.WithoutW;
                        xComboText = "Jump + " + xComboText;
                        Drawing.DrawText(t.HPBarPosition.X + 145, t.HPBarPosition.Y + 20, Color.Beige, xComboText);
                    }
                }
            }

            _isComboCompleted = !R.IsReady();

            if (Config.Item("ComboDblStun").GetValue<KeyBind>().Active)
                DoubleStun();

            if (Config.Item("RunActive").GetValue<KeyBind>().Active)
                Run();

            if (Config.Item("ComboActive").GetValue<KeyBind>().Active)
                Combo();

            DoToggleHarass();

            if (Config.Item("HarassActive").GetValue<KeyBind>().Active)
                Harass();

            if (Config.Item("LaneClearActive").GetValue<KeyBind>().Active)
            {
                if (ObjectManager.Player.ManaPercentage() >= Config.Item("LaneClearMana").GetValue<Slider>().Value)
                    LaneClear();
            }

            if (Config.Item("JungleFarmActive").GetValue<KeyBind>().Active)
            {
                if (ObjectManager.Player.ManaPercentage() >= Config.Item("JungleFarmMana").GetValue<Slider>().Value)
                    JungleFarm();
            }
        }
예제 #3
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            if (ObjectManager.Player.IsDead)
            {
                return;
            }

            RefreshComboType();

            var t = TargetSelector.GetTarget(W.Range * 2, TargetSelector.DamageType.Physical);

            {
                var xComboText = "Combo Kill";
                if (t.IsValidTarget(W.Range))
                {
                    if (t.Health < GetComboDamage(t))
                    {
                        vComboKill = ComboKill.FullCombo;
                        Drawing.DrawText(t.HPBarPosition.X + 145, t.HPBarPosition.Y + 20, Color.Beige, xComboText);
                    }
                }

                else if (t.IsValidTarget(W.Range * 2 - 30))
                {
                    if (t.Health < GetComboDamage(t) - ObjectManager.Player.GetSpellDamage(t, SpellSlot.W))
                    {
                        vComboKill = ComboKill.WithoutW;
                        xComboText = "Jump + " + xComboText;
                        Drawing.DrawText(t.HPBarPosition.X + 145, t.HPBarPosition.Y + 20, Color.Beige, xComboText);
                    }
                }
            }

            _isComboCompleted = !R.IsReady();

            if (Config.Item("ComboDblStun").GetValue <KeyBind>().Active)
            {
                DoubleStun();
            }


            if (Config.Item("RunActive").GetValue <KeyBind>().Active)
            {
                Run();
            }

            if (Config.Item("ComboActive").GetValue <KeyBind>().Active)
            {
                Combo();
            }

            DoToggleHarass();

            if (Config.Item("HarassActive").GetValue <KeyBind>().Active)
            {
                Harass();
            }

            if (Config.Item("LaneClearActive").GetValue <KeyBind>().Active)
            {
                if (ObjectManager.Player.ManaPercentage() >= Config.Item("LaneClearMana").GetValue <Slider>().Value)
                {
                    LaneClear();
                }
            }

            if (Config.Item("JungleFarmActive").GetValue <KeyBind>().Active)
            {
                if (ObjectManager.Player.ManaPercentage() >= Config.Item("JungleFarmMana").GetValue <Slider>().Value)
                {
                    JungleFarm();
                }
            }
        }
예제 #4
0
        private static void Game_OnUpdate(EventArgs args)
        {
            if (ObjectManager.Player.IsDead)
                return;

            RefreshComboType();

            var t = TargetSelector.GetTarget(W.Range * 2, DamageType.Physical);
            {
                var xComboText = "Combo Kill";
                if (t.LSIsValidTarget(W.Range))
                {
                    if (t.Health < GetComboDamage(t))
                    {
                        vComboKill = ComboKill.FullCombo;
                        Drawing.DrawText(t.HPBarPosition.X + 145, t.HPBarPosition.Y + 20, Color.Beige, xComboText);
                    }
                }

                else if (t.LSIsValidTarget(W.Range * 2 - 30))
                {
                    if (t.Health < GetComboDamage(t) - ObjectManager.Player.GetSpellDamage(t, SpellSlot.W))
                    {
                        vComboKill = ComboKill.WithoutW;
                        xComboText = "Jump + " + xComboText;
                        Drawing.DrawText(t.HPBarPosition.X + 145, t.HPBarPosition.Y + 20, Color.Beige, xComboText);
                    }
                }
            }

            _isComboCompleted = !R.IsReady();

            if (getKeyBindItem(comboMenu, "ComboDblStun"))
                DoubleStun();

            if (getKeyBindItem(runMenu, "RunActive"))
                Run();

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                Combo();

            DoToggleHarass();

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
                Harass();

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                if (ObjectManager.Player.ManaPercent >= getSliderItem(laneClearMenu, "LaneClearMana"))
                    LaneClear();

                if (ObjectManager.Player.ManaPercent >= getSliderItem(jungleMenu, "JungleFarmMana"))
                    JungleFarm();
            }
        }
예제 #5
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (Config.ComboDoubleStun)
            {
                Drawing.DrawText(Drawing.Width * 0.45f, Drawing.Height * 0.78f, Color.Red, "Double Stun Active!");
            }
            var t          = TargetSelector.GetTarget(W.Range * 2, DamageType.Physical);
            var xComboText = "Combo Kill";

            if (t.IsValidTarget(W.Range))
            {
                if (t.Health < GetComboDamage(t))
                {
                    vComboKill = ComboKill.FullCombo;
                    Drawing.DrawText(t.HPBarPosition.X + 145, t.HPBarPosition.Y + 20, Color.Red, xComboText);
                }
            }

            else if (t.IsValidTarget(W.Range * 2 - 30))
            {
                if (t.Health < GetComboDamage(t) - ObjectManager.Player.GetSpellDamage(t, SpellSlot.W))
                {
                    vComboKill = ComboKill.WithoutW;
                    xComboText = "Jump + " + xComboText;
                    Drawing.DrawText(t.HPBarPosition.X + 145, t.HPBarPosition.Y + 20, Color.Beige, xComboText);
                }
            }
            if (Config.ShowComboInfo)
            {
                var xComboStr = "Combo Mode: ";
                var xCombo    = Config.ComboOption;
                switch (xCombo)
                {
                case 0:
                    xComboStr += "Auto";
                    break;

                case 1:
                    xComboStr += "Q-R";
                    break;

                case 2:
                    xComboStr += "W-R";
                    break;

                case 3:
                    xComboStr += "E-R";
                    break;
                }
                Drawing.DrawText(Drawing.Width * 0.45f, Drawing.Height * 0.80f, Color.Green, xComboStr);
            }

            if (Config.ShowHarassInfo)
            {
                var xHarassInfo = "";
                if (Config.HarassUseQToggle)
                {
                    xHarassInfo += "Q - ";
                }

                if (Config.HarassUseWToggle)
                {
                    xHarassInfo += "W - ";
                }

                if (Config.HarassUseEToggle)
                {
                    xHarassInfo += "E - ";
                }
                if (xHarassInfo.Length < 1)
                {
                    xHarassInfo = "Harass Toggle: OFF   ";
                }
                else
                {
                    xHarassInfo = "Harass Toggle: " + xHarassInfo;
                }
                xHarassInfo = xHarassInfo.Substring(0, xHarassInfo.Length - 3);
                Drawing.DrawText(Drawing.Width * 0.44f, Drawing.Height * 0.82f, Color.DarkCyan, xHarassInfo);
            }

            var color = new ColorBGRA(255, 255, 255, 100);

            if (Config.DrawQ && Q.IsReady())
            {
                Circle.Draw(color, Q.Range, ObjectManager.Player.Position);
            }

            if (Config.DrawW && W.IsReady())
            {
                Circle.Draw(color, W.Range, ObjectManager.Player.Position);
            }
            if (Config.DrawE && E.IsReady())
            {
                Circle.Draw(color, E.Range, ObjectManager.Player.Position);
            }

            if (Config.DrawWplusQRange && Q.IsReady() && W.IsReady())
            {
                Circle.Draw(color, W.Range + Q.Range, ObjectManager.Player.Position);
            }

            if (Config.DrawActiveERange && EnemyHaveSoulShackle != null)
            {
                Circle.Draw(color, 1100f, ObjectManager.Player.Position);
            }
        }
예제 #6
0
        private static void Game_OnUpdate(EventArgs args)
        {
            if (ObjectManager.Player.IsDead)
            {
                return;
            }

            RefreshComboType();

            var t = TargetSelector.GetTarget(W.Range * 2, DamageType.Physical);

            {
                var xComboText = "Combo Kill";
                if (t.LSIsValidTarget(W.Range))
                {
                    if (t.Health < GetComboDamage(t))
                    {
                        vComboKill = ComboKill.FullCombo;
                        Drawing.DrawText(t.HPBarPosition.X + 145, t.HPBarPosition.Y + 20, Color.Beige, xComboText);
                    }
                }

                else if (t.LSIsValidTarget(W.Range * 2 - 30))
                {
                    if (t.Health < GetComboDamage(t) - ObjectManager.Player.GetSpellDamage(t, SpellSlot.W))
                    {
                        vComboKill = ComboKill.WithoutW;
                        xComboText = "Jump + " + xComboText;
                        Drawing.DrawText(t.HPBarPosition.X + 145, t.HPBarPosition.Y + 20, Color.Beige, xComboText);
                    }
                }
            }

            _isComboCompleted = !R.IsReady();

            if (getKeyBindItem(comboMenu, "ComboDblStun"))
            {
                DoubleStun();
            }

            if (getKeyBindItem(runMenu, "RunActive"))
            {
                Run();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo();
            }

            DoToggleHarass();

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                Harass();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                if (ObjectManager.Player.ManaPercent >= getSliderItem(laneClearMenu, "LaneClearMana"))
                {
                    LaneClear();
                }

                if (ObjectManager.Player.ManaPercent >= getSliderItem(jungleMenu, "JungleFarmMana"))
                {
                    JungleFarm();
                }
            }
        }
예제 #7
0
파일: Program.cs 프로젝트: roaxtreil/EBRepo
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (Config.ComboDoubleStun)
            {
                Drawing.DrawText(Drawing.Width*0.45f, Drawing.Height*0.78f, Color.Red, "Double Stun Active!");
            }
            var t = TargetSelector.GetTarget(W.Range*2, DamageType.Physical);
            var xComboText = "Combo Kill";
            if (t.IsValidTarget(W.Range))
            {
                if (t.Health < GetComboDamage(t))
                {
                    vComboKill = ComboKill.FullCombo;
                    Drawing.DrawText(t.HPBarPosition.X + 145, t.HPBarPosition.Y + 20, Color.Red, xComboText);
                }
            }

            else if (t.IsValidTarget(W.Range*2 - 30))
            {
                if (t.Health < GetComboDamage(t) - ObjectManager.Player.GetSpellDamage(t, SpellSlot.W))
                {
                    vComboKill = ComboKill.WithoutW;
                    xComboText = "Jump + " + xComboText;
                    Drawing.DrawText(t.HPBarPosition.X + 145, t.HPBarPosition.Y + 20, Color.Beige, xComboText);
                }
            }
            if (Config.ShowComboInfo)
            {
                var xComboStr = "Combo Mode: ";
                var xCombo = Config.ComboOption;
                switch (xCombo)
                {
                    case 0:
                        xComboStr += "Auto";
                        break;

                    case 1: //Q-R
                        xComboStr += "Q-R";
                        break;

                    case 2: //W-R
                        xComboStr += "W-R";
                        break;

                    case 3: //E-R
                        xComboStr += "E-R";
                        break;
                }
                Drawing.DrawText(Drawing.Width*0.45f, Drawing.Height*0.80f, Color.Green, xComboStr);
            }

            if (Config.ShowHarassInfo)
            {
                var xHarassInfo = "";
                if (Config.HarassUseQToggle)
                    xHarassInfo += "Q - ";

                if (Config.HarassUseWToggle)
                    xHarassInfo += "W - ";

                if (Config.HarassUseEToggle)
                    xHarassInfo += "E - ";
                if (xHarassInfo.Length < 1)
                {
                    xHarassInfo = "Harass Toggle: OFF   ";
                }
                else
                {
                    xHarassInfo = "Harass Toggle: " + xHarassInfo;
                }
                xHarassInfo = xHarassInfo.Substring(0, xHarassInfo.Length - 3);
                Drawing.DrawText(Drawing.Width*0.44f, Drawing.Height*0.82f, Color.DarkCyan, xHarassInfo);
            }

            var color = new ColorBGRA(255, 255, 255, 100);
            if (Config.DrawQ && Q.IsReady())
            {
                Circle.Draw(color, Q.Range, ObjectManager.Player.Position);
            }

            if (Config.DrawW && W.IsReady())
            {
                Circle.Draw(color, W.Range, ObjectManager.Player.Position);
            }
            if (Config.DrawE && E.IsReady())
            {
                Circle.Draw(color, E.Range, ObjectManager.Player.Position);
            }

            if (Config.DrawWplusQRange && Q.IsReady() && W.IsReady())
            {
                Circle.Draw(color, W.Range + Q.Range, ObjectManager.Player.Position);
            }

            if (Config.DrawActiveERange && EnemyHaveSoulShackle != null)
            {
                Circle.Draw(color, 1100f, ObjectManager.Player.Position);
            }
        }