
#include<windows.h>
#include<iostream>
using namespace std;
#define Gernades ((i==6)||(i==7)||(i==8)||(i==64)||(i==100)||(i==126)||(i==135)||(i==209)||(i==210)||(i==240)||(i==263)||(i==272)||(i==338)||(i==382)||(i==383)||(i==384))
DWORD CShellBase = (DWORD)GetModuleHandleA("CShell.dll");
void main() {
Sleep(1000);
bool grenadedemage = true;
bool respwn = true;
bool nofall = true;
bool oneshot = true;
if(grenadedemage) {
for(int i=0 ; i<445 ; i++)
{
if(Gernades)
*(float*)( (*(DWORD*)((*(DWORD*)(CShellBase+0x0090A4B8))+(4*i))) + 0x0754) = 0 ; // nonadedemage
}
if(oneshot) {
for(int i=0 ; i<445 ; i++)
*(float*)( (*(DWORD*)((*(DWORD*)(CShellBase+0x0090A4B8))+(4*i))) + 0x0754) = FLT_MAX ; // oneshot kill
}
if(nofall) {
*(float*)( (*(DWORD*)(CShellBase+0x0090A4A0))+0x04 ) = 0; // no fall
}
if(respwn) {
memcpy((LPVOID)(CShellBase+0x003A30B),(LPBYTE)"\x90\x90",2); // instant respawn
}
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) {
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH ) {
MessageBoxA(0, "CrossFire Public Hack by GER-Domi.", "CrossFire USA HACK", 0);
}
return true;
}
