
chomdinger
(chom chom)
Открыть в Steam
Steam ID
Steam2
Steam3
Steam64
Информация
- Дата регистрации
- 16.12.2014
- Страна
- VA
- О себе
- script-cpp [pastebin.com]
faceit [www.faceit.com]
/id/VAC-Undetected
( ° ͜ʖ͡°)Ɑ͞ ̶͞ ̶͞ ﻝﮞ
when the chom dings, the crowd sings
struct BoneMatrix
{
byte padding1[12];
float x;
byte padding2[12];
float y;
byte padding3[12];
float z;
};
D3DXVECTOR3 GetBonePos(uintptr_t target, int boneID)
{
D3DXVECTOR3 pos;
DWORD boneMatrix = Read<DWORD>(target + m_dwBoneMatrix);
BoneMatrix matrix = Read<BoneMatrix>(boneMatrix + 0x30 * boneID);
pos.x = matrix.x;
pos.y = matrix.y;
pos.z = matrix.z;
return pos;
}
static bool ScreenTransform(const D3DXVECTOR3& point, D3DXVECTOR3& screen)
{
const D3DXMATRIX& w2sMatrix = Read<D3DXMATRIX>(client + dwViewMatrix);
screen.x = w2sMatrix.m[0][0] * point.x + w2sMatrix.m[0][1] * point.y + w2sMatrix.m[0][2] * point.z + w2sMatrix.m[0][3];
screen.y = w2sMatrix.m[1][0] * point.x + w2sMatrix.m[1][1] * point.y + w2sMatrix.m[1][2] * point.z + w2sMatrix.m[1][3];
screen.z = 0.0f;
float w = w2sMatrix.m[3][0] * point.x + w2sMatrix.m[3][1] * point.y + w2sMatrix.m[3][2] * point.z + w2sMatrix.m[3][3];
if (w < 0.001f) {
screen.x *= 100000;
screen.y *= 100000;
return true;
}
float invw = 1.0f / w;
screen.x *= invw;
screen.y *= invw;
return false;
}
static bool WorldToScreen(const D3DXVECTOR3 &origin, D3DXVECTOR3 &screen, int w, int h)
{
if (!ScreenTransform(origin, screen)) {
screen.x = (w / 2.0f) + (screen.x * w) / 2;
screen.y = (h / 2.0f) - (screen.y * h) / 2;
return true;
}
return false;
}
DWORD GetPlayer()
{
D3DXVECTOR3 w2sHead;
DWORD PlayerToAim = NULL;
double lowestDist = 500;
DWORD LocalPlayerBase = Read<DWORD>(client + dwLocalPlayer);
int MyTeamID = Read<int>(LocalPlayerBase + m_iTeamNum);
for (int player = 1; player < 32; player++)
{
auto ThisPlayer = Read<int>(client + dwEntityList + (player * 0x10));
bool isPlayerDormant = Read<bool>(ThisPlayer + m_bDormant);
int TeamID = Read<int>(ThisPlayer + m_iTeamNum);
int health = Read<int>(ThisPlayer + m_iHealth);
if (TeamID != MyTeamID)
{
WorldToScreen(GetBonePos(ThisPlayer, 8), w2sHead, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN));
double dist = sqrt(pow((GetSystemMetrics(SM_CXSCREEN) / 2) - w2sHead.x, 2) + pow((GetSystemMetrics(SM_CYSCREEN) / 2) - w2sHead.y, 2));
if (dist < lowestDist)
{
lowestDist = dist;
PlayerToAim = ThisPlayer;
}
}
}
return PlayerToAim;
}
void aimbot(DWORD PlayerToAim)
{
D3DXVECTOR3 w2sHead;
if (PlayerToAim != NULL)
{
WorldToScreen(GetBonePos(PlayerToAim, 8), w2sHead, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN));
float headPosX = (w2sHead.x - (GetSystemMetrics(SM_CXSCREEN) / 2)) / 2;
float headPosY = (w2sHead.y - (GetSystemMetrics(SM_CYSCREEN) / 2)) / 2;
bool visible = Read<bool>(PlayerToAim + m_bSpotted);
if (visible)
{
if (headPosX > -100 && headPosX < 100 && headPosY > -100 && headPosY < 100)
{
mouse_event(0, headPosX, headPosY, 0, 0);
}
}
}
}
static void thread4()
{
while (true)
{
if (aimbot)
{
while (GetAsyncKeyState(VK_LBUTTON))
{
aimbot(GetPlayer());
}
Sleep(1);
}
}
}chomdinger
chomdinger[chom.dinger]No information given.