Pattern Scanning for Dark1027's Hack

  • Автор темы Гнойный
  • Дата начала
1xbet 1xbet лучшие приватные читы
Г

Гнойный

Удалите следующие строки в Header.h
Код:
[LIST=1]
[*]#define WFPlayer 0x5F8F6A
[*]#define WFSmoke 0x5F4E39
[*]#define WFWorld 0x5F8F18
[*]#define WFFullbright 0x10AC1EB
[/LIST]
Добавьте эти две функции в Source.cpp прежде чем Hooked_DrawIndexedPrimitive
Код:
[LIST=1]
[*]BOOL bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask) {
[*]for (; *szMask; ++szMask, ++pData, ++bMask)
[*]if (*szMask == 'x' && *pData != *bMask) return 0;
[*]return (*szMask) == NULL;
[*]}
[*]DWORD FindPattern(DWORD dwdwAdd, DWORD dwLen, BYTE *bMask, char * szMask) {
[*]for (DWORD i = 0; i<dwLen; i++)
[*]if (bCompare((BYTE*)(dwdwAdd + i), bMask, szMask)) return (DWORD)(dwdwAdd + i);
[*]return 0;
[*]}
[/LIST]
Измените вашу функцию Hooked_DrawIndexedPrimitive, добавив некоторый код
Код:
[LIST=1]
[*]HRESULT WINAPI Hooked_DrawIndexedPrimitive(LPDIRECT3DDEVICE9 Device, D3DPRIMITIVETYPE PrimType, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount)
[*]{
[*]static DWORD WFPlayer, WFSmoke, WFWorld, WFFullbright;
[*]static bool gotAddrs = false;
[*]if (!gotAddrs) {
[*]WFPlayer = FindPattern(0x402000, 0x1000000, (BYTE *)"\x5f\x5e\x5d\x5b\x83\xc4\x08\xc2\x04\x00\x8b\x8d\x70\x0b\x00\x00\x8b\x01\xff\x50\x20\x89\x44\x24\x14\x85\xc0\x74\x63\x83\x78\x04\x00\x8b\x08\xc7\x44\x24\x1c\x00\x00\x00\x00\x7e\x53\x83\xc1\x18\x89\x4c\x24\x10\x8b\xff\x8b\x41\xfc", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
[*]WFSmoke = FindPattern(0x402000, 0x1000000, (BYTE *)"\x8d\x34\x9d\x00\x00\x00\x00\x83\xa7\x44\x1a\x00\x00\xfc\x80\x7c\x24\x13\x00\x74\x1b\x8b\x54\x24\x1c\x8b\x02\x8b\x04\x06\x0f\xbf\x48\x1a\xc1\xe1\x04", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
[*]WFWorld = FindPattern(0x402000, 0x1000000, (BYTE *)"\x5f\x5e\x5d\x5b\x83\xc4\x08\xc2\x04\x00\x8b\x8d\x70\x0b\x00\x00\x8b\x01\xff\x50\x1c\x8b\xc8\x85\xc9\x0f\x84\xb3\x00\x00\x00\x8b\xbd\xb0\x44\x00\x00\x03\x79\x18\x0f\xb7\x71\x1e\xb8\x56\x55\x55\x55\xf7\x69\x14\x8b\x8d\x50\x85\x00\x00\x8b\xc2", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
[*]WFFullbright = FindPattern(0x402000, 0x1000000, (BYTE *)"\x5f\x5e\x81\xc4\x38\x01\x00\x00\xc2\x04\x00\xcc\xcc\x83\xec\x74\x53\x55\x57", "xxxxxxxxxxxxxxxxxxx");
[*]gotAddrs = true;
[*]}
[*]IDirect3DVertexBuffer9* pStreamData = NULL;
[*]UINT xOffset, Stride;
[/LIST]

Скачать
 
kaspersky keys
Верх