private static void OnGameUpdate(EventArgs args) { try { Yasuo.Q.SetSkillshot(Yasuo.getNewQSpeed(), 50f, float.MaxValue, false, SkillshotType.SkillshotLine); if (Yasuo.startDash + 475000 / ((700 + Yasuo.Player.MoveSpeed)) < Environment.TickCount && Yasuo.isDashigPro) { Yasuo.isDashigPro = false; } //updateSkillshots(); //Remove the detected skillshots that have expired. DetectedSkillshots.RemoveAll(skillshot => !skillshot.IsActive()); Obj_AI_Hero target = TargetSelector.GetTarget((Yasuo.E.IsReady()) ? 1500 : 475, TargetSelector.DamageType.Physical); if (Orbwalker.ActiveMode.ToString() == "Combo") { Yasuo.doCombo(target); } if (Orbwalker.ActiveMode.ToString() == "LastHit") { Yasuo.doLastHit(target); Yasuo.useQSmart(target); } if (Orbwalker.ActiveMode.ToString() == "Mixed") { Yasuo.doLastHit(target); Yasuo.useQSmart(target); } if (Orbwalker.ActiveMode.ToString() == "LaneClear") { Yasuo.doLaneClear(target); } if (Config.Item("flee").GetValue <KeyBind>().Active) { Yasuo.fleeToMouse(); Yasuo.stackQ(); } if (Config.Item("saveDash").GetValue <KeyBind>().Active&& canSave) { Yasuo.saveLastDash(); canSave = false; } else { canSave = true; } if (Config.Item("deleteDash").GetValue <KeyBind>().Active&& canDelete) { if (Yasuo.dashes.Count > 0) { Yasuo.dashes.RemoveAt(Yasuo.dashes.Count - 1); } canDelete = false; } else { canDelete = true; } if (Config.Item("exportDash").GetValue <KeyBind>().Active&& canExport) { using (var file = new System.IO.StreamWriter(@"C:\YasuoDashes.txt")) { foreach (var dash in Yasuo.dashes) { string dashS = "dashes.Add(new YasDash(new Vector3(" + dash.from.X.ToString("0.00").Replace(',', '.') + "f," + dash.from.Y.ToString("0.00").Replace(',', '.') + "f," + dash.from.Z.ToString("0.00").Replace(',', '.') + "f),new Vector3(" + dash.to.X.ToString("0.00").Replace(',', '.') + "f," + dash.to.Y.ToString("0.00").Replace(',', '.') + "f," + dash.to.Z.ToString("0.00").Replace(',', '.') + "f)));"; //new YasDash(new Vector3(X,Y,Z),new Vector3(X,Y,Z)) file.WriteLine(dashS); } file.Close(); } canExport = false; } else { canExport = true; } if (Config.Item("WWLast").GetValue <KeyBind>().Active) { Console.WriteLine("Last WW skill blocked: " + lastSpell); Game.PrintChat("Last WW skill blocked: " + lastSpell); } if (Config.Item("harassOn").GetValue <bool>() && Orbwalker.ActiveMode.ToString() == "None") { if (target != null) { Yasuo.useQSmart(target, Config.Item("harQ3Only").GetValue <bool>()); } } foreach (var mis in DetectedSkillshots) { Yasuo.useWSmart(mis); if (Config.Item("smartEDogue").GetValue <bool>() && !Yasuo.isSafePoint(Yasuo.Player.Position.To2D(), true).IsSafe) { Yasuo.useEtoSafe(mis); } } if (Config.Item("smartR").GetValue <bool>() && Yasuo.R.IsReady()) { Yasuo.useRSmart(); } Yasuo.processTargetedSpells(); } catch (Exception ex) { Console.WriteLine(ex); } }
private static void OnGameUpdate(EventArgs args) { try { if (!wasStream && Config.Item("streamMouse").GetValue <bool>()) { // SmoothMouse.start(); wasStream = true; } else if (!Config.Item("streamMouse").GetValue <bool>()) { wasStream = false; } Yasuo.Q.SetSkillshot(Yasuo.getNewQSpeed(), 50f, float.MaxValue, false, SkillshotType.SkillshotLine); if (Yasuo.startDash + 470000 / ((700 + Yasuo.Player.MoveSpeed)) < Environment.TickCount && Yasuo.isDashigPro) { Yasuo.isDashigPro = false; } //updateSkillshots(); //Remove the detected skillshots that have expired. DetectedSkillshots.RemoveAll(skillshot => !skillshot.IsActive()); AIHeroClient target = TargetSelector.GetTarget((Yasuo.E.IsReady()) ? 1500 : 475, TargetSelector.DamageType.Physical); if (Orbwalker.ActiveMode.ToString() == "Combo") { Yasuo.doCombo(target); } if (Orbwalker.ActiveMode.ToString() == "LastHit") { Yasuo.doLastHit(target); Yasuo.useQSmart(target); } if (Orbwalker.ActiveMode.ToString() == "Mixed") { Yasuo.doLastHit(target); Yasuo.useQSmart(target); } if (Orbwalker.ActiveMode.ToString() == "LaneClear") { Yasuo.doLaneClear(target); } if (Config.Item("flee").GetValue <KeyBind>().Active) { Yasuo.fleeToMouse(); Yasuo.stackQ(); } if (Config.Item("harassOn").GetValue <bool>() && Orbwalker.ActiveMode.ToString() == "None") { if (target != null) { Yasuo.useQSmart(target, Config.Item("harQ3Only").GetValue <bool>()); } } foreach (var mis in DetectedSkillshots) { Yasuo.useWSmart(mis); if (Config.Item("smartEDogue").GetValue <bool>() && !Yasuo.isSafePoint(Yasuo.Player.Position.To2D(), true).IsSafe) { Yasuo.useEtoSafe(mis); } } if (Config.Item("smartR").GetValue <bool>() && Yasuo.R.IsReady()) { Yasuo.useRSmart(); } Yasuo.processTargetedSpells(); } catch (Exception ex) { Console.WriteLine(ex); } }