Advertisement
zjqyf

GLQ_PlayerSkillPlugin.cs

Jan 30th, 2018
1,125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.42 KB | None | 0 0
  1. using System.Linq;
  2. using Turbo.Plugins.Default;
  3.  
  4. namespace Turbo.Plugins.glq
  5. {
  6. public class GLQ_PlayerSkillPlugin : BasePlugin, IInGameWorldPainter
  7. {
  8.  
  9. public WorldDecoratorCollection HydraDecorator { get; set; }
  10. public WorldDecoratorCollection SentryDecorator { get; set; }
  11. public WorldDecoratorCollection SentryMapDecorator { get; set; }
  12. public WorldDecoratorCollection SentryTimerDecorator { get; set; }
  13. public WorldDecoratorCollection SentryWithCustomEngineeringTimerDecorator { get; set; }
  14. public WorldDecoratorCollection SlowTimeDecorator { get; set; }
  15. public WorldDecoratorCollection SlowTimeTimerDecorator { get; set; }
  16. public WorldDecoratorCollection BlackHoleDecorator { get; set; }
  17. public WorldDecoratorCollection BlackHoleSupermassiveDecorator { get; set; }
  18. public WorldDecoratorCollection BlackHoleTimerDecorator { get; set; }
  19. public WorldDecoratorCollection PiranhasDecorator { get; set; }
  20. public WorldDecoratorCollection PiranhasTimerDecorator { get; set; }
  21. public WorldDecoratorCollection PiranhasPiranhadoTimerDecorator { get; set; }
  22. public WorldDecoratorCollection SpiritWalkTimerDecorator { get; set; }
  23. public WorldDecoratorCollection SpiritWalkWithJauntTimerDecorator { get; set; }
  24. public WorldDecoratorCollection BigBadVoodooDecorator { get; set; }
  25. public WorldDecoratorCollection BigBadVoodooWithJungleDrumsDecorator { get; set; }
  26. public WorldDecoratorCollection BigBadVoodooTimerDecorator { get; set; }
  27. public WorldDecoratorCollection BigBadVoodooWithJungleDrumsTimerDecorator { get; set; }
  28. public WorldDecoratorCollection InnerSanctuaryDecorator { get; set; }
  29. public WorldDecoratorCollection InnerSanctuaryTimerDecorator { get; set; }
  30. public WorldDecoratorCollection SpiritBarragePhantasmDecorator { get; set; }
  31. public WorldDecoratorCollection SpiritBarragePhantasmTimerDecorator { get; set; }
  32. public WorldDecoratorCollection MarkedForDeathDecorator { get; set; }
  33. public WorldDecoratorCollection MarkedForDeathTimerDecorator { get; set; }
  34. public WorldDecoratorCollection GraspoftheDeadDecorator { get; set; }
  35. public WorldDecoratorCollection GraspoftheDeadTimerDecorator { get; set; }
  36. public WorldDecoratorCollection Wizard_Meteor_PendingDecorator { get; set; }
  37. public WorldDecoratorCollection Wizard_Meteor_PendingTimerDecorator { get; set; }
  38. public WorldDecoratorCollection Wizard_Meteor_Pending_costDecorator { get; set; }
  39. public WorldDecoratorCollection Wizard_Meteor_Pending_costTimerDecorator { get; set; }
  40. public WorldDecoratorCollection Wizard_Meteor_Pending_longerDecorator { get; set; }
  41. public WorldDecoratorCollection Wizard_Meteor_Pending_longerTimerDecorator { get; set; }
  42. public WorldDecoratorCollection Wizard_Meteor_Pending_frostDecorator { get; set; }
  43. public WorldDecoratorCollection Wizard_Meteor_Pending_frostTimerDecorator { get; set; }
  44. public WorldDecoratorCollection Wizard_Meteor_Pending_RuneDecorator { get; set; }
  45. public WorldDecoratorCollection Wizard_Meteor_Pending_RuneTimerDecorator { get; set; }
  46. public WorldDecoratorCollection Wizard_Meteor_Pending_addDamageDecorator { get; set; }
  47. public WorldDecoratorCollection Wizard_Meteor_Pending_addDamageTimerDecorator { get; set; }
  48.  
  49. public bool Sentry { get; set; }
  50. public bool SentryTimer { get; set; }
  51. public bool SlowTime { get; set; }
  52. public bool SlowTimeTimer { get; set; }
  53. public bool BlackHole { get; set; }
  54. public bool BlackHoleTimer { get; set; }
  55. public bool Piranhas { get; set; }
  56. public bool PiranhasTimer { get; set; }
  57. public bool InnerSanctuary { get; set; }
  58. public bool InnerSanctuaryTimer { get; set; }
  59. public bool SpiritWalkTimer { get; set; }
  60. public bool MarkedForDeath { get; set; }
  61. public bool MarkedForDeathTimer { get; set; }
  62. public bool BigBadVoodoo { get; set; }
  63. public bool BigBadVoodooTimer { get; set; }
  64. public bool GraspoftheDead { get; set; }
  65. public bool GraspoftheDeadTimer { get; set; }
  66. public bool SpiritBarragePhantasm { get; set; }
  67. public bool SpiritBarragePhantasmTimer { get; set; }
  68. public bool Wizard_Meteor { get; set; }
  69. public bool Wizard_MeteorTimer { get; set; }
  70.  
  71. public GLQ_PlayerSkillPlugin()
  72. {
  73. Enabled = true;
  74. Sentry = true;
  75. SentryTimer = true;
  76. SlowTime = true;
  77. SlowTimeTimer = true;
  78. BlackHole = true;
  79. BlackHoleTimer = true;
  80. Piranhas = true;
  81. PiranhasTimer = true;
  82. SpiritWalkTimer = true;
  83. SpiritBarragePhantasm = true;
  84. SpiritBarragePhantasmTimer = true;
  85. BigBadVoodoo = true;
  86. BigBadVoodooTimer = true;
  87. GraspoftheDead = true;
  88. GraspoftheDeadTimer = true;
  89. Wizard_Meteor = true;
  90. Wizard_MeteorTimer = true;
  91.  
  92. }
  93.  
  94. public override void Load(IController hud)
  95. {
  96. base.Load(hud);
  97.  
  98. HydraDecorator = new WorldDecoratorCollection(
  99. new MapShapeDecorator(Hud)
  100. {
  101. Brush = Hud.Render.CreateBrush(255, 255, 100, 100, 2),
  102. ShadowBrush = Hud.Render.CreateBrush(96, 0, 0, 0, 1),
  103. ShapePainter = new TriangleShapePainter(Hud),
  104. Radius = 4f,
  105. },
  106. new GroundLabelDecorator(Hud)
  107. {
  108. CountDownFrom = 15,
  109. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 200, 200, true, false, 128, 0, 0, 0, true),
  110. },
  111. new GroundTimerDecorator(Hud)
  112. {
  113. CountDownFrom = 15,
  114. BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
  115. BackgroundBrushFill = Hud.Render.CreateBrush(230, 255, 50, 50, 0),
  116. Radius = 30,
  117. }
  118. );
  119. SentryDecorator = new WorldDecoratorCollection(
  120. new GroundCircleDecorator(Hud)
  121. {
  122. Brush = Hud.Render.CreateBrush(255, 170, 170, 210, 2),
  123. Radius = 16,
  124. }
  125. );
  126. SentryMapDecorator = new WorldDecoratorCollection(
  127. new MapShapeDecorator(Hud)
  128. {
  129. Brush = Hud.Render.CreateBrush(255, 240, 148, 32, 2),
  130. ShadowBrush = Hud.Render.CreateBrush(96, 0, 0, 0, 1),
  131. ShapePainter = new TriangleShapePainter(Hud),
  132. Radius = 4f,
  133. }
  134. );
  135. SentryTimerDecorator = new WorldDecoratorCollection(
  136. new GroundLabelDecorator(Hud)
  137. {
  138. CountDownFrom = 30,
  139. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 240, 148, 32, true, false, 128, 0, 0, 0, true),
  140. },
  141. new GroundTimerDecorator(Hud)
  142. {
  143. CountDownFrom = 30,
  144. BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
  145. BackgroundBrushFill = Hud.Render.CreateBrush(160, 240, 148, 32, 0),
  146. Radius = 30,
  147. }
  148. );
  149.  
  150. SentryWithCustomEngineeringTimerDecorator = new WorldDecoratorCollection(
  151. new GroundLabelDecorator(Hud)
  152. {
  153. CountDownFrom = 60,
  154. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 240, 148, 32, true, false, 128, 0, 0, 0, true),
  155. },
  156. new GroundTimerDecorator(Hud)
  157. {
  158. CountDownFrom = 60,
  159. BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
  160. BackgroundBrushFill = Hud.Render.CreateBrush(160, 240, 148, 32, 0),
  161. Radius = 30,
  162. }
  163. );
  164. SlowTimeDecorator = new WorldDecoratorCollection(
  165. new GroundCircleDecorator(Hud)
  166. {
  167. Brush = Hud.Render.CreateBrush(255, 255, 128, 255, 2),
  168. Radius = 20,
  169. }
  170. );
  171. SlowTimeTimerDecorator = new WorldDecoratorCollection(
  172. new GroundLabelDecorator(Hud)
  173. {
  174. CountDownFrom = 15,
  175. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 200, 200, true, false, 128, 0, 0, 0, true),
  176. },
  177. new GroundTimerDecorator(Hud)
  178. {
  179. CountDownFrom = 15,
  180. BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
  181. BackgroundBrushFill = Hud.Render.CreateBrush(230, 255, 128, 255, 0),
  182. Radius = 30,
  183. }
  184. );
  185. BlackHoleDecorator = new WorldDecoratorCollection(
  186. new GroundCircleDecorator(Hud)
  187. {
  188. Brush = Hud.Render.CreateBrush(255, 64, 0, 64, 2),
  189. Radius = 15,
  190. }
  191. );
  192. BlackHoleSupermassiveDecorator = new WorldDecoratorCollection(
  193. new GroundCircleDecorator(Hud)
  194. {
  195. Brush = Hud.Render.CreateBrush(255, 0, 50, 250, 2),
  196. Radius = 20,
  197. }
  198. );
  199. BlackHoleTimerDecorator = new WorldDecoratorCollection(
  200. new GroundLabelDecorator(Hud)
  201. {
  202. CountDownFrom = 2,
  203. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 200, 200, true, false, 128, 0, 0, 0, true),
  204. },
  205. new GroundTimerDecorator(Hud)
  206. {
  207. CountDownFrom = 2,
  208. BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
  209. BackgroundBrushFill = Hud.Render.CreateBrush(230, 64, 0, 64, 0),
  210. Radius = 30,
  211. }
  212. );
  213. PiranhasDecorator = new WorldDecoratorCollection(
  214. new GroundCircleDecorator(Hud)
  215. {
  216. Brush = Hud.Render.CreateBrush(255, 100, 255, 150, 2),
  217. Radius = 15,
  218. }
  219. );
  220. PiranhasTimerDecorator = new WorldDecoratorCollection(
  221. new GroundLabelDecorator(Hud)
  222. {
  223. CountDownFrom = 8,
  224. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true),
  225. },
  226. new GroundTimerDecorator(Hud)
  227. {
  228. CountDownFrom = 8,
  229. BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
  230. BackgroundBrushFill = Hud.Render.CreateBrush(160, 100, 255, 150, 0),
  231. Radius = 30,
  232. }
  233. );
  234. PiranhasPiranhadoTimerDecorator = new WorldDecoratorCollection(
  235. new GroundLabelDecorator(Hud)
  236. {
  237. CountDownFrom = 4,
  238. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true),
  239. },
  240. new GroundTimerDecorator(Hud)
  241. {
  242. CountDownFrom = 4,
  243. BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
  244. BackgroundBrushFill = Hud.Render.CreateBrush(160, 100, 255, 150, 0),
  245. Radius = 30,
  246. }
  247. );
  248.  
  249. SpiritWalkTimerDecorator = new WorldDecoratorCollection(
  250. new GroundLabelDecorator(Hud)
  251. {
  252. CountDownFrom = 2,
  253. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 150, 255, true, false, 128, 0, 0, 0, true),
  254. },
  255. new GroundTimerDecorator(Hud)
  256. {
  257. CountDownFrom = 2,
  258. BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
  259. BackgroundBrushFill = Hud.Render.CreateBrush(160, 255, 150, 255, 0),
  260. Radius = 30,
  261. }
  262. );
  263.  
  264. SpiritWalkWithJauntTimerDecorator = new WorldDecoratorCollection(
  265. new GroundLabelDecorator(Hud)
  266. {
  267. CountDownFrom = 3,
  268. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 150, 255, true, false, 128, 0, 0, 0, true),
  269. },
  270. new GroundTimerDecorator(Hud)
  271. {
  272. CountDownFrom = 3,
  273. BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
  274. BackgroundBrushFill = Hud.Render.CreateBrush(160, 255, 150, 255, 0),
  275. Radius = 30,
  276. }
  277. );
  278.  
  279. BigBadVoodooDecorator = new WorldDecoratorCollection(
  280. new GroundCircleDecorator(Hud)
  281. {
  282. Brush = Hud.Render.CreateBrush(255, 128, 0, 0, 2),
  283. Radius = 30,
  284. }
  285. );
  286.  
  287. BigBadVoodooTimerDecorator = new WorldDecoratorCollection(
  288. new GroundLabelDecorator(Hud)
  289. {
  290. CountDownFrom = 20,
  291. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 200, 100, true, false, 128, 0, 0, 0, true),
  292. },
  293. new GroundTimerDecorator(Hud)
  294. {
  295. CountDownFrom = 20,
  296. BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
  297. BackgroundBrushFill = Hud.Render.CreateBrush(160, 128, 0, 0, 0),
  298. Radius = 30,
  299. }
  300. );
  301.  
  302. BigBadVoodooWithJungleDrumsDecorator = new WorldDecoratorCollection(
  303. new GroundCircleDecorator(Hud)
  304. {
  305. Brush = Hud.Render.CreateBrush(255, 128, 0, 0, 2),
  306. Radius = 30,
  307. }
  308. );
  309.  
  310. BigBadVoodooWithJungleDrumsTimerDecorator = new WorldDecoratorCollection(
  311. new GroundLabelDecorator(Hud)
  312. {
  313. CountDownFrom = 30,
  314. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 200, 100, true, false, 128, 0, 0, 0, true),
  315. },
  316. new GroundTimerDecorator(Hud)
  317. {
  318. CountDownFrom = 30,
  319. BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
  320. BackgroundBrushFill = Hud.Render.CreateBrush(160, 128, 0, 0, 0),
  321. Radius = 30,
  322. }
  323. );
  324.  
  325. InnerSanctuaryDecorator = new WorldDecoratorCollection(
  326. new GroundCircleDecorator(Hud)
  327. {
  328. Brush = Hud.Render.CreateBrush(255, 190, 117, 0, 3),
  329. Radius = 11,
  330. }
  331. );
  332. InnerSanctuaryTimerDecorator = new WorldDecoratorCollection(
  333. new GroundLabelDecorator(Hud)
  334. {
  335. CountDownFrom = 6,
  336. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true),
  337. },
  338. new GroundTimerDecorator(Hud)
  339. {
  340. CountDownFrom = 6,
  341. BackgroundBrushEmpty = Hud.Render.CreateBrush(100, 0, 0, 0, 0),
  342. BackgroundBrushFill = Hud.Render.CreateBrush(100, 190, 117, 0, 0),
  343. Radius = 35,
  344. }
  345. );
  346.  
  347. SpiritBarragePhantasmDecorator = new WorldDecoratorCollection(
  348. new GroundCircleDecorator(Hud)
  349. {
  350. Brush = Hud.Render.CreateBrush(255, 0, 128, 255, 2),
  351. Radius = 10,
  352. }
  353. );
  354. SpiritBarragePhantasmTimerDecorator = new WorldDecoratorCollection(
  355. new GroundLabelDecorator(Hud)
  356. {
  357. CountDownFrom = 5,
  358. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true),
  359. },
  360. new GroundTimerDecorator(Hud)
  361. {
  362. CountDownFrom = 5,
  363. BackgroundBrushEmpty = Hud.Render.CreateBrush(100, 0, 0, 0, 0),
  364. BackgroundBrushFill = Hud.Render.CreateBrush(200, 0, 128, 255, 0),
  365. Radius = 25,
  366. }
  367. );
  368.  
  369. MarkedForDeathDecorator = new WorldDecoratorCollection(
  370. new GroundCircleDecorator(Hud)
  371. {
  372. Brush = Hud.Render.CreateBrush(255, 128, 0, 0, 2),
  373. Radius = 15,
  374. }
  375. );
  376. MarkedForDeathTimerDecorator = new WorldDecoratorCollection(
  377. new GroundLabelDecorator(Hud)
  378. {
  379. CountDownFrom = 15,
  380. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true),
  381. },
  382. new GroundTimerDecorator(Hud)
  383. {
  384. CountDownFrom = 15,
  385. BackgroundBrushEmpty = Hud.Render.CreateBrush(100, 0, 0, 0, 0),
  386. BackgroundBrushFill = Hud.Render.CreateBrush(200, 128, 0, 0, 0),
  387. Radius = 25,
  388. }
  389. );
  390.  
  391. GraspoftheDeadDecorator = new WorldDecoratorCollection(
  392. new GroundCircleDecorator(Hud)
  393. {
  394. Brush = Hud.Render.CreateBrush(255, 0, 128, 0, 2),
  395. Radius = 15,
  396. }
  397. );
  398.  
  399. GraspoftheDeadTimerDecorator = new WorldDecoratorCollection(
  400. new GroundLabelDecorator(Hud)
  401. {
  402. CountDownFrom = 8,
  403. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true),
  404. },
  405. new GroundTimerDecorator(Hud)
  406. {
  407. CountDownFrom = 8,
  408. BackgroundBrushEmpty = Hud.Render.CreateBrush(100, 0, 0, 0, 0),
  409. BackgroundBrushFill = Hud.Render.CreateBrush(200, 0, 128, 0, 0),
  410. Radius = 25,
  411. }
  412. );
  413.  
  414. Wizard_Meteor_PendingDecorator = new WorldDecoratorCollection(
  415. new GroundCircleDecorator(Hud)
  416. {
  417. Brush = Hud.Render.CreateBrush(255, 223, 47, 2, 2),
  418. Radius = 13,
  419. }
  420. );
  421.  
  422. Wizard_Meteor_PendingTimerDecorator = new WorldDecoratorCollection(
  423. new GroundLabelDecorator(Hud)
  424. {
  425. CountDownFrom = 1.2f,
  426. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true),
  427. },
  428. new GroundTimerDecorator(Hud)
  429. {
  430. CountDownFrom = 1.2f,
  431. BackgroundBrushEmpty = Hud.Render.CreateBrush(100, 0, 0, 0, 0),
  432. BackgroundBrushFill = Hud.Render.CreateBrush(200, 223, 47, 2, 0),
  433. Radius = 25,
  434. }
  435. );
  436. Wizard_Meteor_Pending_longerDecorator = new WorldDecoratorCollection(
  437. new GroundCircleDecorator(Hud)
  438. {
  439. Brush = Hud.Render.CreateBrush(255, 0, 128, 255, 2),
  440. Radius = 13,
  441. }
  442. );
  443.  
  444. Wizard_Meteor_Pending_longerTimerDecorator = new WorldDecoratorCollection(
  445. new GroundLabelDecorator(Hud)
  446. {
  447. CountDownFrom = 0.3f,
  448. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true),
  449. },
  450. new GroundTimerDecorator(Hud)
  451. {
  452. CountDownFrom = 0.3f,
  453. BackgroundBrushEmpty = Hud.Render.CreateBrush(100, 0, 0, 0, 0),
  454. BackgroundBrushFill = Hud.Render.CreateBrush(200, 0, 128, 255, 0),
  455. Radius = 25,
  456. }
  457. );
  458.  
  459. Wizard_Meteor_Pending_costDecorator = new WorldDecoratorCollection(
  460. new GroundCircleDecorator(Hud)
  461. {
  462. Brush = Hud.Render.CreateBrush(255, 255, 0, 255, 2),
  463. Radius = 13,
  464. }
  465. );
  466.  
  467. Wizard_Meteor_Pending_costTimerDecorator = new WorldDecoratorCollection(
  468. new GroundLabelDecorator(Hud)
  469. {
  470. CountDownFrom = 1.2f,
  471. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true),
  472. },
  473. new GroundTimerDecorator(Hud)
  474. {
  475. CountDownFrom = 1.2f,
  476. BackgroundBrushEmpty = Hud.Render.CreateBrush(100, 0, 0, 0, 0),
  477. BackgroundBrushFill = Hud.Render.CreateBrush(200, 255, 0, 255, 0),
  478. Radius = 25,
  479. }
  480. );
  481. Wizard_Meteor_Pending_frostDecorator = new WorldDecoratorCollection(
  482. new GroundCircleDecorator(Hud)
  483. {
  484. Brush = Hud.Render.CreateBrush(255, 120, 190, 255, 2),
  485. Radius = 13,
  486. }
  487. );
  488.  
  489. Wizard_Meteor_Pending_frostTimerDecorator = new WorldDecoratorCollection(
  490. new GroundLabelDecorator(Hud)
  491. {
  492. CountDownFrom = 1.2f,
  493. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true),
  494. },
  495. new GroundTimerDecorator(Hud)
  496. {
  497. CountDownFrom = 1.2f,
  498. BackgroundBrushEmpty = Hud.Render.CreateBrush(100, 0, 0, 0, 0),
  499. BackgroundBrushFill = Hud.Render.CreateBrush(200, 120, 190, 255, 0),
  500. Radius = 25,
  501. }
  502. );
  503. Wizard_Meteor_Pending_RuneDecorator = new WorldDecoratorCollection(
  504. new GroundCircleDecorator(Hud)
  505. {
  506. Brush = Hud.Render.CreateBrush(255, 223, 47, 2, 2),
  507. Radius = 6.5f,
  508. }
  509. );
  510.  
  511. Wizard_Meteor_Pending_RuneTimerDecorator = new WorldDecoratorCollection(
  512. new GroundLabelDecorator(Hud)
  513. {
  514. CountDownFrom = 1.2f,
  515. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true),
  516. },
  517. new GroundTimerDecorator(Hud)
  518. {
  519. CountDownFrom = 1.2f,
  520. BackgroundBrushEmpty = Hud.Render.CreateBrush(100, 0, 0, 0, 0),
  521. BackgroundBrushFill = Hud.Render.CreateBrush(200, 223, 47, 2, 0),
  522. Radius = 25,
  523. }
  524. );
  525. Wizard_Meteor_Pending_addDamageDecorator = new WorldDecoratorCollection(
  526. new GroundCircleDecorator(Hud)
  527. {
  528. Brush = Hud.Render.CreateBrush(255, 223, 47, 2, 2),
  529. Radius = 20f,
  530. }
  531. );
  532.  
  533. Wizard_Meteor_Pending_addDamageTimerDecorator = new WorldDecoratorCollection(
  534. new GroundLabelDecorator(Hud)
  535. {
  536. CountDownFrom = 1.2f,
  537. TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true),
  538. },
  539. new GroundTimerDecorator(Hud)
  540. {
  541. CountDownFrom = 1.2f,
  542. BackgroundBrushEmpty = Hud.Render.CreateBrush(100, 0, 0, 0, 0),
  543. BackgroundBrushFill = Hud.Render.CreateBrush(200, 223, 47, 2, 0),
  544. Radius = 25,
  545. }
  546. );
  547. }
  548.  
  549. public void PaintWorld(WorldLayer layer)
  550. {
  551. if ((Hud.Game.MapMode == MapMode.WaypointMap) || (Hud.Game.MapMode == MapMode.ActMap) || (Hud.Game.MapMode == MapMode.Map)) return;
  552. var actors = Hud.Game.Actors;
  553. foreach (var actor in actors)
  554. {
  555. if (actor.SummonerAcdDynamicId == Hud.Game.Me.SummonerId)
  556. {
  557. switch (actor.SnoActor.Sno)
  558. {
  559. case (ActorSnoEnum)81230: // light
  560. case (ActorSnoEnum)81232: // arcane
  561. case (ActorSnoEnum)325807:
  562. case (ActorSnoEnum)83024:
  563. HydraDecorator.Paint(layer, actor, actor.FloorCoordinate.Offset(2f, 2f, 0), null);
  564. break;
  565. case (ActorSnoEnum)83959: // mammoth
  566. HydraDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  567. break;
  568. case (ActorSnoEnum)141402:
  569. case (ActorSnoEnum)150025:
  570. case (ActorSnoEnum)150024:
  571. case (ActorSnoEnum)168815:
  572. case (ActorSnoEnum)150026:
  573. case (ActorSnoEnum)150027:
  574. if (!Hud.Game.Me.Powers.BuffIsActive(208610, 0))
  575. {
  576. //if (Sentry == true) SentryDecorator.Paint(layer, actor, actor.FloorCoordinate, null); SentryMapDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  577. if (SentryTimer == true) SentryTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  578. }
  579. else
  580. {
  581. if (SentryTimer == true) SentryWithCustomEngineeringTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  582. }
  583. break;
  584. case (ActorSnoEnum)107705:
  585. case (ActorSnoEnum)106584:
  586. {
  587. var skill = Hud.Game.Me.Powers.UsedSkills.Where(x => x.SnoPower.Sno == 106237).FirstOrDefault();
  588. if (skill != null && SpiritWalkTimer == true)
  589. {
  590. if (skill.Rune == 1)
  591. {
  592. SpiritWalkWithJauntTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  593. }
  594. else
  595. {
  596. SpiritWalkTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  597. }
  598. }
  599. }
  600. break;
  601. case (ActorSnoEnum)181880:
  602. if (SpiritBarragePhantasm == true) SpiritBarragePhantasmDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  603. if (SpiritBarragePhantasmTimer == true) SpiritBarragePhantasmTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  604. break;
  605. }
  606. }
  607. switch (actor.SnoActor.Sno)
  608. {
  609. case (ActorSnoEnum)141402:
  610. case (ActorSnoEnum)150025:
  611. case (ActorSnoEnum)150024:
  612. case (ActorSnoEnum)168815:
  613. if (Sentry == true) SentryMapDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  614. break;
  615. case (ActorSnoEnum)150026:
  616. case (ActorSnoEnum)150027:
  617. if (Sentry == true) SentryDecorator.Paint(layer, actor, actor.FloorCoordinate, null); SentryMapDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  618. break;
  619. case (ActorSnoEnum)6553:
  620. case (ActorSnoEnum)112697:
  621. case (ActorSnoEnum)112572:
  622. case (ActorSnoEnum)112585:
  623. case (ActorSnoEnum)112808:
  624. case (ActorSnoEnum)112560:
  625. if (SlowTime == true) SlowTimeDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  626. if (SlowTimeTimer == true) SlowTimeTimerDecorator.Paint(layer, actor, actor.FloorCoordinate.Offset(0, 0, 5.2f), null);
  627. break;
  628. case (ActorSnoEnum)341381:
  629. if (BlackHole == true) BlackHoleSupermassiveDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  630. if (BlackHoleTimer == true) BlackHoleTimerDecorator.Paint(layer, actor, actor.FloorCoordinate.Offset(0, 0, 5.2f), null);
  631. break;
  632. case (ActorSnoEnum)336410:
  633. case (ActorSnoEnum)341426:
  634. case (ActorSnoEnum)341411:
  635. case (ActorSnoEnum)341396:
  636. case (ActorSnoEnum)341441:
  637. if (BlackHole == true) BlackHoleDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  638. if (BlackHoleTimer == true) BlackHoleTimerDecorator.Paint(layer, actor, actor.FloorCoordinate.Offset(0, 0, 5.2f), null);
  639. break;
  640. case (ActorSnoEnum)348308:
  641. case (ActorSnoEnum)356987:
  642. case (ActorSnoEnum)358018:
  643. case (ActorSnoEnum)358653:
  644. if (Piranhas == true) PiranhasDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  645. if (PiranhasTimer == true) PiranhasTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  646. break;
  647. case (ActorSnoEnum)357846:
  648. if (Piranhas == true) PiranhasDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  649. if (PiranhasTimer == true) PiranhasPiranhadoTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  650. break;
  651. case (ActorSnoEnum)320135:
  652. case (ActorSnoEnum)320136:
  653. case (ActorSnoEnum)319583:
  654. case (ActorSnoEnum)319776:
  655. case (ActorSnoEnum)319337:
  656. if (InnerSanctuary == true) InnerSanctuaryDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  657. if (InnerSanctuaryTimer == true) InnerSanctuaryTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  658. break;
  659. case (ActorSnoEnum)230674:
  660. if (MarkedForDeath == true) MarkedForDeathDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  661. if (MarkedForDeathTimer == true) MarkedForDeathTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  662. break;
  663. case (ActorSnoEnum)69308:
  664. case (ActorSnoEnum)105958:
  665. case (ActorSnoEnum)105953:
  666. case (ActorSnoEnum)105957:
  667. case (ActorSnoEnum)105955:
  668. case (ActorSnoEnum)105956:
  669. if (GraspoftheDead == true) GraspoftheDeadDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  670. if (GraspoftheDeadTimer == true) GraspoftheDeadTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  671. break;
  672. case (ActorSnoEnum)117574:
  673. if (BigBadVoodoo == true) BigBadVoodooWithJungleDrumsDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  674. if (BigBadVoodooTimer == true) BigBadVoodooWithJungleDrumsTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  675. break;
  676. case (ActorSnoEnum)182276:
  677. case (ActorSnoEnum)182278:
  678. case (ActorSnoEnum)182271:
  679. case (ActorSnoEnum)182283:
  680. if (BigBadVoodoo == true) BigBadVoodooDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  681. if (BigBadVoodooTimer == true) BigBadVoodooTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  682. break;
  683. case (ActorSnoEnum)217142:
  684. if (Wizard_Meteor == true) Wizard_Meteor_Pending_costDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  685. if(Wizard_MeteorTimer == true) Wizard_Meteor_Pending_costTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  686. break;
  687. case (ActorSnoEnum)86790:
  688. if (Wizard_Meteor == true) Wizard_Meteor_PendingDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  689. if (Wizard_MeteorTimer == true) Wizard_Meteor_PendingTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  690. break;
  691. case (ActorSnoEnum)217457:
  692. if (Wizard_Meteor == true) Wizard_Meteor_Pending_longerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  693. if (Wizard_MeteorTimer == true) Wizard_Meteor_Pending_longerTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  694. break;
  695. case (ActorSnoEnum)92030:
  696. if (Wizard_Meteor == true) Wizard_Meteor_Pending_frostDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  697. if (Wizard_MeteorTimer == true) Wizard_Meteor_Pending_frostTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  698. break;
  699. case (ActorSnoEnum)91440:
  700. if (Wizard_Meteor == true) Wizard_Meteor_Pending_RuneDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  701. if (Wizard_MeteorTimer == true) Wizard_Meteor_Pending_RuneTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  702. break;
  703. case (ActorSnoEnum)215853:
  704. if (Wizard_Meteor == true) Wizard_Meteor_Pending_addDamageDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  705. if (Wizard_MeteorTimer == true) Wizard_Meteor_Pending_addDamageTimerDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  706. break;
  707.  
  708. }
  709. }
  710. }
  711.  
  712. }
  713.  
  714. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement