private static void Drawing_OnDraw(EventArgs args) { WallQ.Drawing_OnDraw(); if (DrawMenu["drawStacks"].Cast <CheckBox>().CurrentValue&& Events.AAedTarget != null) { var color = new [] { Color.White, Color.Aqua }[Events.AaStacks - 1]; new Circle() { Color = color, Radius = 200 }.Draw(Events.AAedTarget.Position); } if (DrawMenu["drawERange"].Cast <CheckBox>().CurrentValue) { new Circle() { Color = Color.White, Radius = E.Range }.Draw(_Player.Position); } if (DrawMenu["condemnVisualiser"].Cast <CheckBox>().CurrentValue) { foreach (var point in Points) { new Circle() { Color = (NavMesh.GetCollisionFlags(point.To3D()).HasFlag(CollisionFlags.Wall) || NavMesh.GetCollisionFlags(point.To3D()).HasFlag(CollisionFlags.Building)) ? Color.Blue : Color.Red, Radius = 10 }.Draw(point.To3D()); } } }
private static void Game_OnUpdate(EventArgs args) { if (Orbwalker.ForcedTarget == null || Orbwalker.ForcedTarget.Health <= 0 || Orbwalker.ForcedTarget.IsDead || Orbwalker.ForcedTarget.Distance(Player.Instance) > (Player.Instance.IsDashing() ? Player.Instance.GetAutoAttackRange() + 300 : Player.Instance.GetAutoAttackRange())) { Orbwalker.ForcedTarget = null; } if (Events.AAedTarget == null || Events.LastAa + 3500 + 400 <= Environment.TickCount || Events.AAedTarget.IsDead || !Events.AAedTarget.HasBuff("vaynesilvereddebuff") && (Events.LastAa + 1000 < Environment.TickCount)) { Events.AAedTarget = null; Events.AaStacks = 0; } if (DrawMenu["wallJumpKey"].Cast <KeyBind>().CurrentValue) { WallQ.WallTumble(); } else { Orbwalker.DisableMovement = false; } if (CondemnPriorityMenu["autoCondemnToggle"].Cast <KeyBind>().CurrentValue) { var condemnTarget = Condemn.CondemnTarget(); if (condemnTarget != null) { E.Cast(condemnTarget); } } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { States.Combo(); } else if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass)) { States.Harass(); } }