Advertisement
Guest User

CSGO Internal Glow Hack - Valrenn

a guest
Aug 13th, 2021
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.87 KB | None | 0 0
  1. #include "pch.h"
  2. #include "windows.h"
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. const int Spectator = 1;
  7. const int Terrorist = 2;
  8. const int CounterTerrorist = 3;
  9.  
  10. uintptr_t dwLocalPlayer;
  11. uintptr_t dwGlowObjectManager;
  12. uintptr_t m_iTeamNum;
  13. uintptr_t dwEntityList;
  14. uintptr_t m_bDormant;
  15. uintptr_t m_iGlowIndex;
  16.  
  17. DWORD WINAPI MainThread(HMODULE hModule)
  18. {
  19.     DWORD modulebase = (DWORD)GetModuleHandle("client.dll");
  20.     bool esp = false;
  21.     while (true)
  22.     {
  23.         if (GetAsyncKeyState(VK_END) & 1)
  24.         {
  25.             esp = true;
  26.         }
  27.         if (GetAsyncKeyState(VK_DELETE) & 1)
  28.         {
  29.             esp = false;
  30.         }
  31.         if (esp) {
  32.             DWORD LocalPlayer = *(DWORD*)(modulebase + dwLocalPlayer);
  33.             DWORD GlowObjectManager = *(DWORD*)(modulebase + dwGlowObjectManager);
  34.             DWORD EntityList = *(DWORD*)(modulebase + dwEntityList);
  35.  
  36.             int localTeam = *(int*)(LocalPlayer + m_iTeamNum);
  37.  
  38.             for (int i = 1; i < 32; i++)
  39.             {
  40.                 DWORD entity = *(DWORD*)((modulebase + dwEntityList) + i * 0x10);
  41.  
  42.                 if (entity == NULL) continue;
  43.  
  44.                 int glowIndex = *(int*)(entity + m_iGlowIndex);
  45.                 int entityTeam = *(int*)(entity + m_iTeamNum);
  46.  
  47.                 if (entityTeam == localTeam)
  48.                 {
  49.                     // SEU TIME
  50.                     *(float*)(GlowObjectManager + glowIndex * 0x38 + 0x8) = 0.f; //R
  51.                     *(float*)(GlowObjectManager + glowIndex * 0x38 + 0xC) = 1.f; //G
  52.                     *(float*)(GlowObjectManager + glowIndex * 0x38 + 0x10) = 0.f; //B
  53.                     *(float*)(GlowObjectManager + glowIndex * 0x38 + 0x14) = 1.7f; //A
  54.                 }
  55.                 else
  56.                 {
  57.                     // TIME INIMIGO
  58.                     *(float*)(GlowObjectManager + glowIndex * 0x38 + 0x8) = 1.f; //R
  59.                     *(float*)(GlowObjectManager + glowIndex * 0x38 + 0xC) = 0.f; //G
  60.                     *(float*)(GlowObjectManager + glowIndex * 0x38 + 0x10) = 0.f; //B
  61.                     *(float*)(GlowObjectManager + glowIndex * 0x38 + 0x14) = 1.7f; //A
  62.                 }
  63.                 *(bool*)((GlowObjectManager + glowIndex * 0x38 + 0x28)) = true;
  64.                 *(bool*)((GlowObjectManager + glowIndex * 0x38 + 0x29)) = false;
  65.             }
  66.         }
  67.     }
  68.  
  69.     FreeLibraryAndExitThread(hModule, 0);
  70.     return 0;
  71. }
  72.  
  73. BOOL APIENTRY DllMain( HMODULE hModule,
  74.                        DWORD  ul_reason_for_call,
  75.                        LPVOID lpReserved
  76.                      )
  77. {
  78.     switch (ul_reason_for_call)
  79.     {
  80.     case DLL_PROCESS_ATTACH:
  81.         CloseHandle(CreateThread(nullptr, 0, (LPTHREAD_START_ROUTINE)MainThread, hModule, 0, nullptr));
  82.     case DLL_THREAD_ATTACH:
  83.     case DLL_THREAD_DETACH:
  84.     case DLL_PROCESS_DETACH:
  85.         break;
  86.     }
  87.     return TRUE;
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement