Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Turbo.Plugins.Default;
- namespace Turbo.Plugins.WindyForce
- {
- public class PlayerCirclesPlugin : BasePlugin, IInGameWorldPainter
- {
- public WorldDecoratorCollection WizardDecorator { get; set; }
- public WorldDecoratorCollection WitchdoctorDecorator { get; set; }
- public WorldDecoratorCollection NecromancerDecorator { get; set; }
- public WorldDecoratorCollection BarbarianDecorator { get; set; }
- public WorldDecoratorCollection MonkDecorator { get; set; }
- public WorldDecoratorCollection DemonhunterDecorator { get; set; }
- public WorldDecoratorCollection CrusaderDecorator { get; set; }
- public PlayerCirclesPlugin()
- {
- Enabled = true;
- }
- public override void Load(IController hud)
- {
- base.Load(hud);
- MonkDecorator = new WorldDecoratorCollection(
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 0, 0, 0, 9),
- RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
- Radius = 1.25f
- },
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 255, 255, 0, 6),
- RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
- Radius = 1.25f
- }
- );
- WitchdoctorDecorator = new WorldDecoratorCollection(
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 0, 0, 0, 10),
- RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
- Radius = 1.25f
- },
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 0, 255, 0, 7), //GREEN
- RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
- Radius = 1.25f
- }
- );
- NecromancerDecorator = new WorldDecoratorCollection(
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 0, 0, 0, 9),
- RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
- Radius = 1.25f
- },
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 64, 192, 176, 6), //TEAL
- RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
- Radius = 1.25f
- }
- );
- BarbarianDecorator = new WorldDecoratorCollection(
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 0, 0, 0, 9),
- RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
- Radius = 1.25f
- },
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 255, 0, 0, 6), //RED
- RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
- Radius = 1.25f
- }
- );
- CrusaderDecorator = new WorldDecoratorCollection(
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 0, 0, 0, 6),
- RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
- Radius = 1.25f
- },
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 255, 255, 255, 3), //WHITE
- RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
- Radius = 1.25f
- }
- );
- DemonhunterDecorator = new WorldDecoratorCollection(
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 0, 0, 0, 9),
- RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
- Radius = 1.25f
- },
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 34, 126, 212, 6), //BLUISH
- RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
- Radius = 1.25f
- }
- );
- WizardDecorator = new WorldDecoratorCollection(
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 0, 0, 0, 10),
- RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
- Radius = 1.25f
- },
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 153, 0, 153, 7), //MAGENTA PINKISH
- RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
- Radius = 1.25f
- }
- );
- }
- public void PaintWorld(WorldLayer layer)
- {
- var actors = Hud.Game.Actors;
- foreach (var actor in actors)
- {
- switch (actor.SnoActor.Sno)
- {
- case 6526:
- case 6544:
- WizardDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
- break;
- case 6485:
- case 6481:
- WitchdoctorDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
- break;
- case 454402:
- case 454021:
- NecromancerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
- break;
- case 3285:
- case 3301:
- BarbarianDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
- break;
- case 4717:
- case 4721:
- MonkDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
- break;
- case 74706:
- case 75207:
- DemonhunterDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
- break;
- case 238286:
- case 238284:
- CrusaderDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
- break;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement