Advertisement
Guest User

windy circles

a guest
Mar 28th, 2019
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.44 KB | None | 0 0
  1. using Turbo.Plugins.Default;
  2.  
  3. namespace Turbo.Plugins.WindyForce
  4. {
  5. public class PlayerCirclesPlugin : BasePlugin, IInGameWorldPainter
  6. {
  7. public WorldDecoratorCollection WizardDecorator { get; set; }
  8. public WorldDecoratorCollection WitchdoctorDecorator { get; set; }
  9. public WorldDecoratorCollection NecromancerDecorator { get; set; }
  10. public WorldDecoratorCollection BarbarianDecorator { get; set; }
  11. public WorldDecoratorCollection MonkDecorator { get; set; }
  12. public WorldDecoratorCollection DemonhunterDecorator { get; set; }
  13. public WorldDecoratorCollection CrusaderDecorator { get; set; }
  14.  
  15. public PlayerCirclesPlugin()
  16. {
  17. Enabled = true;
  18. }
  19.  
  20. public override void Load(IController hud)
  21. {
  22. base.Load(hud);
  23.  
  24. MonkDecorator = new WorldDecoratorCollection(
  25. new GroundCircleDecorator(Hud)
  26. {
  27. Brush = Hud.Render.CreateBrush(255, 0, 0, 0, 9),
  28. RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
  29. Radius = 1.25f
  30. },
  31. new GroundCircleDecorator(Hud)
  32. {
  33. Brush = Hud.Render.CreateBrush(255, 255, 255, 0, 6),
  34. RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
  35. Radius = 1.25f
  36. }
  37. );
  38.  
  39. WitchdoctorDecorator = new WorldDecoratorCollection(
  40. new GroundCircleDecorator(Hud)
  41. {
  42. Brush = Hud.Render.CreateBrush(255, 0, 0, 0, 10),
  43. RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
  44. Radius = 1.25f
  45. },
  46. new GroundCircleDecorator(Hud)
  47. {
  48. Brush = Hud.Render.CreateBrush(255, 0, 255, 0, 7), //GREEN
  49. RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
  50. Radius = 1.25f
  51. }
  52. );
  53.  
  54. NecromancerDecorator = new WorldDecoratorCollection(
  55. new GroundCircleDecorator(Hud)
  56. {
  57. Brush = Hud.Render.CreateBrush(255, 0, 0, 0, 9),
  58. RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
  59. Radius = 1.25f
  60. },
  61. new GroundCircleDecorator(Hud)
  62. {
  63. Brush = Hud.Render.CreateBrush(255, 64, 192, 176, 6), //TEAL
  64. RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
  65. Radius = 1.25f
  66. }
  67. );
  68.  
  69. BarbarianDecorator = new WorldDecoratorCollection(
  70. new GroundCircleDecorator(Hud)
  71. {
  72. Brush = Hud.Render.CreateBrush(255, 0, 0, 0, 9),
  73. RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
  74. Radius = 1.25f
  75. },
  76. new GroundCircleDecorator(Hud)
  77. {
  78. Brush = Hud.Render.CreateBrush(255, 255, 0, 0, 6), //RED
  79. RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
  80. Radius = 1.25f
  81. }
  82. );
  83.  
  84. CrusaderDecorator = new WorldDecoratorCollection(
  85. new GroundCircleDecorator(Hud)
  86. {
  87. Brush = Hud.Render.CreateBrush(255, 0, 0, 0, 6),
  88. RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
  89. Radius = 1.25f
  90. },
  91. new GroundCircleDecorator(Hud)
  92. {
  93. Brush = Hud.Render.CreateBrush(255, 255, 255, 255, 3), //WHITE
  94. RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
  95. Radius = 1.25f
  96. }
  97. );
  98.  
  99. DemonhunterDecorator = new WorldDecoratorCollection(
  100. new GroundCircleDecorator(Hud)
  101. {
  102. Brush = Hud.Render.CreateBrush(255, 0, 0, 0, 9),
  103. RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
  104. Radius = 1.25f
  105. },
  106. new GroundCircleDecorator(Hud)
  107. {
  108. Brush = Hud.Render.CreateBrush(255, 34, 126, 212, 6), //BLUISH
  109. RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
  110. Radius = 1.25f
  111. }
  112. );
  113.  
  114. WizardDecorator = new WorldDecoratorCollection(
  115. new GroundCircleDecorator(Hud)
  116. {
  117. Brush = Hud.Render.CreateBrush(255, 0, 0, 0, 10),
  118. RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
  119. Radius = 1.25f
  120. },
  121. new GroundCircleDecorator(Hud)
  122. {
  123. Brush = Hud.Render.CreateBrush(255, 153, 0, 153, 7), //MAGENTA PINKISH
  124. RadiusTransformator = new StandardPingRadiusTransformator(Hud, 444),
  125. Radius = 1.25f
  126. }
  127. );
  128.  
  129. }
  130.  
  131. public void PaintWorld(WorldLayer layer)
  132. {
  133. var actors = Hud.Game.Actors;
  134. foreach (var actor in actors)
  135. {
  136. switch (actor.SnoActor.Sno)
  137. {
  138. case 6526:
  139. case 6544:
  140. WizardDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  141. break;
  142.  
  143. case 6485:
  144. case 6481:
  145. WitchdoctorDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  146. break;
  147.  
  148. case 454402:
  149. case 454021:
  150. NecromancerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  151. break;
  152.  
  153. case 3285:
  154. case 3301:
  155. BarbarianDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  156. break;
  157.  
  158. case 4717:
  159. case 4721:
  160. MonkDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  161. break;
  162.  
  163. case 74706:
  164. case 75207:
  165. DemonhunterDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  166. break;
  167.  
  168. case 238286:
  169. case 238284:
  170. CrusaderDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  171. break;
  172.  
  173. }
  174. }
  175. }
  176. }
  177. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement