Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Turbo.Plugins.PsychosPlugins
- {
- using Turbo.Plugins.Default;
- using System.Collections.Generic;
- using System.Linq;
- public class SKillRangePlugins : BasePlugin
- {
- public class ISkillList
- {
- public string Description;
- public uint SNO;
- public float Range;
- public ISkillList(string inpDescription, uint inpSNO, float inpRange)
- {
- this.Description = inpDescription;
- this.SNO = inpSNO;
- this.Range = inpRange;
- }
- }
- public List<ISkillList> SkillList { get; set; }
- public WorldDecoratorCollection RangeDecorator { get; set; }
- public SKillRangePlugins()
- {
- Enabled = true;
- SkillList = new List<ISkillList>();
- }
- public override void Load(IController hud)
- {
- base.Load(hud);
- RangeDecorator = new WorldDecoratorCollection(
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(150, 255, 0, 0, 2, SharpDX.Direct2D1.DashStyle.Dash),
- });
- SkillList.Add(new ISkillList("Ignore Pain",79528,50f)); // Skill Name, SKillSNO, Range
- }
- public override void PaintWorld(WorldLayer layer)
- {
- foreach (IPlayerSkill skillslot in Hud.Game.Me.Powers.SkillSlots)
- {
- foreach (var skill in SkillList)
- {
- if (skillslot.SnoPower.Sno == skill.SNO)
- {
- foreach (var subDecorator in RangeDecorator.GetDecorators<GroundCircleDecorator>())
- {
- subDecorator.Radius = skill.Range;
- }
- RangeDecorator.Paint(layer,Hud.Game.Me,Hud.Game.Me.FloorCoordinate,string.Empty);
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment