Hi I am having a problem with my hacks. I am using Whit's base. I open up the menu, it doesn't d/c. I go in game and I turn on the hacks but they don't work, I'm not sure what I am doing wrong... I'll show you my IsIngame() and PTC function..
PTC:
Code:
void __cdecl pRunConsoleCommand(char* szVal)
{
void* vSetVar = (void*)0x4F9E00;
_asm
{
push szVal
call vSetVar
add esp, 4
}
}
IsIngame
Code:
typedef bool (*IsConnected_t)(void);
bool IsIngame()
{
DWORD* LTBase = (DWORD*)0x3781BE50; // LTCLIENT
IsConnected_t pConnected = *(IsConnected_t*)(*LTBase + 0x8C);
return pConnected();
}
Code:
HRESULT WINAPI Present(LPDIRECT3DDEVICE9 Device, CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion)
{
//Draws our menu and renders our hacks
_asm pushad;
DrawBox(95, 145, 200, frame, D3DCOLOR_ARGB(150, 0, 0, 0), Blue, Device);
Hackz.RenderHacks(Device);
Menu.Render(Device);
if(IsIngame())
{
if ( Hack.NX_Chams) {
pRunConsoleCommand("SkelModelStencil 1");
}
else {
pRunConsoleCommand("SkelModelStencil 0");
}
if ( Hack.No_Fog) {
pRunConsoleCommand("FogEnable 1");
}
else {
pRunConsoleCommand("FogEnable 0");
}
if ( Hack.No_Spread) {
pRunConsoleCommand("PerturbRotationEffect 0.000000");
pRunConsoleCommand("PerturbIncreaseSpeed 0.000000");
pRunConsoleCommand("PerturbWalkPercent 0.000000");
pRunConsoleCommand("PerturbFiringIncreaseSpeed 0.000000");
pRunConsoleCommand("PerturbRecoil 0.000000");
pRunConsoleCommand("FireMovePerturb 0.000000");
pRunConsoleCommand("ZoomedFireMoveDuckPerturb 0.000000");
pRunConsoleCommand("ZoomedFireMovePerturb 0.000000");
pRunConsoleCommand("ZoomedFireDuckPerturb 0.000000");
}
}
_asm popad;
return pPresent(Device, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
}
DWORD * FindDevice(VOID)//Finds the Device on Injection
{
DWORD Base = (DWORD)LoadLibraryW(L"d3d9.dll");
for(DWORD i = 0; i < 0x128000; i++ )
{
if ( (*(BYTE *)(Base+i+0x00))==0x00
&& (*(BYTE *)(Base+i+0x00))==0x00
&& (*(BYTE *)(Base+i+0x00))==0x00
&& (*(BYTE *)(Base+i+0x00))==0x00
&& (*(BYTE *)(Base+i+0x00))==0x00
&& (*(BYTE *)(Base+i+0x00))==0x00 )
return (DWORD *)(Base + i + 2);
}
return NULL;
}
nub proofed
Please Help!