PDA

View Full Version : smooth aimbot + esp box codes (c++)



rompe666
19-06-08, 04:25
if you dont know what to do with this codes then too bad im not explaining if you know anyithing about cpp you should know what to do with this



int GetTeam (char * model)
(
/ / Terrorist team models
If (strstr (model, "arctic") | |
Strstr (model, "guerrilla") | |
Strstr (model, "leet") | |
Strstr (model, "terror"))
Return 1;

/ / Counter-terrorist team models
Else if (strstr (model, "gign") | |
Strstr (model, "gsg9") | |
Strstr (model, "sas") | |
Strstr (model, "urban") | |
Strstr (model, "VIP"))
Return 2;

Return 0;
)
void DrawBox (int x, y int, int r, g int, int b, int a, iRadius int, int iThickness)
(
Int iRad = iRadius / 2;

gEngfuncs.pfnFillRGBA (x - iRad, y - iRad, iRadius, iThickness, r, g, b, a);

gEngfuncs.pfnFillRGBA (x - iRad, y + iRad, iRadius + (iThickness / 2), iThickness, r, g, b, a);

gEngfuncs.pfnFillRGBA (x - iRad, y - iRad, iThickness, iRadius, r, g, b, a);

gEngfuncs.pfnFillRGBA (x + iRad, y - iRad, iThickness, iRadius, r, g, b, a);
)
void DoEspAim (void)
(
cl_entity_t * pEnt = NULL, * pLocal = gEngfuncs.GetLocalPlayer ();
Hud_player_info_t pInfo;
gEngfuncs.pfnGetPlayerInfo (pLocal-> index, & pInfo);
int iOwnTeam = GetTeam (pInfo.model)
code 4
FScreenPos float [10];
FDistFromCenter float [3];
Float fCenterDistance;

int iScreenCenterX = gEngfuncs.GetWindowCenterX ();
int iScreenCenterY = gEngfuncs.GetWindowCenterY ();

Cl_entity_t * pNearestEnt = NULL;
FNearest-float = 1.0f;
FNearestAimTarget float [3] = (0,0,0);

For (int i = 0; i <33; i + +)
(
If (pLocal-> index == i) continue;

PEnt = gEngfuncs.GetEntityByIndex (i);
If (! IsValidEnt (pEnt)) continue;

GEngfuncs.pfnGetPlayerInfo (i, & pInfo);
Int iTeam = GetTeam (pInfo.model);

pEnt-> -20 -= origin.z / / Wir brauchen who Kopf-Position
If (CalcScreen (pEnt-> origin, fScreenPos))
(
/ / There is visible!
(a + b &#178; &#178; = c &#178;).

other code...


fDistFromCenter [0] = iScreenCenterX - fScreenPos [0];
fDistFromCenter [1] = iScreenCenterY - fScreenPos [1];

fCenterDistance square = (fDistFromCenter [0]) + square (fDistFromCenter [1]);



If (iTeam == 1) / / Team = = Terror Rot
(
DrawBox (fScreenPos [0], fScreenPos [1], 255, 10, 10, 255, 25, 2);
)
Else if (iTeam == 2) / / CT = = Team Blau
(
DrawBox (fScreenPos [0], fScreenPos [1], 10, 10, 255, 255, 25, 2);
)
else
(
Continue;
)

if (iTeam == iOwnTeam) continue;
code 3
if (fNearest <0.0f | | fCenterDistance <fNearest)
(
/ / Entity Spieler
PNearestEnt = pEnt;
FNearest = fCenterDistance;
FNearestAimTarget [0] = fScreenPos [0];
FNearestAimTarget [1] = fScreenPos [1];
)
)
)
if (pNearestEnt! = NULL & & fNearestAimTarget [0]> 0 & & fNearestAimTarget [1]> 0)
(
/ / Smoothness Factor
# Define AIM_SMOOTH 2

If (GetAsyncKeyState (VK_RBUTTON))
(
/ / Smoothness:
float x = fNearestAimTarget [0] - iScreenCenterX;
float y = fNearestAimTarget [1] - iScreenCenterY;

X / = AIM_SMOOTH;
Y / = AIM_SMOOTH;

FNearestAimTarget [0] + = iScreenCenterX x;
FNearestAimTarget [1] = iScreenCenterY + y;

SetCursorPos ((int) fNearestAimTarget [0], (int) fNearestAimTarget [1]);
)
)
bool bKeyPressed [256];
bool IsKeyPressed (int iKey)
(
If (GetAsyncKeyState (iKey))
(
If (! BKeyPressed [iKey])
(
BKeyPressed [iKey] = true;
Return true;
)
)
Else
BKeyPressed [iKey] = false;

Return false;
)
bool bPanic = false;
code 7
If (IsKeyPressed (VK_F12)) bPanic =! BPanic;
If (bPanic) DoAim ();


thanks for reading and have fun, also if you make public hack with this you dont have to thank me but it will be apriciated
edit: sorry forgot to separate codes.. there is 2

aVitamin
13-07-08, 11:26
R O F L?
cred you for what? c+p?
the original source (http://forum.mp-hacks.de/showthread.php?t=691)

hardstyler1603
27-07-08, 05:49
void DrawBox (int x, y int, int r, g int, int b, int a, iRadius int, int iThickness)
(
Int iRad = iRadius / 2;

gEngfuncs.pfnFillRGBA (x - iRad, y - iRad, iRadius, iThickness, r, g, b, a);

gEngfuncs.pfnFillRGBA (x - iRad, y + iRad, iRadius + (iThickness / 2), iThickness, r, g, b, a);

gEngfuncs.pfnFillRGBA (x - iRad, y - iRad, iThickness, iRadius, r, g, b, a);

gEngfuncs.pfnFillRGBA (x + iRad, y - iRad, iThickness, iRadius, r, g, b, a);
)

Uhm, what about rectangle?

aVitamin
27-07-08, 07:41
stop posting shit...how would you set the thickness then?oO

hardstyler1603
28-07-08, 04:39
drawing rect in a loop xD

rompe666
29-07-08, 09:36
ok im just trying to help if you dont have anithing nice to say then dont say shit..

mvp_SyCo
02-08-08, 01:42
Doesn't work, Fail. to lazy to explain errors.. and i fixed it.

hardstyler1603
02-08-08, 11:49
Maybe its not the code who fails, uh?