private void onUpdate() { if (_menu.DrawUltEnabled && _abilities.Scythe.Ability?.Level > 0) { _particleManager.DrawRange(_owner, "ult_range", _abilities.Scythe.CastRange, Color.Red); } else { _particleManager.Remove("ult_range"); } if (_menu.DrawBlinkEnabled && _abilities.Blink != null) { _particleManager.DrawRange(_owner, "blink_range", _abilities.Blink.CastRange, Color.Gray); } else { _particleManager.Remove("blink_range"); } if (_menu.DrawPulseEnabled && _abilities.Pulse.Ability?.Level > 0 ) { _particleManager.DrawRange(_owner, "pulse_range", _abilities.Pulse.Radius, Color.Purple); } else { _particleManager.Remove("pulse_range"); } }
private async void DrawRange(Unit unit, float range, float time, Color clr) { var handle = unit.Handle.ToString(); Particle.DrawRange(unit, handle, range, clr); await Task.Delay((int)(time * 1000)); Particle.Remove(handle); }
public static void OnUpdate() { if (Core.Config._Menu.DrawingsMenu.BombsDrawings.RemoteBombRange) { foreach (RemoteBomb remoteBomb in Core.Config._RemoteBombs) { Core.Config._ParticleManager.DrawRange(remoteBomb._Unit, remoteBomb._Unit.Handle.ToString(), 400f, Color.Bisque); } } if (Core.Config._Menu.DrawingsMenu.BombsDrawings.LandBombRange) { foreach (LandBomb landBomb in Core.Config._LandBombs) { Core.Config._ParticleManager.DrawRange(landBomb._Unit, landBomb._Unit.Handle.ToString(), 400f, landBomb.DrawingsColor()); } } foreach (StasisBomb stasisBomb in Core.Config._StasisBombs) { uint handle; if (Core.Config._Menu.DrawingsMenu.BombsDrawings.StasisBombRange) { IParticleManager particleManager = Core.Config._ParticleManager; Unit unit = stasisBomb._Unit; handle = stasisBomb._Unit.Handle; string id = handle.ToString(); double num = 400.0; Color blue = Color.Blue; particleManager.DrawRange(unit, id, (float)num, blue); } if (Core.Config._Menu.DrawingsMenu.BombsDrawings.StasisBombSubRange) { IParticleManager particleManager = Core.Config._ParticleManager; Unit unit = stasisBomb._Unit; string str1 = "st"; handle = stasisBomb._Unit.Handle; string str2 = handle.ToString(); string id = str1 + str2; double num = 600.0; Color darkCyan = Color.DarkCyan; particleManager.DrawRange(unit, id, (float)num, darkCyan); } } }
private void onUpdate() { if (_menu.DrawUltEnabled && _abilities.Skill4.Ability?.Level > 0) { _particleManager.DrawRange(_owner, "ult_range", _abilities.Skill4.CastRange, Color.Red); } else { _particleManager.Remove("ult_range"); } if (_menu.DrawBlinkEnabled && _abilities.Blink != null) { _particleManager.DrawRange(_owner, "blink_range", _abilities.Blink.CastRange, Color.Gray); } else { _particleManager.Remove("blink_range"); } if (_menu.DrawSkill1Enabled && _abilities.Skill1.Ability?.Level > 0 ) { _particleManager.DrawRange(_owner, "skill1_range", _abilities.Skill1.Range + _abilities.Skill1.Radius, Color.Azure); } else { _particleManager.Remove("skill1_range"); } if (_menu.DrawSkill2Enabled && _abilities.Skill2.Ability?.Level > 0 ) { _particleManager.DrawRange(_owner, "skill2_range", _abilities.Skill2.CastRange, Color.Beige); } else { _particleManager.Remove("skill2_range"); } if (_menu.DrawSkill3Enabled && _abilities.Skill3.Ability?.Level > 0 ) { _particleManager.DrawRange(_owner, "skill3_range", _abilities.Skill3.CastRange, Color.CadetBlue); } else { _particleManager.Remove("skill3_range"); } var target = _targetSelector.SelectTarget(); if (_menu.DrawTargetEnabled && target != null) { _particleManager.DrawTargetLine( _owner, "target_line", target.Position, _menu.ComboKeyItem ? Color.DarkRed : Color.Gray); } else { _particleManager.Remove("target_line"); } }