Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Microsoft.VisualBasic.CompilerServices;
  7. using System.Runtime.CompilerServices;
  8. using System.Threading;
  9. namespace csgo_simple_glow
  10. {
  11. class Glow
  12. {
  13. private static void DrawGlow(int pGlowIn, GlowStruct col)
  14. {
  15. object objectValue = RuntimeHelpers.GetObjectValue(Mem.ReadInt(Form1.bClient + Offsets.oGlowObject, 4));
  16. Mem.WriteSingle(Conversions.ToInteger(Operators.AddObject(objectValue, (pGlowIn * 0x38) + 4)), 4, col.r);
  17. Mem.WriteSingle(Conversions.ToInteger(Operators.AddObject(objectValue, (pGlowIn * 0x38) + 8)), 4, col.g);
  18. Mem.WriteSingle(Conversions.ToInteger(Operators.AddObject(objectValue, (pGlowIn * 0x38) + 12)), 4, col.b);
  19. Mem.WriteSingle(Conversions.ToInteger(Operators.AddObject(objectValue, (pGlowIn * 0x38) + 0x10)), 4, col.a);
  20. Mem.WriteBool(Conversions.ToInteger(Operators.AddObject(objectValue, (pGlowIn * 0x38) + 0x24)), 1, col.rwo);
  21. Mem.WriteBool(Conversions.ToInteger(Operators.AddObject(objectValue, (pGlowIn * 0x38) + 0x25)), 1, col.rwuo);
  22. }
  23. public static void Glow2()
  24. {
  25. while (true)
  26. {
  27. GlowStruct col = new GlowStruct
  28. {
  29. r = (float)(((double)Config.glow_enemy_r) / 255.0),
  30. g = (float)(((double)Config.glow_enemy_g) / 255.0),
  31. b = (float)(((double)Config.glow_enemy_b) / 255.0),
  32. a = (float)(((double)Config.glow_alpha) / 255.0),
  33. rwo = true,
  34. rwuo = false
  35. };
  36. GlowStruct struct3 = new GlowStruct
  37. {
  38. r = (float)(((double)Config.glow_team_r) / 255.0),
  39. g = (float)(((double)Config.glow_team_g) / 255.0),
  40. b = (float)(((double)Config.glow_team_b) / 255.0),
  41. a = (float)(((double)Config.glow_alpha) / 255.0),
  42. rwo = true,
  43. rwuo = false
  44. };
  45. if (Config.glowenemyenabled | Config.glowteamenabled)
  46. {
  47. int num2;
  48. int num = 1;
  49. do
  50. {
  51. object LocalPlayer = RuntimeHelpers.GetObjectValue(Mem.ReadInt(Form1.bClient + Offsets.oLocalPlayer, 4));
  52. object EntityList = RuntimeHelpers.GetObjectValue(Mem.ReadInt((Form1.bClient + Offsets.oEntityList) + ((num - 1) * 0x10), 4));
  53. if (Conversions.ToBoolean(Operators.NotObject(RuntimeHelpers.GetObjectValue(Mem.ReadBool(Conversions.ToInteger(Operators.AddObject(EntityList, Offsets.oDormant)), 4)))))
  54. {
  55. object GlowIndex = RuntimeHelpers.GetObjectValue(Mem.ReadInt(Conversions.ToInteger(Operators.AddObject(EntityList, Offsets.oGlowIndex)), 4));
  56. object eTeam = RuntimeHelpers.GetObjectValue(Mem.ReadInt(Conversions.ToInteger(Operators.AddObject(EntityList, Offsets.oTeam)), 4));
  57. object mTeam = RuntimeHelpers.GetObjectValue(Mem.ReadInt(Conversions.ToInteger(Operators.AddObject(LocalPlayer, Offsets.oTeam)), 4));
  58. if (Operators.ConditionalCompareObjectEqual(eTeam, mTeam, false))
  59. {
  60. if (Config.glowteamenabled)
  61. {
  62. DrawGlow(Conversions.ToInteger(GlowIndex), struct3);
  63. }
  64. }
  65. else
  66. {
  67. if (Config.glowenemyenabled)
  68. {
  69. DrawGlow(Conversions.ToInteger(GlowIndex), col);
  70. }
  71. }
  72. }
  73. num++;
  74. num2 = 0x40;
  75. }
  76. while (num <= num2);
  77. }
  78. Thread.Sleep(0x11);
  79. }
  80. }
  81. public struct GlowStruct
  82. {
  83. public float r;
  84. public float g;
  85. public float b;
  86. public float a;
  87. public bool rwo;
  88. public bool rwuo;
  89. }
  90. }
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement