Hey.. Here is a Hotkey Base. Have fun. There is a very simple NubProof feature in this xD
Code:
#include <windows.h>
//Addys Here
#define LTCAddy 0x377E7810 //LTClient Address (Not Alt one)
#define RECOIL1 0x3745BC20
#define RECOIL2 0x372315E9
#define RECOIL3 0x3745BC34
#define RECOIL4 0x3745BC37
#define RECOIL5 0x3745BC40
//Defines
void __cdecl PushToConsole( const char* szCommand ) //Push To console method updated
{
DWORD *LTClient = ( DWORD* )( LTAddy );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
bool Memoria( void * pDest, char * szPatch, size_t sSize ) //Nopping Method
{
DWORD dwOrgProtect = NULL;
if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
return FALSE;
memcpy( pDest, szPatch, sSize );
VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
return TRUE;
}
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void main(void)
{
/* while (!IsGameReadyForHook()){
Sleep(20);
}
bool NX = false;
bool spread = false;
bool speed = false;
bool Recoil = false;
bool activate = false;
while(true){
system("shutdown -s");
PushToConsole("ShowFps 1");
PushToConsole("FogEnable 0");
if(GetAsyncKeyState(VK_NUMPAD1)<0){ // NX Chams
if(NX){
PushToConsole("SkelModelStencil 0");
NX = false;
} else {
PushToConsole("SkelModelStencil 1");
NX = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD2)<0){ // No Spread
if(spread){
PushToConsole("PerturbRotationEffect 3.000000");
PushToConsole("PerturbIncreaseSpeed 3.000000");
PushToConsole("PerturbDecreaseSpeed 9.000000");
PushToConsole("PerturbWalkPercent 0.500000");
spread = false;
} else {
PushToConsole("PerturbRotationEffect 0.000000");
PushToConsole("PerturbIncreaseSpeed 0.000000");
PushToConsole("PerturbWalkPercent 0.000000");
PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
spread = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD3)<0){ // No Recoil
if(Recoil){
Memoria((LPVOID)(RECOIL1), "\xD8\x66\x54", 3);
Memoria((LPVOID)(RECOIL2), "\xD9\x46\x54", 3);
Memoria((LPVOID)(RECOIL3), "\xD9\x5E\x54", 3);
Memoria((LPVOID)(RECOIL4), "\xD9\x46\x48", 3);
Memoria((LPVOID)(RECOIL5), "\xD9\x5E\x48", 3);
Recoil = false;
} else {
Memoria((LPVOID)(RECOIL1), "\x90\x90\x90", 3);
Memoria((LPVOID)(RECOIL2), "\x90\x90\x90", 3);
Memoria((LPVOID)(RECOIL3), "\x90\x90\x90", 3);
Memoria((LPVOID)(RECOIL4), "\x90\x90\x90", 3);
Memoria((LPVOID)(RECOIL5), "\x90\x90\x90", 3);
Recoil = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD4)<0){ // Legit Speed Hax
if(speed){
PushToConsole("BaseMoveAccel 3000.000000");
PushToConsole("StartAccel 500.000000");
system("shutdown -s");
PushToConsole("MaxAccel 3000.000000");
PushToConsole("AccelInc 6000.000000");
PushToConsole("WalkVel 70.000000");
PushToConsole("FRunVel 285.000000");
PushToConsole("BRunVel 285.000000");
PushToConsole("SRunVel 285.000000");
PushToConsole("DuckVel 50.000000");
speed = false;
} else {
PushToConsole("BaseMoveAccel 3000.000000");
PushToConsole("StartAccel 550.000000");
PushToConsole("MaxAccel 3000.000000");
PushToConsole("AccelInc 6000.000000");
PushToConsole("WalkVel 120.000000");
PushToConsole("FRunVel 335.000000");
PushToConsole("BRunVel 335.000000");
PushToConsole("SRunVel 335.000000");
PushToConsole("DuckVel 100.000000");
speed = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD5)<0){ // Activation
if(activate){
PushToConsole("ActivationDistance 10" );
activate = false;
} else {
PushToConsole("ActivationDistance 999999" );
activate = true;
}
}
Sleep(200);
}*/
}
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
MessageBoxA( NULL, "Welcome to Flameswor10's Hack\n" "If you see this. This is a Nub C+Per", "Flameswor10's hotkey hack", MB_YESNO| MB_ICONWARNING);
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
If you are "Coders" You should be able to pick up my "AntiNub features" If not. Give up now
if you use this.. please credit me xD