资源简介
透视自瞄源码.7z
代码片段和文件信息
#include“CAim_Perspective.h“
#include“Memory.h“
#include“OFFSET_DATA.h“
#include
extern HANDLE g_hProcess;
extern DWORD g_cstrike_exe_base;
extern DWORD g_pcawwclconfig_mm_dll_base;
extern DWORD g_mp_dll_base;
int GetPersonNumber()
{
//返回游戏玩家数量
return ReadMemory_DWORD(g_hProcess g_mp_dll_base+NUM_PERSONNULL);
}
//CPerson部分
POS CPerson::GetMyPos()
{
POS pos = {0};
DWORD base_me = ReadMemory_DWORD(g_hProcess g_pcawwclconfig_mm_dll_base + base_MENULL);
pos.fXpos = ReadMemory_float(g_hProcess base_me + POS_XNULL);
pos.fYpos = ReadMemory_float(g_hProcess base_me + POS_Y NULL);
pos.fZpos = ReadMemory_float(g_hProcess base_me + POS_Z NULL);
//获取到三维坐标数据
return pos;
}
POS CPerson::GetPos(int nPersonnumber)
{
POS pos = { 0 };
DWORD base_me = ReadMemory_DWORD(g_hProcess g_pcawwclconfig_mm_dll_base + base_ENEMY + nPersonnumber * OFFSET_PERSON NULL);
pos.fXpos = ReadMemory_float(g_hProcess base_me + POS_X NULL);
pos.fYpos = ReadMemory_float(g_hProcess base_me + POS_Y NULL);
pos.fZpos = ReadMemory_float(g_hProcess base_me + POS_Z NULL);
return pos;
}
HEART CPerson::GetHeartAngle()
{
HEART heart = { 0 };
heart.HeartX = ReadMemory_float(g_hProcess g_cstrike_exe_base + HEART_X NULL);
heart.HeartY = ReadMemory_float(g_hProcess g_cstrike_exe_base + HEART_Y NULL);
return heart;
}
float CPerson::Get_two_distance(POS another)
{
float fDistance;
float DeltaX = fabs(m_pos.fXpos - another.fXpos);
float DeltaY = fabs(m_pos.fYpos - another.fYpos);
fDistance = sqrtf(pow(DeltaX2) + pow(DeltaY2));
return fDistance;
}
float CPerson::Get_two_distance(POS one POS two)
{
float fDistance;
float DeltaX = fabs(one.fXpos - two.fXpos);
float DeltaY = fabs(one.fYpos - two.fYpos);
fDistance = sqrtf(pow(DeltaX 2) + pow(DeltaY 2));
return fDistance;
}
float CPerson::Get_three_distance(POS another)
{
float fDistance;
float DeltaX = fabs(m_pos.fXpos - another.fXpos);
float DeltaY = fabs(m_pos.fYpos - another.fYpos);
float DeltaZ = fabs(m_pos.fZpos - another.fZpos);
fDistance = sqrtf(pow(DeltaX 2) + pow(DeltaY 2) + pow(DeltaZ 2));
return fDistance;
}
int CPerson::GetTeam()
{
return ReadMemory_DWORD(g_hProcess g_pcawwclconfig_mm_dll_base + base_ME + TEAM NULL);
}
int CPerson::GetTeam(int nPersonnum)
{
return ReadMemory_DWORD(g_hProcess
g_pcawwclconfig_mm_dll_base + base_ENEMY + nPersonnum * OFFSET_PERSON + TEAM
NULL);
}
bool CPerson::IsAlive(int n_PersonNumber)
{
DWORD base_person = ReadMemory_DWORD(g_hProcess
g_pcawwclconfig_mm_dll_base + base_ENEMY + n_PersonNumber * OFFSET_PERSON
NULL);
float hp = ReadMemory_float(g_hProcess
base_person + HP
NULL);
return ReadMemory_float(g_hProcess
base_person + HP
NULL) > 1;
}
void CPerson::update()
{
m_pos = GetMyPos();
m_heart = GetHeartAngle();
}
CPerson::CPerson(int nPersonNumber)
{
m_nPersonNumber = nPers
相关资源
- 推荐的ros学习方法和较好教程书籍.
- 日期算法.exe
- 第九章报告-校园十大优秀青年评比
- CiscoSecureACSforWindowsSeverV4.2.txt
- news2.zip
- premiere cs4绿化插件
- 黑雨.rar
-
downloadli
nk.txt - 科讯精准扶贫系统.pdf
- tosuba_5509031.zip
- SuperResourceExtract.zip
- OpenGLSETest.zip
- 资源合集_集成clover最新版.txt
- tlwg888_3695499.zip
- unity4.x-2017.2.0f03全版本破解windows版本
- tianyanshi9337_10249724.zip
- 125482超级爆破字典.rar
- C程序设计教程第二版答案钱能.zip
- genPwd.bat
- 打包解包整理vs2013.zip
- was打包器.exe
- VJ1604E-蒙泰新曲线.rar
- lic_standalone.rar
- sh-demand-forecast-alg.zip
- vmware_keygen_20180725.zip
- 中国省份和城市对照表及城市分级.
- cudnn8.0.txt
- IWO.rar.zip
- meituan_spider.rar
- pb做监控系统.zip
评论
共有 条评论