Code:
#include <windows.h>
#include "stdafx.h"
//Addys Here
#define LTCAddy 0x3785435C
#define AltLTC 0x46F670
#define RECOIL1 0x3745FA90
#define RECOIL2 0x37232A69
#define RECOIL3 0x3745FAA4
#define RECOIL4 0x3745FAA7
#define RECOIL5 0x3745FAB0
#define RELOAD 0x374AB714
#define WALLS 0x5721BA
//Defines
void __cdecl PushToConsole (const char* szCommand )
{
HMODULE hMod = GetModuleHandleA("CShell.dll");
if(hMod == NULL)
return;
int* ltClientAddr = (int*) LTCAddy;
typedef int (*ptc_t)(const char *);
ptc_t ptc = *(ptc_t*) (*ltClientAddr + 0x208);
ptc(szCommand);
}
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 Iloveflameswor10()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void main(void)
{
while (!Iloveflameswor10()){
Sleep(20);
}
bool NX = false;
bool spread = false;
bool speed = false;
bool Recoil = false;
bool activate = false;
bool reload = false;
while(true){
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");
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;
}
}
if(GetAsyncKeyState(VK_NUMPAD6)<0){ //reload
if (reload){
Memoria((LPVOID)(RELOAD), "\x0F\x84\xB1\x01\x00\x00", 6);
}else{
Memoria((LPVOID)(RELOAD), "\x90\x90\x90\x90\x90\x90", 6);
}
}
if(GetAsyncKeyState(VK_MENU)<0){ //fly
PushToConsole("PlayerGravity 800");
}else{
PushToConsole("PlayerGravity -800");
}
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 Kallisti\n" "If you see this. The hack has been injected", "Kallisti's hotkey hack", MB_YESNO| MB_ICONWARNING);
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
Thank me