Code:
/* - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* - - - - - CODE FIXED BY PhY'z / Adri308 - - - - - - */
/* - - - - - - - - PolyMeme vSomething - - - - - - - - */
/* - - - - - - - - - DATE: 1109/2015 - - - - - - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* - - DO NOT REMOVE THIS! ELSE AT LEAST INCLUDE - - - */
/* - - - - CREDITS TO PhY'z && WasserEsser - - - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* - - - - www.***********.com / www.MPGH.net - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* HEADERS */
#include "ProcMem.h"
#include "offsets.h"
/* INCLUDE */
#include <Windows.h>
#include <TlHelp32.h>
#include <iostream>
using namespace std;
/* DEFINE FLAG'S */
#define Pressed 0x8000
#define FL_ON_GROUND 257
/* DEFINE MEMORY MANAGER */
ProcMem Meme;
/* PRE-CALL FUNCTION'S */
void start();
void data();
void keys();
void radar();
void ESPRadar();
void bhop();
void noflash();
void autopistol();
/* ACTIVATION BOOL */
bool eON = false, aON = false, bON = false, fON = false, rON = false;
/* START CONSOLE */
void main()
{
/* CONSIDERATIONS */
cout << "\"Made\" by HitByParkedCar -> FIXED BY PhY'z" << endl;
/* FIND CSGO */
while (!Meme.Process("csgo.exe")) {
Sleep(500);
}
/* ATTACH CLIENT & RENAME CONSOLE */
Client = Meme.Module("client.dll");
TargetWindow = FindWindow(NULL, "Counter-Strike: Global Offensive");
SetConsoleTitle("PolyMeme");
start();
/* INFINITY LOOP BOOL */
while (true)
{
data();
keys();
if (bON)
bhop();
if (eON || rON)
ESPRadar();
if (aON)
autopistol();
if (fON)
noflash();
Sleep(5);
}
}
/* SYSTEM START SAYING */
void start()
{
system("cls"); /* CLEAR CONSOLE -> WRONG WAY TO BE MADE! */
cout << "---------------------------------" << endl;
cout << "----------- PolyMeme ------------" << endl;
cout << "---------------------------------" << endl;
cout << "" << endl;
cout << "F1 ESP: " << eON << endl;
cout << "F2 Team ESP: " << TeamESP << endl;
cout << "F3 Enemy ESP: " << EnemyESP << endl;
cout << "F4 Autopistol: " << aON << endl;
cout << "F6 Bunnyhop: " << bON << endl;
cout << "F8 Radar: " << rON << endl;
cout << "Insert NoFlash: " << fON << endl;
}
/* --------------- */
/* HOTKEYS */
/* --------------- */
void keys()
{
[swap_blocks]
[block]
if (GetAsyncKeyState(VK_F2) & Pressed) /* GET IF KEY: f2 IS PRESSED */
{
TeamESP = !TeamESP;
start();
}
[/ block]
[block]
if (GetAsyncKeyState(VK_F6) & Pressed) /* GET IF KEY: f6 IS PRESSED */
{
bON = !bON;
start();
}
[/ block]
[block]
if (GetAsyncKeyState(VK_F8) & Pressed) /* GET IF KEY: f8 IS PRESSED */
{
rON = !rON;
start();
}
[/ block]
[block]
if (GetAsyncKeyState(VK_F3) & Pressed) /* GET IF KEY: f3 IS PRESSED */
{
EnemyESP = !EnemyESP;
start();
}
[/ block]
[block]
if (GetAsyncKeyState(VK_F4) & Pressed) /* GET IF KEY: f4 IS PRESSED */
{
aON = !aON;
start();
}
[/ block]
[block]
if (GetAsyncKeyState(VK_F1) & Pressed) /* GET IF KEY: f1 IS PRESSED */
{
eON = !eON;
start();
}
[/ block]
[block]
if (GetAsyncKeyState(VK_INSERT) & Pressed) /* GET IF KEY: INS IS PRESSED */
{
fON = !fON;
start();
}
[/ block]
[/ swap_blocks]
}
/* --------------- */
/* LOCAL DATA */
/* --------------- */
void data()
{
LocalBase = Meme.Read<DWORD>(Client + LocalPlayer); /* CLIENT LOCAL BASE */
[swap_lines]
GlowPointer = Meme.Read<DWORD>(Client + m_dwGlowObject); /* POINTER TO LOCAL PLAYER GLOW VIEW */
FlashMaxAlpha = Meme.Read<float>(LocalBase + flashMaxAlpha); /* GET IF FLASHED */
MyTeam = Meme.Read<int>(LocalBase + m_iTeamNum); /* GET LOCAL TEAM */
[/ swap_lines]
}
/* --------------- */
/* GLOW/RADAR */
/* --------------- */
struct GlowStruct
{
float r; /* RED */ /* MAXIMUM 1.0f | MINIMUM 0.0f */
float g; /* GREEN */ /* MAXIMUM 1.0f | MINIMUM 0.0f */
float b; /* BLUE */ /* MAXIMUM 1.0f | MINIMUM 0.0f */
float a; /* THICKNESS */ /* MAXIMUM 1.0f | MINIMUM 0.0f */
bool rwo; /* RenderWhenOccluded */
bool rwuo; /* RenderWhenUnoccluded */
};
void DrawGlow(int GlowIndex, GlowStruct Color)
{
Meme.Write<float>((GlowPointer + ((GlowIndex * 0x34) + 0x4)), Color.r); /* SET FLOAT VALUE FOR RED */
Meme.Write<float>((GlowPointer + ((GlowIndex * 0x34) + 0x8)), Color.g); /* SET FLOAT VALUE FOR GREEN */
Meme.Write<float>((GlowPointer + ((GlowIndex * 0x34) + 0xC)), Color.b); /* SET FLOAT VALUE FOR BLUE */
Meme.Write<float>((GlowPointer + ((GlowIndex * 0x34) + 0x10)), Color.a); /* SET FLOAT VALUE FOR THICKNESS */
Meme.Write<bool>((GlowPointer + ((GlowIndex * 0x34) + 0x24)), Color.rwo);
Meme.Write<bool>((GlowPointer + ((GlowIndex * 0x34) + 0x25)), Color.rwuo);
}
GlowStruct GetTeamColor(); /* DEFINE WHICH IS TEAM COLOR */
GlowStruct GetEnemyColor(); /* DEFINE WHICH IS ENEMY COLOR */
/* SPOTTED */
[swap_lines]
GlowStruct CBluee = { 0.f, 0.f, 0.4f, 1.f, true, false };
GlowStruct CRedd = { 0.4f, 0.f, 0.f, 1.f, true, false };
GlowStruct CYelloww = { 0.4f, 0.4f, 0.f, 1.f, true, false };
GlowStruct COrangee = { 1.f, 0.46f, 0.f, 1.f, true, false };
GlowStruct CGreenn = { 0.f, 0.4f, 0.f, 1.f, true, false };
[/swap_lines]
/* NOT SPOTTED */
[swap_lines]
GlowStruct CGreen = { 0.f, 0.4f, 0.f, 0.7f, true, false };
GlowStruct CYellow = { 0.4f, 0.4f, 0.f, 0.7f, true, false };
GlowStruct CRed = { 0.4f, 0.f, 0.f, 0.7f, true, false };
GlowStruct CBlue = { 0.f, 0.f, 0.4f, 0.7f, true, false };
GlowStruct COrange = { 1.f, 0.46f, 0.f, 0.7f, true, false };
[/swap_lines]
/* START RADAR/GLOW THREAD */
void ESPRadar()
{
for (int g = 0; g < 63; g++) /* LOOP START */
{
currentplayer = Meme.Read<DWORD>(Client + EntityList + ((g - 1) * 16)); /* READ ENTITY DATA FROM LOOP */
currentplayerdormant = Meme.Read<bool>(currentplayer + isDormant); /* CHECK IF IS DORMANT */
HealthBasedESP = Meme.Read<int>(currentplayer + 0xFC); /* READ ENTITY HP */
/* WRONG WAY TO DO IT, IF A TEAMMATE SPOT A ENEMY IT WILL DISPLAY AS SPOTTED, YOU SHOULD YOU BSPOTTED MASK! */
spotted = Meme.Read<bool>(currentplayer + m_bSpotted); /* READ BSPOTTED */
/* RADAR */
if (rON)
if (!spotted && !currentplayerdormant)
Meme.Write<int>(currentplayer + m_bSpotted, 1); /* WRITE SPOTTED IF NOT SPOTTED/DORMANT */
/* ESP */
if (eON)
if (!currentplayerdormant) /* IF NOT DORMANT */
{
currentplayerglowindex = Meme.Read<int>(currentplayer + m_iGlowIndex); /* READ ENTITY GLOW INDEX */
currentplayerteam = Meme.Read<int>(currentplayer + m_iTeamNum); /* READ ENTITY TEAM */
/* DISPLAY TEAM */
if (currentplayerteam == MyTeam)
DrawGlow(currentplayerglowindex, CBlue);
/* ENEMY TEAM */
if (currentplayerteam != MyTeam)
if (EnemyESP && HealthBasedESP <= 100 && HealthBasedESP > 75) /* LESS OR EQUAL 100 OR MORE THAN 75 */
{
if (!spotted)
DrawGlow(currentplayerglowindex, CGreen);
if (spotted)
DrawGlow(currentplayerglowindex, CGreenn);
}
else if (EnemyESP && HealthBasedESP <= 75 && HealthBasedESP > 50) /* LESS OR EQUAL 75 OR MORE THAN 50 */
{
if (!spotted)
DrawGlow(currentplayerglowindex, CYellow);
if (spotted)
DrawGlow(currentplayerglowindex, CYelloww);
}
else if (EnemyESP && HealthBasedESP <= 50 && HealthBasedESP > 25) /* LESS OR EQUAL 50 OR MORE THAN 25 */
{
if (!spotted)
DrawGlow(currentplayerglowindex, COrange);
if (spotted)
DrawGlow(currentplayerglowindex, COrangee);
}
else if (EnemyESP && HealthBasedESP <= 25 && HealthBasedESP > 0) /* LESS OR EQUAL 25 OR MORE THAN 0 */
{
if (!spotted)
DrawGlow(currentplayerglowindex, CRed);
if (spotted)
DrawGlow(currentplayerglowindex, CRedd);
}
}
}
}
/* --------------- */
/* AUTOPISTOL */
/* --------------- */
/* HERE YOU SHOULD CONSIDERING ADD TO VOID DATA(); A WEAPON CHECK AND CHECK IF THIS WEAPON IS A PISTOL INSIDE AUTOPISTOL THREAD */
void autopistol()
{
if (GetAsyncKeyState(VK_MENU) & Pressed) /* GET IF KEY: ALT IS PRESSED */
{
Meme.Write<int>(Client + attack, 1); /* +ATTACK */
Sleep(5);
Meme.Write<int>(Client + attack, 0); /* -ATTACK */
Sleep(1);
}
}
/* --------------- */
/* NOFLASH */
/* --------------- */
/* YOU SHOULD CONSIDERING CHECKING IF THE BOOL IS ON/OFF TO MAKE A ON/OFF NOFLASH */
/* 0.0f IS THE ALPHA, SO 0 = NO ALPHA, 255 = MAXIMUM ALPHA, 0 WHEN ON, 255 WHEN OFF */
void noflash()
{
if (FlashMaxAlpha > 0.1f) /* CHECK IF FLASHED */
Meme.Write<float>(LocalBase + flashMaxAlpha, 0.f); /* WRITE TO REMOVE FLASH ALPHA */
}
/* --------------- */
/* BHOP */
/* --------------- */
/* WHAT YOU DID WAS fflag = 257, THE CODE WAS READING LIKE THIS: if (fflag = 257) {} THAT MEANS if i set the 257 to fflag sucessful continue */
void bhop()
{
fflag = Meme.Read<int>(LocalBase + m_fFlags); /* READ THE FLAG */ /* FFLAG IS A BYTE NOT A INT */
if (fflag == FL_ON_GROUND) /* USE THE DEFINE YOU MADE */
if (GetAsyncKeyState(VK_SPACE) & Pressed) /* USE THE DEFINE YOU MADE */
{
Meme.Write<int>(Client + jumpoffset, 1); /* +JUMP */
Sleep(20); /* 20ms TO DON'T BUG */
Meme.Write<int>(Client + jumpoffset, 0); /* -JUMP */
}
}