All pastes #943370 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-03-15 05:42 UTC
rendered paste body
#include <windows.h>
#include <fstream>
#include <list>
#include "engine/wrect.h"
#include "engine/cl_dll.h"
#include "engine/pmtrace.h"
#include "engine/triangleapi.h"
#include "engine/r_studioint.h"
#include "engine/studio.h"
#include "engine/pm_defs.h"
#include "common/ref_params.h"
#include "common/screenfade.h"
#include "common/event_api.h"
#include "common/com_model.h"
#include "parsemsg.h"
#include "aimbot.h"
#include "attack.h"
#include "playeritems.h"
#include "bind.h"
#include "opengl.h"
#include "interpreter.h"
#include "client.h"
#include "nospread.h"
#include "eventhook.h"
#include "sound.h"
#include "font.h"
#include "console.h"
#include "usermessages.h"

#ifndef M_PI 
#define M_PI 3.14159265
#endif
//===================================================================================
struct cl_enginefuncs_s gEngfuncs;
cl_enginefuncs_s *pEngfuncs = pEngfuncs;
engine_studio_api_t gEngstudio;
engine_studio_api_t* pgEngstudio=0;
engine_studio_api_s *pEngstudio = pEngstudio;
DWORD *slots = slots;
/*double* globalTime = (double*)0x0282C820;*/

//YOUR SHIT IS RIGHT HERE SIR

bool bDataCompare(const BYTE* pData, const BYTE* bMask, const char* pszMask)
{
	for(;*pszMask;++pszMask,++pData,++bMask)
	if(*pszMask=='x' && *pData!=*bMask )
		return false;
	return (*pszMask)==0;
}

DWORD dwFindPattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * pszMask)
{
	for(DWORD i=0; i < dwLen; i++)
		if( bDataCompare( (BYTE*)( dwAddress+i ),bMask,pszMask ) )
			return ( DWORD )( dwAddress + i );

	return 0;
}

 // Alternative Speed ===================================================================================
BYTE* bSpeed_Sig = (BYTE*)"\x00\x00\x24\x40\x00\x00\x00\x00\x00\x40\x8F\x40\x00\x40\x9C\x46";
DWORD dwSpeed = dwFindPattern(0x01E00000, 0x0100000, bSpeed_Sig, "xxxxxxxxxxxxxxxx");
dwSpeed += 0x4;
double alt_speed = ( double* )dwSpeed;
// End Alternative Speed ===============================================================================