// test.cpp : Definiert die exportierten Funktionen für die DLL-Anwendung.
//
#include "stdafx.h"
#include <Windows.h>
#include <stdio.h>
#include "Addresses.h"
void HackFunctions()
{
for(;

{
DWORD Server = *(DWORD*)( ADR_ServerPointer );
DWORD Player = *(DWORD*)( ADR_PlayerPointer );
/******************************[ AntiKick ]******************************/
{
if( Player != 0 )
{
*(BYTE*)( Server + OFS_AntiKick ) = 0;
}
}
/******************************[ Bandages ]******************************/
{
if( Player != 0 )
{
*(BYTE*)( ADR_Bandages ) = 1;
}
}
/*****************************[ QuickRepair ]****************************/
{
if( Player != 0 )
{
*(DWORD*)( Player + OFS_FastRepair ) = 9999;
}
}
/*****************************[ Fast Reload ]****************************/
{
if( Player != 0 )
{
*(BYTE*)( Server + OFS_FastReloadPX ) = 1;
*(float*)( ADR_FastReload ) = 9999;
}
}
/***************************[ Extra Clip 1&2 ]***************************/
{
if( Player != 0 )
{
*(BYTE*)( ADR_ExtraAmmo1 ) = 1;
*(BYTE*)( ADR_ExtraAmmo2 ) = 1;
}
}
/******************************[ 5th Slot ]******************************/
{
if( Player != 0 )
{
*(BYTE*)( Server + OFS_5thSlot ) = 1;
}
}
/***************************[ Ladder Quickly ]***************************/
{
if( Player != 0 )
{
*(double*)( ADR_LadderQuickly ) = 200;
}
else
{
*(double*)( ADR_LadderQuickly ) = 40;
}
}
/****************************[ Player Speed ]****************************/
{
if( Player != 0 )
{
*(double*)( ADR_Speed ) = 350;
}
}
/******************************[ Headshots ]******************************/
{
if( Player != 0 )
{
if( GetAsyncKeyState( VK_RBUTTON ))
{
*(double*)( ADR_BoneShot ) = 1235;
}
else
{
*(double*)( ADR_BoneShot ) = 1237;
}
}
}
/********************************[ Scope ]********************************/
{
if( Player != 0 )
{
if( GetAsyncKeyState( VK_RBUTTON ))
{
*(DWORD*)( ADR_Scope ) = 1;
}
else
{
*(DWORD*)( ADR_Scope ) = 5;
}
}
}
/****************************[ SuperNoSpread ]****************************/
{
if( Player != 0 )
{
*(double*)( ADR_SuperNoSpread ) = 0;
}
else
{
*(double*)( ADR_SuperNoSpread ) = 5;
}
}
/******************************[ NoRecoil ]******************************/
{
if( Player != 0 )
{
*(float*)( Player + OFS_NoRecoil1 ) = 0;
*(float*)( Player + OFS_NoRecoil2 ) = 0;
*(float*)( Player + OFS_NoRecoil3 ) = 0;
}
}
/******************************[ SuperJump ]*****************************/
{
if( Player != 0 )
{
if( GetAsyncKeyState( VK_CONTROL ))
{
*(float*)( Player + OFS_Z ) = 2500;
}
}
}
/***************************[ No Fall Damage ]***************************/
{
if( Player != 0 )
{
*(float*)( Player + OFS_NoFallDamage ) = -999999;
}
}
Sleep(100);
}
}
BOOL WINAPI DllMain(HINSTANCE hModule,DWORD dwReason,LPVOID lpvReserved)
{
if( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(0,0,(LPTHREAD_START_ROUTINE)HackFunct ions,0,0, 0);
}
return true;
}