Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.76 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 System.Threading;
  7. using System.Runtime.CompilerServices;
  8.  
  9. namespace WindowsFormsApp1
  10. {
  11. class ESP
  12. {
  13.  
  14.  
  15. public static void DrawGlow(int GlowIndex, ESPStruct eStruct)
  16. {
  17.  
  18. VAMemory vam = new VAMemory(Form1.process);
  19.  
  20. int address = Form1.bClient + Offsets.dwGlowObjectManager;
  21. int GlowObject = vam.ReadInt32((IntPtr)address);
  22. vam.WriteFloat((IntPtr)(GlowObject + (GlowIndex * 0x38) + 8), eStruct.r);
  23. vam.WriteFloat((IntPtr)(GlowObject + (GlowIndex * 0x38) + 4), eStruct.g);
  24. vam.WriteFloat((IntPtr)(GlowObject + (GlowIndex * 0x38) + 12), eStruct.b);
  25. vam.WriteFloat((IntPtr)(GlowObject + (GlowIndex * 0x38) + 0x10), eStruct.a);
  26. vam.WriteBoolean((IntPtr)(GlowObject + (GlowIndex * 0x38) + 0x24), eStruct.rwo);
  27. vam.WriteBoolean((IntPtr)(GlowObject + (GlowIndex * 0x38) + 0x25), eStruct.rwuo);
  28. }
  29.  
  30. public static void Glowing()
  31. {
  32.  
  33. VAMemory vam = new VAMemory(Form1.process);
  34.  
  35.  
  36. while (true)
  37. {
  38. ESPStruct MyTeam = new ESPStruct
  39. {
  40. r = 0,
  41. g = 255f,
  42. b = 0,
  43. a = 0,
  44. rwo = true,
  45. rwuo = false,
  46. };
  47.  
  48. ESPStruct EnemyTeam = new ESPStruct
  49. {
  50. r = 255f,
  51. g = 0,
  52. b = 0,
  53. a = 0,
  54. rwo = true,
  55. rwuo = false,
  56. };
  57. if (Config.GlowEnemy || Config.GlowTeam)
  58. {
  59.  
  60. int num = 1;
  61.  
  62. do
  63. {
  64. int adresss = Form1.bClient + Offsets.dwLocalPlayer;
  65. int LocalPlayer = vam.ReadInt32((IntPtr)adresss);
  66.  
  67. adresss = Form1.bClient + Offsets.dwEntityList + (num - 1) * 0x10;
  68. int EntityList = vam.ReadInt32((IntPtr)adresss);
  69.  
  70. adresss = EntityList + Offsets.oDormant;
  71. if (!vam.ReadBoolean((IntPtr)adresss))
  72. {
  73. adresss = EntityList + Offsets.m_iTeamNum;
  74. int HisTeam = vam.ReadInt32((IntPtr)adresss);
  75.  
  76. adresss = LocalPlayer + Offsets.m_iTeamNum;
  77. int PlayerTeam = vam.ReadInt32((IntPtr)adresss);
  78.  
  79. adresss = EntityList + Offsets.m_iGlowIndex;
  80. int GlowIndex = vam.ReadInt32((IntPtr)adresss);
  81.  
  82.  
  83.  
  84.  
  85. if (HisTeam == PlayerTeam)
  86. {
  87. if (Config.GlowTeam)
  88. DrawGlow(GlowIndex, MyTeam);
  89. }
  90. else
  91. {
  92. if (Config.GlowEnemy)
  93. DrawGlow(GlowIndex, EnemyTeam);
  94. }
  95. }
  96.  
  97. num++;
  98. }
  99. while(num <= 64);
  100. }
  101. Thread.Sleep(0x11);
  102. }
  103. }
  104.  
  105.  
  106. public struct ESPStruct
  107. {
  108. public float r;
  109. public float g;
  110. public float b;
  111. public float a;
  112. public bool rwo;
  113. public bool rwuo;
  114. }
  115. }
  116. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement