Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections.Generic;
- using System.Linq;
- using Turbo.Plugins.Default;
- ////////////////////////////////////////////////////////////////////////////////
- //Credits
- //
- //Thanks to Jacks' BossSkillsPlugin, i manage to create this using the very same template he created for adding my own Sno into this.
- //Hope you don't mind me using your code, Jack.
- ////////////////////////////////////////////////////////////////////////////////
- namespace Turbo.Plugins.Everknown
- {
- public class EnemySkillCirclePlugin : BasePlugin, IInGameWorldPainter
- {
- public Dictionary<uint, WorldDecoratorCollection> SnoMapping { get; set; }
- public EnemySkillCirclePlugin()
- {
- Enabled = true;
- }
- public override void Load(IController hud)
- {
- base.Load(hud);
- SnoMapping = new Dictionary<uint, WorldDecoratorCollection>();
- //Orbiter Projectile SnoID = 343539
- SnoMapping.Add(343539, new WorldDecoratorCollection(
- new GroundCircleDecorator(Hud)
- {
- Radius = 3,
- //CreateBrush(alpha value, R,G,B,Stroke,Style)
- Brush = Hud.Render.CreateBrush(255, 0, 0, 255, 2)
- }));
- //Big Orbiter SnoId = 343582
- SnoMapping.Add(343582, new WorldDecoratorCollection(
- new GroundCircleDecorator(Hud)
- {
- Radius = 8,
- Brush = Hud.Render.CreateBrush(255, 0, 0, 255, 2)
- }));
- //SpellCaster Meteor-Impact circle = 159368
- SnoMapping.Add(159368, new WorldDecoratorCollection(
- new GroundCircleDecorator(Hud)
- {
- Radius = 16,
- Brush = Hud.Render.CreateBrush(255, 255, 0, 0, 2)
- }));
- //SpellCaster Meteor- AfterBurn circle = 159367
- SnoMapping.Add(159367, new WorldDecoratorCollection(
- new GroundCircleDecorator(Hud)
- {
- Radius = 16,
- Brush = Hud.Render.CreateBrush(255, 255, 0, 0, 2)
- }));
- //Blazing Guardian & Smoldering Construct FirePool Sno = 432
- SnoMapping.Add(432, new WorldDecoratorCollection(
- new GroundCircleDecorator(Hud)
- {
- Radius = 8,
- Brush = Hud.Render.CreateBrush(255, 255, 0, 0, 2)
- }));
- }
- public void PaintWorld(WorldLayer layer)
- {
- var circles = Hud.Game.Actors.Where(a => SnoMapping.ContainsKey(a.SnoActor.Sno));
- foreach (var circle in circles)
- {
- SnoMapping[circle.SnoActor.Sno].Paint(layer, circle, circle.FloorCoordinate, null);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment