private static void OnDraw(EventArgs args) { if (!Game.IsInGame) { return; } if (LucieHero.Living.IsDead) { return; } Drawing.DrawString(new Vector2(1920f / 2f, 1080f / 2f - 5f).ScreenToWorld(), "Targeting mode: " + (KeysMenu.GetKeybind("keys.changeTargeting") ? "LowestHealth" : "NearMouse"), UnityEngine.Color.yellow); if (DrawingsMenu.GetBoolean("draw.healSafeRange")) { var allyTargets = EntitiesManager.LocalTeam.Where(x => !x.Living.IsDead); foreach (var ally in allyTargets) { Drawing.DrawCircle(ally.MapObject.Position, HealMenu.GetSlider("heal.allySafeRange"), UnityEngine.Color.green); } } if (DrawingsMenu.GetBoolean("draw.rangeR.safeRange")) { var rSafeRange = ComboMenu.GetSlider("combo.useR.safeRange"); Drawing.DrawCircle(MyPos, rSafeRange, UnityEngine.Color.magenta); } }
private void OnDraw(EventArgs args) { //Drawing.DrawString(new Vector2(1280f / 2f, 1024f / 2f), "Game.IsInGame: " + Game.IsInGame, UnityEngine.Color.white, ViewSpace.ScreenSpacePixels); if (!Game.IsInGame) { return; } if (JadeHero.Living.IsDead) { return; } if (DrawingsMenu.GetBoolean("draw.disableAll")) { return; } foreach (var obj in SpecialCircleObjects) { if (obj.Active) { Drawing.DrawCircle(obj.Position, obj.Radius, UnityEngine.Color.green); } } Drawing.DrawString(new Vector2(1920f / 2f, 1080f / 2f - 5f), "Targeting mode: " + (KeysMenu.GetKeybind("keys.changeTargeting") ? "LowestHealth" : "NearMouse"), UnityEngine.Color.yellow, ViewSpace.ScreenSpacePixels); if (DrawingsMenu.GetBoolean("draw.rangeM1")) { Drawing.DrawCircle(JadeHero.MapObject.Position, M1Range, UnityEngine.Color.red); } if (DrawingsMenu.GetBoolean("draw.rangeM2")) { Drawing.DrawCircle(JadeHero.MapObject.Position, M2Range, UnityEngine.Color.red); } if (DrawingsMenu.GetBoolean("draw.rangeM2.safeRange")) { Drawing.DrawCircle(JadeHero.MapObject.Position, ComboMenu.GetSlider("combo.useM2.safeRange"), UnityEngine.Color.blue); } if (DrawingsMenu.GetBoolean("draw.rangeSpace")) { Drawing.DrawCircle(JadeHero.MapObject.Position, TrueSpaceRange, UnityEngine.Color.green); } if (DrawingsMenu.GetBoolean("draw.rangeSpace.safeRange")) { Drawing.DrawCircle(JadeHero.MapObject.Position, ComboMenu.GetSlider("combo.useSpace.maxRange"), UnityEngine.Color.blue); } if (DrawingsMenu.GetBoolean("draw.rangeE")) { Drawing.DrawCircle(JadeHero.MapObject.Position, TrueERange, UnityEngine.Color.red); } if (DrawingsMenu.GetBoolean("draw.rangeR")) { Drawing.DrawCircle(JadeHero.MapObject.Position, RRange, UnityEngine.Color.red); } if (DrawingsMenu.GetBoolean("draw.rangeF")) { Drawing.DrawCircle(JadeHero.MapObject.Position, FRange, UnityEngine.Color.magenta); } if (DrawingsMenu.GetBoolean("draw.rangeF.safeRange")) { Drawing.DrawCircle(JadeHero.MapObject.Position, ComboMenu.GetSlider("combo.useF.safeRange"), UnityEngine.Color.blue); } if (DrawingsMenu.GetBoolean("draw.escapeSkillsScreen")) { var abilitySpace = LocalPlayer.GetAbilityHudData(AbilitySlot.Ability3); if (abilitySpace != null) { var drawSpacePos = new Vector2(760f, 1080f - 350f); var abilitySpaceReady = MiscUtils.CanCast(AbilitySlot.Ability3); var textToDrawSpace = "Space state: " + (abilitySpaceReady ? "Ready" : Math.Round(abilitySpace.CooldownLeft, 2).ToString()); Drawing.DrawString(drawSpacePos, textToDrawSpace, abilitySpaceReady ? UnityEngine.Color.cyan : UnityEngine.Color.gray, ViewSpace.ScreenSpacePixels); } var abilityQ = LocalPlayer.GetAbilityHudData(AbilitySlot.Ability4); if (abilityQ != null) { var drawQPos = new Vector2(1920f - 760f, 1080f - 350f); var abilityQReady = MiscUtils.CanCast(AbilitySlot.Ability4); var textToDrawQ = "Q state: " + (abilityQReady ? "Ready" : Math.Round(abilityQ.CooldownLeft, 2).ToString()); Drawing.DrawString(drawQPos, textToDrawQ, abilityQReady ? UnityEngine.Color.cyan : UnityEngine.Color.gray, ViewSpace.ScreenSpacePixels); } } if (DrawingsMenu.GetBoolean("draw.debugTestPred")) { Drawing.DrawString(JadeHero.MapObject.Position, JadeHero.NetworkMovement.Velocity.ToString(), UnityEngine.Color.cyan); var aliveEnemies = EntitiesManager.EnemyTeam.Where(x => !x.Living.IsDead); foreach (var enemy in aliveEnemies) { Drawing.DrawString(enemy.MapObject.Position, enemy.NetworkMovement.Velocity.ToString(), UnityEngine.Color.green); var testPred = TestPrediction.GetNormalLinePrediction(JadeHero.MapObject.Position, enemy, M2Range, M2Speed, M2Radius); if (testPred.CanHit) { Drawing.DrawCircle(testPred.CastPosition, 1f, UnityEngine.Color.red); } if (testPred.CollisionResult != null ? testPred.CollisionResult.IsColliding : false) { Drawing.DrawCircle(testPred.CollisionResult.CollisionPoint, 1f, UnityEngine.Color.blue); } } } }