资源简介
透视自瞄源码.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
相关资源
- PID_AutoTune_v0.rar
- vspd7.2.308.zip
- 价值2k的H漫画小说系统
- Pythonamp;课堂amp;笔记(高淇amp;400;集第
- ddos压力测试工具99657
- UML建模大全
- 开源1A锂电池充电板TP4056原理图+PCB
- m1卡 ic卡可选择扇区初始化加密软件
- TSCC.exe
- FTP课程设计(服务端+客户端)
- 计算机图形学 边填充算法实现代码
- 电力系统潮流计算程序集合
- oracle数据迁移项目实施方案
- Web Api 通过文件流 文件到本地
- Visio图标-最新最全的网络通信图标库
- Spire API文档
- OpenGL参考手册
- Python中Numpy库最新教程
- SPD博士V5.3.exe
- 直流无刷电机方波驱动 stm32 例程代码
- layui后台管理模板
- 仿知乎界面小程序源代码
- 云平台-阿里云详细介绍
- photoshop经典1000例
- scratch垃圾分类源码(最终版本).sb
- IAR ARM 7.8破解
- TI CCS V5.4 安装步骤及破解文件
- 松下plc FP-XH的驱动
- 局域网硬件信息收集工具
- 加快Windows XP操作系统开机速度
评论
共有 条评论