Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Chams(DWORD Entity) {
- int currentR = Mem->Read<int>(Entity + m_clrRender);
- int currentG = Mem->Read<int>(Entity + m_clrRender + 0x1);
- int currentB = Mem->Read<int>(Entity + m_clrRender + 0x2);
- int currentA = Mem->Read<int>(Entity + m_clrRender + 0x3);
- if (currentR == visChamsr && currentG == visChamsg && currentB == visChamsb && currentA == visChamsa)
- return;
- if (GetTeamNum(GetLocalPlayer()) != GetTeamNum(Entity)) {
- Mem->Write<int>(Entity + m_clrRender, visChamsr); //r
- Mem->Write<int>(Entity + m_clrRender + 0x1, visChamsg); //g
- Mem->Write<int>(Entity + m_clrRender + 0x2, visChamsb); //b
- Mem->Write<int>(Entity + m_clrRender + 0x3, visChamsa); //a
- }
- }
- void Radar(DWORD Entity) {
- if (GetAlive(Entity))
- return;
- if (!(GetDormant(GetLocalPlayer())))
- return;
- IsSpotted(Entity, true);
- }
- void GlowESP()
- {
- const float TR = 1.f;
- const float TG = 0.f;
- const float TB = 0.f;
- const float CTR = 0.f;
- const float CTG = 0.f;
- const float CTB = 1.f;
- while (true){
- ProgThreads::gloESP->Sleep(1);
- for (int i = 0; i < 64; i++) {
- DWORD EntityBase = GetEntity(i);
- if (chamsrEnabled)
- Chams(EntityBase);
- if (radarEnabled)
- Radar(EntityBase);
- if (glowEnabled){
- int EntityGlowIndex = Mem->Read<int>(EntityBase + m_iGlowIndex);
- DWORD GlowPointer = Mem->Read<DWORD>(Mem->ClientDLL_Base + m_dwGlowObject);
- if (EntityBase == NULL)
- break;
- if (
- (
- Mem->Read<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x4))) == TR &&
- Mem->Read<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x8))) == TG &&
- Mem->Read<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0xC))) == TB &&
- Mem->Read<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x10))) == 1.f &&
- Mem->Read<BOOL>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x24))) == true &&
- Mem->Read<BOOL>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x25))) == false
- )
- ||
- (
- Mem->Read<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x4))) == CTR &&
- Mem->Read<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x8))) == CTG &&
- Mem->Read<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0xC))) == CTB &&
- Mem->Read<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x10))) == 1.f &&
- Mem->Read<BOOL>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x24))) == true &&
- Mem->Read<BOOL>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x25))) == false
- )
- )
- break;
- if (GetDormant(EntityBase) == true || GetTeamNum(EntityBase) == false)
- continue;
- else if (GetTeamNum(GetLocalPlayer()) != GetTeamNum(EntityBase))
- switch (GetTeamNum(EntityBase)) {
- case 2: //If entity team is T
- Mem->Write<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x4)), TR);
- Mem->Write<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x8)), TG);
- Mem->Write<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0xC)), TB);
- Mem->Write<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x10)), 1.f);
- Mem->Write<BOOL>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x24)), true);
- Mem->Write<BOOL>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x25)), false);
- break;
- case 3: //If entity team is CT
- Mem->Write<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x4)), CTR);
- Mem->Write<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x8)), CTG);
- Mem->Write<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0xC)), CTB);
- Mem->Write<float>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x10)), 1.f);
- Mem->Write<BOOL>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x24)), true);
- Mem->Write<BOOL>((GlowPointer + ((EntityGlowIndex * 0x38) + 0x25)), false);
- break;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement