Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 KB | None | 0 0
  1. void Chams(DWORD Entity) {
  2.  
  3. int currentR = Mem->Read<int>(Entity + m_clrRender);
  4. int currentG = Mem->Read<int>(Entity + m_clrRender + 0x1);
  5. int currentB = Mem->Read<int>(Entity + m_clrRender + 0x2);
  6. int currentA = Mem->Read<int>(Entity + m_clrRender + 0x3);
  7.  
  8. if (currentR == visChamsr && currentG == visChamsg && currentB == visChamsb && currentA == visChamsa)
  9. return;
  10.  
  11. if (GetTeamNum(GetLocalPlayer()) != GetTeamNum(Entity)) {
  12. Mem->Write<int>(Entity + m_clrRender, visChamsr); //r
  13. Mem->Write<int>(Entity + m_clrRender + 0x1, visChamsg); //g
  14. Mem->Write<int>(Entity + m_clrRender + 0x2, visChamsb); //b
  15. Mem->Write<int>(Entity + m_clrRender + 0x3, visChamsa); //a
  16. }
  17. }
  18.  
  19. void Radar(DWORD Entity) {
  20.  
  21. if (GetAlive(Entity))
  22. return;
  23.  
  24. if (!(GetDormant(GetLocalPlayer())))
  25. return;
  26.  
  27. IsSpotted(Entity, true);
  28. }
  29.  
  30. void GlowESP()
  31. {
  32. const float TR = 1.f;
  33. const float TG = 0.f;
  34. const float TB = 0.f;
  35.  
  36. const float CTR = 0.f;
  37. const float CTG = 0.f;
  38. const float CTB = 1.f;
  39.  
  40. while (true){
  41. ProgThreads::gloESP->Sleep(1);
  42.  
  43. for (int i = 0; i < 64; i++) {
  44. DWORD EntityBase = GetEntity(i);
  45.  
  46. if (chamsrEnabled)
  47. Chams(EntityBase);
  48.  
  49. if (radarEnabled)
  50. Radar(EntityBase);
  51.  
  52. if (glowEnabled){
  53.  
  54. int EntityGlowIndex = Mem->Read<int>(EntityBase + m_iGlowIndex);
  55. DWORD GlowPointer = Mem->Read<DWORD>(Mem->ClientDLL_Base + m_dwGlowObject);
  56.  
  57. if (EntityBase == NULL)
  58. break;
  59.  
  60. if (
  61. (
  62. Mem->Read<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x4))) == TR &&
  63. Mem->Read<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x8))) == TG &&
  64. Mem->Read<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0xC))) == TB &&
  65. Mem->Read<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x10))) == 1.f &&
  66. Mem->Read<BOOL>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x24))) == true &&
  67. Mem->Read<BOOL>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x25))) == false
  68. )
  69. ||
  70. (
  71. Mem->Read<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x4))) == CTR &&
  72. Mem->Read<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x8))) == CTG &&
  73. Mem->Read<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0xC))) == CTB &&
  74. Mem->Read<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x10))) == 1.f &&
  75. Mem->Read<BOOL>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x24))) == true &&
  76. Mem->Read<BOOL>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x25))) == false
  77. )
  78. )
  79. break;
  80.  
  81. if (GetDormant(EntityBase) == true || GetTeamNum(EntityBase) == false)
  82. continue;
  83. else if (GetTeamNum(GetLocalPlayer()) != GetTeamNum(EntityBase))
  84. switch (GetTeamNum(EntityBase)) {
  85. case 2: //If entity team is T
  86. Mem->Write<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x4)), TR);
  87. Mem->Write<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x8)), TG);
  88. Mem->Write<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0xC)), TB);
  89. Mem->Write<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x10)), 1.f);
  90. Mem->Write<BOOL>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x24)), true);
  91. Mem->Write<BOOL>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x25)), false);
  92. break;
  93. case 3: //If entity team is CT
  94. Mem->Write<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x4)), CTR);
  95. Mem->Write<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x8)), CTG);
  96. Mem->Write<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0xC)), CTB);
  97. Mem->Write<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x10)), 1.f);
  98. Mem->Write<BOOL>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x24)), true);
  99. Mem->Write<BOOL>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x25)), false);
  100. break;
  101. }
  102. }
  103. }
  104. }
  105. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement