亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? client.cpp

?? 我對他如何控制準星、顯示敵友很好奇
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
// 
// Online Game Cheats Client.dll hook
// Copyright (c) system   2001-2002
// Copyright (c) bunny771 2001-2002
// 
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
// 
// NOTE:
// GNU license doesn't cover Engine directory.
// Content of Engine directory is copyrighted (c) 1999, 2000, by Valve LLC
// and it is licensed under Valve's proprietary license (see original HL SDK).
// 

#define  WIN32_LEAN_AND_MEAN 
#include <windows.h>
#include <mmsystem.h>
#pragma warning (disable:4786) // vc++ stl "truncated browser info"
#pragma warning (disable:4244) // float to int 
#pragma warning (disable:4731) // ebp modified
#include <map>
#include <vector>
#include <list>
#undef NDEBUG
#include <assert.h>
#include "engine/wrect.h"
#include "engine/cl_dll.h"
#include "engine/cdll_int.h"
#include "engine/const.h"
#include "engine/progdefs.h"
#include "engine/eiface.h"
#include "engine/edict.h"
#include "engine/studio_event.h"
#include "engine/entity_types.h"
#include "engine/pmtrace.h" 
#include "common/ref_params.h"
#include "common/screenfade.h"
#include "common/event_api.h"
#include "common/com_model.h"
#include "misc/parsemsg.h"
#include "misc/sprites.h" 
#include "r_studioint.h"
#include "engine/triangleapi.h"
#include "engine/pm_defs.h"
#include "engine/r_efx.h"
#include "sprites.h" 
#include "common/net_api.h"
#include <time.h>
#include <gl/gl.h>
#include "stdafx.h"

using namespace std;
#include <tlhelp32.h> 
#include <fstream>
#include "cvar.h"
#include "attack.h"
#include "calcscreen.h"
#include "timehandling.h"
#include "stringfinder.h"
#include "color.h"
#include "aimbot.h"
#include "playeritems.h"
#include "bind.h"
#include "interpreter.h"
#include "client.h"
#include "menu.h"
#include "snake.h"
#include "console.h"
#include "hookqueue.h"
#include "Winamp.h"
#include "engine/studio.h"

#include "GenericPatch.h"
extern GenericPatch commandPatch;
extern GenericPatch soundPatch;
extern GenericPatch loaderPatch;
GenericPatch chasePatch;

#include "AutoMove.h"

#pragma warning (disable:4005)
#pragma warning (disable:4800)
#pragma optimize("gt",on)

#ifndef M_PI
#define M_PI		3.14159265358979323846	// matches value in gcc v2 math.h
#endif

#define OGC_VERSION "9.01"

//#define pInitialize        f_dummy6
//#define pHUD_Redraw        f_dummy2
//#define pHUD_AddEntity     f_dummy3
//#define pHUD_PlayerMove    f_dummy5
//#define pV_CalcRefdef      f_dummy7
//#define pCL_CreateMove     f_dummy8
//#define pHUD_TempEntUpdate f_dummy10
//#define pHUD_GetStudioModelInterface f_dummy11

using namespace std;
#define LOG(str)
//ofstream logfile2("c:\\tmpaxx\\call-log-hookqueue.txt");
//#define LOG(str) logfile2<<#str<<endl;

bool bDontAutoHook=false;

// hooking stuff
dllfuncs_t*            hw_client_dllfuncs   = NULL;
r_studio_interface_s*  hw_client_studio_ptr = NULL;
cl_enginefunc_t *      client_enginefuncs   = NULL;

SCREENINFO screeninfo;

// Hostage Info Structure
struct hostage_info
{
	cl_entity_s *ent;
};

// A Global to store the engine functions
struct cl_enginefuncs_s  gEngfuncs;
struct cl_enginefuncs_s  gHookedEngfuncs;

// client.dll exports
struct dllfuncs_t  gClientExports;
struct dllfuncs_t  gHookedClientExports;

bool bIsHooked=false;

//  A Global to store the hooked engine functions
struct cl_enginefuncs_s gHookEnginefuncs;

// A Global to store the Effects API
struct efx_api_s gHookEfxApi;

// A Global to store the Studio API
engine_studio_api_t  IEngineStudio;
engine_studio_api_t* pIEngineStudio=0;

// A Global to store the local player info
local_player_info me;

// A Global for all the Players
VecPlayers vPlayers;

// A Global for all the Entities
vector<hostage_info> vEntity;

// Global for the Aiming Randomizer Class
AimingRandomizer gAimingRandomizer;

// A list of commands being blocked
StringFinder blockCommand;
// The Method of blocking used
enum { CMDBLOCK_ALL, CMDBLOCK_RELPATH };

// Rear View Mirror
// TODO: Make the name definition not be as a member
bool m_bReversed;
bool bNewFrame=false;

// should movement be stopped e.g. for shooting?
bool bStopMovement=false;

// dont draw sniper blackout if true
bool sniper=false;

// Bomb Timer Stuff
bool bBombIsPlanted=false;
float fBombPlantedTime=0;
int iC4Timer=0;

// Rounds counter
int iRounds=0;

// Blinking for Radar/Esp
StopTimer blinkTimer;
bool blinkPhase = false;

// Local Players Items
// TODO: Move into local_player_info
PlayerItems playerItems;

// Logging
ofstream commandLogFile;
bool commandLogFileOpened = false;

// HUD Message
char  gHudMessage[256]="";
StopTimer gHudTimer;

// Script Message (text ..., txt ...)
char  gHudMessage2[256]="";
StopTimer gHudTimer2;

// Scheduled Commands (later x blabla)
struct ScheduledCommand
{
	string           cmd;
	RunningStopTimer timer;
};
typedef list<ScheduledCommand> ScheduleList;
ScheduleList scheduleList;

// Nice Firing stuff
enum { FIRESEQ_INACTIVE     = 0, 
       FIRESEQ_STARTDELAY   = 1, 
	   FIRESEQ_ACTIVE       = 2,
	   FIRESEQ_RELEASEDELAY = 3 };
static bool bAttacking = false;
static bool bAttack2 = false;
static bool bPressedUse = false;
static int  nFireSequence = FIRESEQ_INACTIVE;
static bool bFireCycle  = true;

// Death Info
struct DeathInfos{
	DeathInfos():active(false) {}
	bool   active;
	float  from[3];
	float  to[3];
	string killerName;
	string weaponName;
};
DeathInfos deathInfos;
static bool bGotHeadshot=false;

// Current WeaponID  see attack.h
int   currentWeaponID=0;

// Current FOV as float and int
int    iCurrentFOV=90;
float  fCurrentFOV=90.0;

// Burst Info
BurstInfo burstInfo;

// HL.exe or CSTRIKE.exe
HANDLE hProcess=0;
// HW.dll offset
DWORD hw_dll_offset=0;
// CLIENT.dll offset
HMODULE hClientDll=0;
DWORD client_dll_offset=0;
DWORD client_dll_end=0;

// sequence info data
int Cstrike_SequenceInfo[] = {
	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0..9   
	0, 1, 2, 0, 1, 2, 0, 1, 2, 0, // 10..19 
	1, 2, 0, 1, 1, 2, 0, 1, 1, 2, // 20..29 
	0, 1, 2, 0, 1, 2, 0, 1, 2, 0, // 30..39 
	1, 2, 0, 1, 2, 0, 1, 2, 0, 1, // 40..49 
	2, 0, 1, 2, 0, 0, 0, 4, 0, 4, // 50..59 
	0, 5, 0, 5, 0, 0, 1, 1, 2, 0, // 60..69 
	1, 1, 2, 0, 1, 0, 1, 0, 1, 2, // 70..79 
	0, 1, 2, 3, 3, 3, 3, 3, 3, 3, // 80..89 
	3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 90..99 
	3
};
enum { SEQUENCE_SHOOT=1, SEQUENCE_RELOAD=2, SEQUENCE_DIE=3, SEQUENCE_THROW=4, SEQUENCE_ARM_C4=5 };
char* Cstrike_infotext[] = {"", "- PENG -", "- RELOADING -", "", "*** THROWING ***", "- ARMING C4 -" };
	


// points system
struct PointSystemEntry { char description[16]; float points; };
PointSystemEntry pointSystem[] = {
	"shoot_at_me", +600.0  , // 0
	"aim_at_me"  , +500.0  , // 1
	"visible"    , +250.0  , // 2
	"bestplayer" , +75.0   , // 3
	"arm_c4"     , +50.0   , // 4
	"behind_me"  , -250.0  , // 5
	"dist_factor", +180000.0  , // 6  // factor/distance = addvalue
	"fov_factor" , -15.0      , // 7
	"awp_bonus"  , +100.0     , // 8
	"",0.0
};

// should current Aimbot calculated view angles be used?
bool   Aimbot_active=false;

// Lock var with in min and max
#define BOUND_VALUE(var,min,max) if((var)>(max)){(var)=(max);};if((var)<(min)){(var)=(min);}

// Find the Highest Value out of a,b and c
#define MAX_VALUE(a,b,c) ( a>b? (a>c?a:(b>c?b:c)) : (b>c?b:c) )

// ====== sound data
static ColorEntry dummycolor;
class SoundMarker
{
public:
	SoundMarker() : color(&dummycolor),priority(0) {} // "snd_default"

	float origin[3];
	char  description[16];
	StopTimer timer;
	ColorEntry* color;
	int priority; // 0/1/2
};
typedef vector<SoundMarker> SoundMarkerVector;
SoundMarkerVector vecSoundMarker(65);
int soundMarkerCurrentIndex = 0;

// ====== directories
char ogcdir [256]=""; // set in dllmain
char hldir  [256]=""; // set in dllmain

// beamindex (sprites/beam.spr)
int beamindex = 0;

// mod info
enum{ MOD_UNKNOWN=0,MOD_CSTRIKE=1,MOD_DOD=2 };
int mod=MOD_UNKNOWN; 

//========================================================================================
string getOgcDirFile(const char* basename)
{
	if(strstr(basename,"..")){ return ":*?\\/<>\""; }
	string ret = ogcdir;
	return (ret+basename);
}

//========================================================================================
void deleteMultipleFiles(const char* basedir, const char* wildcard)
{
	WIN32_FIND_DATA findData;
	HANDLE hFindFile;
	char* fileName = findData.cFileName;

	string searchPattern = basedir;
	searchPattern += wildcard;
	
	hFindFile = FindFirstFile( searchPattern.c_str(), &findData );
	if( hFindFile == INVALID_HANDLE_VALUE){ return; }
	do{
		string fullname = basedir;
		fullname += fileName;
		DeleteFile(fullname.c_str());
	} while( FindNextFile(hFindFile,&findData) );
}

//========================================================================================
void cleanupWindowsTempFiles()
{
	//bool IsNT = ((HIWORD(::GetVersion()) & 0x8000) == 0); 

	//char dir[400];
	//GetWindowsDirectory(dir,390);
	//char* pastepos = dir+strlen(dir);
	//
	//if(IsNT)
	//{
	//	strcpy(pastepos,"\\Prefetch\\");
	//	deleteMultipleFiles(dir,"ogc*.*");
	//	deleteMultipleFiles(dir,"newldr*.*");
	//}
	//else
	//{
	//	strcpy(pastepos,"\\applog\\");
	//	deleteMultipleFiles(dir,"*.*");
	//	deleteMultipleFiles(dir,"*.*");
	//}
}

//========================================================================================
inline float GetPseudoDistance(const float* const pos1, const float* const pos2)
{
	return
		fabs(pos1[0]-pos2[0])+
		fabs(pos1[1]-pos2[1])+
		fabs(pos1[2]-pos2[2]);
}

//========================================================================================
inline float GetDistanceFrom(float* pos)
{	
	register double a = pos[0] - me.pmEyePos[0];
	register double b = pos[1] - me.pmEyePos[1];
	register double c = pos[2] - me.pmEyePos[2];
	return sqrt(a*a + b*b + c*c);
}

//========================================================================================
bool __fastcall CalcScreen(float *origin,float *vecScreen)
{
	return NewCalcScreen(origin, vecScreen);
}


//========================================================================================
void gDrawFilledBoxAtLocation( float* origin, DWORD color, int radius)
{
	float vecScreen[2]; 
	if( !CalcScreen(origin, vecScreen) ) { return; }

	int red   = (color>>24);
	int green = (color>>16)&0xFF;
	int blue  = (color>>8)&0xFF;
	int alpha = (color)&0xFF;
	int radius2 = radius<<1;

	gEngfuncs.pfnFillRGBA(vecScreen[0]-radius,vecScreen[1]-radius,radius2,radius2,red,green,blue,alpha);
}

//========================================================================================
void SPR_Draw (int frame, int x, int y, const wrect_t *prc)
{
	if (!sniper) gEngfuncs.pfnSPR_Draw (frame, x, y, prc);
}

//========================================================================================
void SPR_DrawHoles (int frame, int x, int y, const wrect_t *prc)
{
	if (!sniper) gEngfuncs.pfnSPR_DrawHoles (frame, x, y, prc);
}


//========================================================================================
HSPRITE sprset_hsprite = 0;
int     sprset_r, sprset_g, sprset_b;
extern bool oglSubtractive;
void SPR_DrawAdditive( int frame, int x, int y, const wrect_t *prc )
{
	if(cvar.hud) gEngfuncs.pfnSPR_Set (sprset_hsprite,sprset_r,sprset_g,sprset_b);
	gEngfuncs.pfnSPR_DrawAdditive(frame,x,y,prc);

}

//========================================================================================
void FillRGBA( int x, int y, int width, int height, int r, int g, int b, int a )
{
	if(cvar.hud)
	{
		register ColorEntry* color = colorList.get(5);
		gEngfuncs.pfnFillRGBA(x,y,width,height,color->r,color->g,color->b,a);
	} else {
		gEngfuncs.pfnFillRGBA(x,y,width,height,r,g,b,a);
	}
}
	
//========================================================================================
int	DrawCharacter( int x, int y, int number, int r, int g, int b )
{

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品视频色一区| 大尺度一区二区| 日韩片之四级片| 久久精品国产精品亚洲精品| 国产日本欧美一区二区| 欧美日韩在线直播| 国产经典欧美精品| 亚洲r级在线视频| 精品国产伦一区二区三区观看体验| 成人一级视频在线观看| 午夜久久电影网| 中文字幕久久午夜不卡| 777精品伊人久久久久大香线蕉| 国产精品1024| 视频一区国产视频| 2017欧美狠狠色| 精品婷婷伊人一区三区三| 丁香一区二区三区| 蜜桃视频一区二区三区在线观看| 中文字幕中文在线不卡住| 欧美午夜精品久久久久久超碰| 国产在线精品视频| 天天综合色天天综合| 国产日产欧美一区二区视频| 91麻豆精品国产91久久久资源速度 | 精品国产乱子伦一区| 色菇凉天天综合网| 偷拍一区二区三区| 麻豆久久一区二区| 视频一区视频二区在线观看| 亚洲丝袜美腿综合| 欧美国产国产综合| 精品久久久久av影院| 欧美日本国产视频| 在线一区二区视频| 国产精品亚洲一区二区三区在线| 日本vs亚洲vs韩国一区三区二区| 一区二区在线免费观看| 欧美电影免费观看高清完整版在 | 99久久久无码国产精品| 韩国精品久久久| 日本aⅴ免费视频一区二区三区| 亚洲日穴在线视频| 亚洲丝袜精品丝袜在线| 亚洲欧美自拍偷拍| 中文字幕精品三区| 久久久五月婷婷| 久久色成人在线| 久久精品免费在线观看| 欧美mv和日韩mv国产网站| 日韩三级中文字幕| 欧美日韩免费视频| 欧美人体做爰大胆视频| 91久久精品一区二区二区| 色悠久久久久综合欧美99| 99久久精品国产导航| a亚洲天堂av| 99久久精品免费看国产免费软件| 岛国一区二区三区| 99精品黄色片免费大全| 99国产精品99久久久久久| 91精品国产综合久久香蕉的特点 | 7777精品伊人久久久大香线蕉经典版下载 | 国产成人在线视频免费播放| 石原莉奈一区二区三区在线观看| 午夜欧美电影在线观看| 裸体在线国模精品偷拍| 精品一区二区免费视频| 国产一区二区三区综合| 成人性生交大片| 色av一区二区| 欧美剧情片在线观看| 日韩午夜激情视频| 欧美精品一区二区久久婷婷| 中文字幕乱码一区二区免费| 亚洲日韩欧美一区二区在线| 亚洲二区视频在线| 麻豆91在线播放免费| 懂色中文一区二区在线播放| 99久久精品免费看国产| 欧美亚洲一区二区在线| 欧美一区国产二区| 国产精品色婷婷久久58| 亚洲综合免费观看高清完整版| 日韩av中文字幕一区二区 | 国产真实乱对白精彩久久| 成人高清免费在线播放| 欧美人动与zoxxxx乱| 久久九九99视频| 亚洲日本护士毛茸茸| 久久超碰97中文字幕| 91在线免费视频观看| 欧美精品一区二区三区高清aⅴ| 国产精品美女久久久久高潮| 日本va欧美va瓶| 91香蕉视频mp4| 欧美日韩视频不卡| 国产精品传媒入口麻豆| 日韩高清不卡一区二区| 日本精品一级二级| 久久女同精品一区二区| 日韩中文字幕区一区有砖一区| 欧美日韩亚洲高清一区二区| 国产天堂亚洲国产碰碰| 丝袜脚交一区二区| 国产精品资源在线观看| 欧美一区二区三区啪啪| 亚洲人成7777| 国产成都精品91一区二区三| 7777精品伊人久久久大香线蕉的 | 一区在线观看免费| 美女视频黄 久久| 欧美三级视频在线观看 | 国产精品免费视频一区| 日本一区中文字幕| 97精品久久久午夜一区二区三区| 久久久99精品免费观看不卡| 水野朝阳av一区二区三区| 欧美少妇一区二区| 中文字幕日韩av资源站| 成人午夜电影小说| 2022国产精品视频| 五月天亚洲精品| 欧美日本在线观看| 亚洲欧美一区二区三区极速播放| 不卡的电影网站| 久久免费美女视频| 亚洲成av人片在线| 欧美在线视频你懂得| 国产精品乱码一区二区三区软件| 国产不卡视频一区二区三区| 精品1区2区在线观看| 免费不卡在线视频| 91精品国模一区二区三区| 日韩国产欧美三级| 欧美美女视频在线观看| av在线免费不卡| 日本一区二区三区在线观看| 久久精品国产77777蜜臀| 日韩一区二区三区精品视频| 舔着乳尖日韩一区| 欧美电视剧在线观看完整版| 婷婷国产在线综合| 91久久人澡人人添人人爽欧美 | 在线观看亚洲专区| 中文字幕在线观看不卡| 黄色资源网久久资源365| 69av一区二区三区| 一区二区成人在线| 91黄色小视频| 亚洲电影激情视频网站| 欧美日韩成人在线| 日本v片在线高清不卡在线观看| 91.com视频| 麻豆精品国产91久久久久久| 日韩免费观看高清完整版| 看片网站欧美日韩| 精品少妇一区二区三区免费观看| 久久成人18免费观看| 久久久精品人体av艺术| 精久久久久久久久久久| 欧美大肚乱孕交hd孕妇| 热久久久久久久| 国产亚洲1区2区3区| 成人精品视频.| 亚洲欧美日韩国产综合在线| 色噜噜偷拍精品综合在线| 亚洲一区在线观看视频| 正在播放一区二区| 国内外精品视频| 中文字幕av一区二区三区高 | 色www精品视频在线观看| 日韩精品视频网站| 精品国产乱码久久久久久久久| 韩国一区二区视频| 国产精品二三区| 欧美日韩精品三区| 国产在线精品一区二区三区不卡| 亚洲国产经典视频| 欧美亚洲国产一卡| 麻豆91免费看| 国产精品黄色在线观看| 欧美在线色视频| 九九精品视频在线看| 国产精品免费aⅴ片在线观看| 欧美性受极品xxxx喷水| 久久国内精品视频| 成人免费在线视频| 欧美熟乱第一页| 蜜桃视频免费观看一区| 91精品国产入口| 国产91精品露脸国语对白| 亚洲成人免费在线| 国产日韩欧美麻豆| 欧美日韩在线免费视频| 国产精品资源网站| 午夜视频在线观看一区二区| 久久久久久久久久久久电影| 日本久久电影网| 国产精品亚洲一区二区三区妖精|