Hack.Addresses. LTClient = Hack.Addresses.FindPattern((DWORD)GetModuleHandle(L"Engine.exe"), 0x4BE000, (PBYTE)"\x8B\x44\x24\x04\x50\x68\x00\x00\x00\x00\xE8\x00\x00\x00\x00\x83\xC4\x08\xC3\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\x8B\xC1\x33\xC9", "xxxxxx????x????xxxxxxxxxxxxxxxxxxxxx" );
/////////////////////////////////////////
typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
class cMisc{
public:
int WritePrivateProfileIntW(LPCTSTR lpAppName, LPCTSTR lpKeyName, int nInteger, LPCTSTR lpFileName);//Write values, not strings
int WritePrivateProfileIntA(LPCSTR lpAppName, LPCSTR lpKeyName, int nInteger, LPCSTR lpFileName);//Write values, not strings
char *GetFrameRate();//Current FPS, NEED Globals
char *Fontname;//The Fontname
char *Path;//The SafePath
void GetMouse(POINT &Mouse);//Convert to the Local MousePosition
void MemPos();
void HEXMemory(DWORD address, BYTE* val, int bytes);//Edit the BYTES of an address
void SearchAddies();//Search for addies
void HackIt(int sleep);//Normal hack void, best value is 250
void PermaHack(LPDIRECT3DDEVICE9 pDevice);//For RCC Hacks and some stuff
void ConvertToKey(KEY &Key);//Convert an integer to the value of the pressed Key
void SetUp();//Set all by startup(Not D3D)
void SetUp3D();//Set all by startup(D3D Only)
void Log(char *fmt,...);//Log something to C:\The.log
RunConsoleCommand_t RunConsoleCommand;//Run Commands to the Console
char* Encrypt(const char* text);
char* Decrypt(const char* text);
int GetRandomNumber(UINT MinValue,UINT MaxValue);
};
//////////////////////////////////////
void cMisc::SetUp()
{
Hack.Misc. RunConsoleCommand = (RunConsoleCommand_t)Hack.Addresses. LTClient;
//...
}
///////////////////////////////////
void cMisc::PermaHack(LPDIRECT3DDEVICE9 pDevice)
{
if(Hack.Readys.IsIngame())
Hack.Misc. RunConsoleCommand("ShowFPS");
//...
}
////////////////////////////////
Ur_Present_or_EndScene_Function(LPDIRECT3DDEVICE9 pDevice)
{
Hack.Misc.PermaHack(pDevice);
}
