public OlafSpells() { float qRange = 1000F; float qDelay = 0.25F; float qWidth = 90F; float qSpeed = 1600F; Console.WriteLine(ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).SData.LineWidth); Q = new OlafSpell(SpellSlot.Q, qRange, TargetSelector.DamageType.Physical); Q.SetSkillshot(qDelay, qWidth, qSpeed, false, SkillshotType.SkillshotLine); W = new OlafSpell(SpellSlot.W); float eRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).SData.CastRange; E = new OlafSpell(SpellSlot.E, eRange, TargetSelector.DamageType.True); R = new OlafSpell(SpellSlot.R, 1500F); }
public OlafCore(OlafSpells olafSpells, Orbwalking.Orbwalker olafOrbwalker, OlafMenu olafMenu) { q = olafSpells.Q; w = olafSpells.W; e = olafSpells.E; r = olafSpells.R; player = ObjectManager.Player; this.olafOrbwalker = olafOrbwalker; this.olafMenu = olafMenu; actionQueue = new ActionQueue(); harasQueue = new ActionQueueList(); comboQueue = new ActionQueueList(); laneClearQueue = new ActionQueueList(); autoAttackCheck = new ActionQueueCheckAutoAttack(); olafItems = new OlafOffensiveItems(olafMenu); Game.OnUpdate += Game_OnUpdate; }
private void Drawing_OnDraw(System.EventArgs args) { if (!olafMenu.GetParamBool("koreanolaf.drawing.skillranges")) { return; } OlafSpell olafSpell = null; if (olafSpells.Q.UseOnCombo && olafSpells.Q.IsReady()) { olafSpell = olafSpells.Q; } else if (olafSpells.E.UseOnCombo && olafSpells.E.IsReady()) { olafSpell = olafSpells.E; } if (olafSpell != null) { Render.Circle.DrawCircle(ObjectManager.Player.Position, olafSpell.Range, Color.FromArgb(150, Color.DarkGreen), 5); } }