I am using combine base v3 mine problem is every time I turn on No Recoil and other address hacks it crashes mine game but the PTC hacks does not crash mine game.
here is the source.
Code:
typedef bool (*IsConnected_t)(void);
bool IsIngame()
{
DWORD* LTBase = (DWORD*) 0x3781BE50;
IsConnected_t pConnected = *(IsConnected_t*)(*LTBase + 0x8C);
return pConnected();
}
void WINAPIV RunConsoleCommand( const char* cmd )
{
_asm
{
PUSH cmd
MOV EAX, 0x485E10
CALL EAX
ADD ESP, 0x4
}
}
void cHacks::RenderHacks(LPDIRECT3DDEVICE9 Device)//Renders your hacks
{
if(IsIngame())
{
switch ( Hack.cross ) //Draws Simple crosshair when Hack.cross equals the case
{
case 1:
Tools.xhair(Device, Red);//Red Crosshair FTW
break;
case 2:
Tools.xhair(Device, Blue);//Blue GAY!!!
break;
case 3:
Tools.xhair(Device, Green);
break;
}
if(IsIngame())
{
if(Hack.test1)
{
RunConsoleCommand("SkelModelStencil 1" );
}else{
RunConsoleCommand("SkelModelStencil 0" );
}
}
if(IsIngame())
{
if(Hack.test2)
{
RunConsoleCommand("PerturbRotationEffect 0.000000");
RunConsoleCommand("PerturbIncreaseSpeed 0.000000");
RunConsoleCommand("PerturbWalkPercent 0.000000");
RunConsoleCommand("PerturbFiringIncreaseSpeed 0.000000");
}else{
RunConsoleCommand("PerturbRotationEffect 3.000000");
RunConsoleCommand("PerturbIncreaseSpeed 3.000000");
RunConsoleCommand("PerturbDecreaseSpeed 9.000000");
RunConsoleCommand("PerturbWalkPercent 0.500000");
}
}
if(IsIngame())
{
if(Hack.test3)
{
RunConsoleCommand("FogEnable 0");
}else{
if(IsIngame())
{
RunConsoleCommand("FogEnable 1");
}
}
if(IsIngame())
{
switch(Hack.test4)
{
case 0:
RunConsoleCommand("BaseMoveAccel 3000.000000");
RunConsoleCommand("StartAccel 500.000000");
RunConsoleCommand("MaxAccel 3000.000000");
RunConsoleCommand("AccelInc 6000.000000");
RunConsoleCommand("WalkVel 70.000000");
RunConsoleCommand("FRunVel 285.000000");
RunConsoleCommand("BRunVel 285.000000");
RunConsoleCommand("SRunVel 285.000000");
break;
case 1:
RunConsoleCommand("BaseMoveAccel 1000.000000");
RunConsoleCommand("StartAccel 1000.000000");
RunConsoleCommand("MaxAccel 1000.000000");
RunConsoleCommand("AccelInc 1000.000000");
RunConsoleCommand("WalkVel 1000.000000");
RunConsoleCommand("FRunVel 1000.000000");
RunConsoleCommand("BRunVel 1000.000000");
RunConsoleCommand("SRunVel 1000.000000");
break;
case 2:
RunConsoleCommand("BaseMoveAccel 2000.000000");
RunConsoleCommand("StartAccel 2000.000000");
RunConsoleCommand("MaxAccel 2000.000000");
RunConsoleCommand("AccelInc 2000.000000");
RunConsoleCommand("WalkVel 2000.000000");
RunConsoleCommand("FRunVel 2000.000000");
RunConsoleCommand("BRunVel 2000.000000");
RunConsoleCommand("SRunVel 2000.000000");
break;
case 3:
RunConsoleCommand("BaseMoveAccel 3000.000000");
RunConsoleCommand("StartAccel 3000.000000");
RunConsoleCommand("MaxAccel 3000.000000");
RunConsoleCommand("AccelInc 3000.000000");
RunConsoleCommand("WalkVel 3000.000000");
RunConsoleCommand("FRunVel 3000.000000");
RunConsoleCommand("BRunVel 3000.000000");
RunConsoleCommand("SRunVel 3000.000000");
break;
case 4:
RunConsoleCommand("BaseMoveAccel 4000.000000");
RunConsoleCommand("StartAccel 4000.000000");
RunConsoleCommand("MaxAccel 4000.000000");
RunConsoleCommand("AccelInc 4000.000000");
RunConsoleCommand("WalkVel 4000.000000");
RunConsoleCommand("FRunVel 4000.000000");
RunConsoleCommand("BRunVel 4000.000000");
RunConsoleCommand("SRunVel 4000.000000");
break;
case 5:
RunConsoleCommand("BaseMoveAccel 5000.000000");
RunConsoleCommand("StartAccel 5000.000000");
RunConsoleCommand("MaxAccel 5000.000000");
RunConsoleCommand("AccelInc 5000.000000");
RunConsoleCommand("WalkVel 5000.000000");
RunConsoleCommand("FRunVel 5000.000000");
RunConsoleCommand("BRunVel 5000.000000");
RunConsoleCommand("SRunVel 5000.000000");
break;
case 6:
RunConsoleCommand("BaseMoveAccel 6000.000000");
RunConsoleCommand("StartAccel 6000.000000");
RunConsoleCommand("MaxAccel 6000.000000");
RunConsoleCommand("AccelInc 6000.000000");
RunConsoleCommand("WalkVel 6000.000000");
RunConsoleCommand("FRunVel 6000.000000");
RunConsoleCommand("BRunVel 6000.000000");
RunConsoleCommand("SRunVel 6000.000000");
break;
case 7:
RunConsoleCommand("BaseMoveAccel 7000.000000");
RunConsoleCommand("StartAccel 7000.000000");
RunConsoleCommand("MaxAccel 7000.000000");
RunConsoleCommand("AccelInc 7000.000000");
RunConsoleCommand("WalkVel 7000.000000");
RunConsoleCommand("FRunVel 7000.000000");
RunConsoleCommand("BRunVel 7000.000000");
RunConsoleCommand("SRunVel 7000.000000");
break;
case 8:
RunConsoleCommand("BaseMoveAccel 8000.000000");
RunConsoleCommand("StartAccel 8000.000000");
RunConsoleCommand("MaxAccel 8000.000000");
RunConsoleCommand("AccelInc 8000.000000");
RunConsoleCommand("WalkVel 8000.000000");
RunConsoleCommand("FRunVel 8000.000000");
RunConsoleCommand("BRunVel 8000.000000");
RunConsoleCommand("SRunVel 8000.000000");
break;
case 9:
RunConsoleCommand("BaseMoveAccel 9000.000000");
RunConsoleCommand("StartAccel 9000.000000");
RunConsoleCommand("MaxAccel 9000.000000");
RunConsoleCommand("AccelInc 9000.000000");
RunConsoleCommand("WalkVel 9000.000000");
RunConsoleCommand("FRunVel 9000.000000");
RunConsoleCommand("BRunVel 9000.000000");
RunConsoleCommand("SRunVel 9000.000000");
break;
case 10:
RunConsoleCommand("BaseMoveAccel 10000.000000");
RunConsoleCommand("StartAccel 10000.000000");
RunConsoleCommand("MaxAccel 10000.000000");
RunConsoleCommand("AccelInc 10000.000000");
RunConsoleCommand("WalkVel 10000.000000");
RunConsoleCommand("FRunVel 10000.000000");
RunConsoleCommand("BRunVel 10000.000000");
RunConsoleCommand("SRunVel 10000.000000");
break;
}
}
if(IsIngame())
{
switch(Hack.test5)
{
case 0:
RunConsoleCommand("JumpVel 330.000000");
break;
case 1:
RunConsoleCommand("JumpVel 100.000000");
break;
case 2:
RunConsoleCommand("JumpVel 200.000000");
break;
case 3:
RunConsoleCommand("JumpVel 300.000000");
break;
case 4:
RunConsoleCommand("JumpVel 400.000000");
break;
case 5:
RunConsoleCommand("JumpVel 500.000000");
break;
case 6:
RunConsoleCommand("JumpVel 600.000000");
break;
case 7:
RunConsoleCommand("JumpVel 700.000000");
break;
case 8:
RunConsoleCommand("JumpVel 800.000000");
break;
case 9:
RunConsoleCommand("JumpVel 900.000000");
break;
case 10:
RunConsoleCommand("JumpVel 1000.000000");
break;
}
}
if(IsIngame())
{
if(Hack.test6)
{
if( GetAsyncKeyState( VK_SPACE )<0)
RunConsoleCommand( "PlayerGravity -800" );
}else{
if(IsIngame())
{
RunConsoleCommand( "PlayerGravity 800" );
}
}
if(IsIngame())
{
if(Hack.test7)
{
RunConsoleCommand("ShowFps 1");
}else{
RunConsoleCommand("ShowFps 0");
}
}
if(IsIngame())
{
if(Hack.test8)
{
memcpy((LPVOID)(0x3746F630),"x90\x90\x90",3);
memcpy((LPVOID)(0x3745F489),"x90\x90\x90",3);
memcpy((LPVOID)(0x3746F644),"x90\x90\x90",3);
memcpy((LPVOID)(0x3746F647),"x90\x90\x90",3);
memcpy((LPVOID)(0x3746F650),"x90\x90\x90",3);
}else{
memcpy((LPVOID)(0x3746F630),"xD8\x66\x58",3);
memcpy((LPVOID)(0x3745F489),"xD9\x46\x54",3);
memcpy((LPVOID)(0x3746F644),"xD9\x5E\x58",3);
memcpy((LPVOID)(0x3746F647),"xD9\x46\x4C",3);
memcpy((LPVOID)(0x3746F650),"xD9\x5E\x4C",3);
}
}
if(IsIngame())
{
if(Hack.test9)
{
memcpy((LPVOID)(0x374BBB79),"x90\x90\x90\x90\x90\x90",3);
memcpy((LPVOID)(0x374BBEF9),"x90\x90\x90\x90\x90\x90",3);
}else{
memcpy((LPVOID)(0x374BBB79),"x8B\x80\xC8\x02\x00\x00",3);
memcpy((LPVOID)(0x374BBEF9),"x8B\x80\xC8\x02\x00\x00",3);
}
}
if(IsIngame())
{
if(Hack.test10)
{
memcpy((LPVOID)(0x374B65D6),"x90\x90\x90",3);
}else{
memcpy((LPVOID)(0x374B65D6),"x0F\x94\xC0",3);
}
}
if(IsIngame())
{
if(Hack.test11)
{
RunConsoleCommand("ActivationDistance 1000000000");
}else{
RunConsoleCommand("ActivationDistance 100");
}