public void BeforeDraw() { if (InsecTo.IsValid()) { Render.Circle.DrawCircle(InsecTo.To3D2(), 200, System.Drawing.Color.DarkBlue); } }
private void BeforeDraw(EventArgs args) { if (InsecTo.IsValid()) { Render.Circle.DrawCircle(InsecTo.To3D2(), 200, System.Drawing.Color.DarkBlue); } }
public void Insec() { if (TargetSelector.SelectedTarget != null) { if (TargetSelector.SelectedTarget.IsValidTarget(900)) { if (Spells[Q].IsReady()) { if (Spells[R].IsReady()) { var direction = (TargetSelector.SelectedTarget.ServerPosition - ObjectManager.Player.ServerPosition).To2D().Normalized(); var insecPos = TargetSelector.SelectedTarget.ServerPosition.To2D() + (direction * 200f); if (!InsecLocation.IsValid()) { InsecLocation = ObjectManager.Player.ServerPosition.To2D(); } Jump(insecPos.To3D()); } } else if (ObjectManager.Player.ServerPosition.Distance(TargetSelector.SelectedTarget.ServerPosition) < 400 && InsecLocation.IsValid()) { if (InsecTo.IsValid() && InsecTo.Distance(ObjectManager.Player.ServerPosition.To2D()) < 1500) { Spells[R].Cast(InsecTo); } else { Spells[R].Cast(InsecLocation); } if (!Spells[R].IsReady()) { InsecLocation = Vector2.Zero; } } } else { Orbwalker.Orbwalk(null, Game.CursorPos); } } else { Orbwalker.Orbwalk(null, Game.CursorPos); } }