Help me with aimbot please .
Could anyone help me with my aimbot?
I am using -flux source but I have tried updating the source but it doesn't work at all.
Only the Visible Check is working.
I am planning on using MousEvent But I don't have any Idia how to implement it.
Could you help me guys?
@CaiozinhoFC1 @RamoXO @dreek1 @
Struct used:
GetNearestByCrossHair Function& SetMouseCursor
Aimbot source:
I am using -flux source but I have tried updating the source but it doesn't work at all.
Only the Visible Check is working.
I am planning on using MousEvent But I don't have any Idia how to implement it.
Could you help me guys?
@CaiozinhoFC1 @RamoXO @dreek1 @
Struct used:
Code:
class CPlayerPos
{
public:
char Spacer[0xDC];
D3DXVECTOR3 Pos;
};
class CLTPlayerClient
{
public:
char Spacer[0x4bC];
CPlayerPos* pPlayerPos;
char Spacer2[8];
float Pitch; //4C8
float Yaw; //4D0
};
Code:
void SetMouseCursor(LPDIRECT3DDEVICE9 pDevice, CPlayer* Me, CPlayer* pPlayer, D3DXVECTOR3 pos)
{
CLTPlayerClient* pClient = (CLTPlayerClient*)(*(DWORD*)(dw_pCLTPlayerClient + CLTPlayerClientOffset));
if (pPlayer && pPlayer->Object && pPlayer->Health > 0 && pPlayer != Me)
{
D3DXMATRIX View, iView;
D3DXVECTOR3 fDist;
pDevice->GetTransform(D3DTS_VIEW, &View);
D3DXMatrixInverse(&iView, 0, &View);
D3DXVec3Subtract(&fDist, &pos, &D3DXVECTOR3(iView._41, iView._42, iView._43));
pClient->Pitch = (float)atan2(-fDist.y, sqrt(fDist.x * fDist.x + fDist.z * fDist.z));
pClient->Yaw = (float)atan2(fDist.x, fDist.z);
}
}
int GetNearestByCrossHair(LPDIRECT3DDEVICE9 pDevice)
{
int iAimAt = -1;
float MaxDistance = 0xFFFFFFF;
D3DVIEWPORT9 viewP;
pDevice->GetViewport(&viewP);
float ScreenX = viewP.Width / 2;
float ScreenY = viewP.Height / 2;
float PosX = 0.0f, PosY = 0.0f;
DWORD pLTClientShell = *(DWORD*)dw_pLTClientShell;
CPlayer* Me = GetPlayerByIndex(pLTClientShell, GetMyIndex(pLTClientShell));
for (int i = 0; i<16; i++)
{
CPlayer* pPlayer = GetPlayerByIndex(pLTClientShell, i);
D3DXVECTOR3 pos = GetBonePosition(pPlayer->Object, 6);
if (!IsValidClient(pPlayer) && Me != pPlayer) continue;
if (IsTM(pLTClientShell, pPlayer)) continue;
if (Trans3DTo2D(pDevice, &pos))
{
PosX = pos.x > ScreenX ? pos.x - ScreenX : ScreenX - pos.x;
PosY = pos.y > ScreenY ? pos.y - ScreenY : ScreenY - pos.y;
float Tmp = sqrt(PosX*PosX + PosY*PosY);
if (Tmp < MaxDistance)
{
MaxDistance = Tmp;
iAimAt = i;
}
}
}
return iAimAt;
}
Code:
void PlayerAimbot(LPDIRECT3DDEVICE9 pDevice)
{
if (!GetModuleHandle("CShell.dll")) return;
if (!GetModuleHandle("ClientFX.fxd")) return;
DWORD pLTClientShell = *(DWORD*)dw_pLTClientShell;
DWORD pCLTPlayerClient = *(DWORD*)(dw_pCLTPlayerClient + CLTPlayerClientOffset);
CPlayer* Me = GetPlayerByIndex(pLTClientShell, GetMyIndex(pLTClientShell));
int i;
int BONE_ID;
switch (Item20)//Aimbot /Bone position
{
case 1: BONE_ID = 6; break;//Head
case 2: BONE_ID = 5; break;//Neck
case 3: BONE_ID = 2; break;//Body
case 4: BONE_ID = 10; break;//LeftHand
case 5: BONE_ID = 17; break;//RightHand
case 6: BONE_ID = 23; break;//FeftFoot
case 7: BONE_ID = 28; break;//RightFoor
default: BONE_ID = 6;//HEAD
}
if (pCLTPlayerClient != 0)
{
i = GetNearestByCrossHair(pDevice);
CPlayer* Target = GetPlayerByIndex(pLTClientShell, i);
D3DXVECTOR3 AimPos = GetBonePosition(Target->Object, BONE_ID);
/*if (Trigger)
{
for (int i = 0; i<0x1FF; ++i)
{
if (*(float*)(pCLTPlayerClient + 4 * i) == 140)
{
if (*(float*)(pCLTPlayerClient + ((4 * i) + 0x3C)) > 0)
TriggerBot(pDevice, GetBonePosition(Target->Object, 2), Me, Target);
else
*(float*)(pCLTPlayerClient + ((4 * i) + 0x150)) = 6;
}
}
}*/
if (Item22) //Visible check
{
if (IsVisible(GetBonePosition(Me->Object, BONE_ID), GetBonePosition(Target->Object, BONE_ID)))
{
if (Item19 == 1) //AimKey for aimbot
SetMouseCursor(pDevice, Me, Target, AimPos);
if (Item19 == 2)
if (GetAsyncKeyState(VK_LBUTTON))
SetMouseCursor(pDevice, Me, Target, AimPos);
if (Item19 == 3)
if (GetAsyncKeyState(VK_RBUTTON))
SetMouseCursor(pDevice, Me, Target, AimPos);
if (Item19 == 4)
if (GetAsyncKeyState(VK_SHIFT))
SetMouseCursor(pDevice, Me, Target, AimPos);
if (Item19 == 5)
if (GetAsyncKeyState(VK_MENU))
SetMouseCursor(pDevice, Me, Target, AimPos);
}
}
else
{
if (Item19 == 1)
SetMouseCursor(pDevice, Me, Target, AimPos);
if (Item19 == 2)
if (GetAsyncKeyState(VK_LBUTTON))
SetMouseCursor(pDevice, Me, Target, AimPos);
if (Item19 == 3)
if (GetAsyncKeyState(VK_RBUTTON))
SetMouseCursor(pDevice, Me, Target, AimPos);
if (Item19 == 4)
if (GetAsyncKeyState(VK_SHIFT))
SetMouseCursor(pDevice, Me, Target, AimPos);
if (Item19 == 5)
if (GetAsyncKeyState(VK_MENU))
SetMouseCursor(pDevice, Me, Target, AimPos);
}
}
}

Your such a great man.