Welcome to Dream-hack Forum. Register on this forum if you want ot see something Smile



 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 [Code] ZombieAimbot

View previous topic View next topic Go down 
AuthorMessage
kufalov
Site Owner
Site Owner
avatar

Posts : 122
XP : 6711
Thanks : 15
Join date : 2012-08-21
Age : 18
Location : Macedonia

PostSubject: [Code] ZombieAimbot   Wed Jun 05, 2013 9:39 pm

I will start with this code so this is private Zombie Aimbot code enjoy!

BOOL CUtils::WorldToScreen ( vec3_t vWorld, vec3_t &vScreen )
{
INT iResult = g_pEngine->pTriAPI->WorldToScreen ( vWorld, vScreen );
if ( vScreen.x < 1.0f && vScreen.y < 1.0f && vScreen.x > - 1.0f && vScreen.y > - 1.0f && !iResult )
{
FLOAT flViewport [ 4 ] = { 0 };
glGetFloatv ( 0x0BA2, flViewport );
INT ScreenCenterX = flViewport [ 2 ] / 2;
INT ScreenCenterY = flViewport [ 3 ] / 2;
vScreen.x = ( vScreen.x * ScreenCenterX ) + ScreenCenterX;
vScreen.y = ( - vScreen.y * ScreenCenterY ) + ScreenCenterY;
vScreen.z = 0.0f;
return TRUE;
}
return FALSE;
}
BOOL IsInArea ( PFLOAT pflScreen, INT iFov )
{
if ( !pflScreen )
return FALSE;
INT iAbsDistX = ( INT ) abs ( pflScreen [ 0 ] - g_Local.iScreenCenterX );
INT iAbsDistY = ( INT ) abs ( pflScreen [ 1 ] - g_Local.iScreenCenterY );
http://g_Utils.DrawString ( FALSE, 140, 25, 255, 255, 255, "Crosshair To Target: X: %i Y: %i",
//abs ( iAbsDistX ), abs ( iAbsDistY ) );
BOOL bIsInRange = iAbsDistX <= iFov && iAbsDistY <= iFov;
return bIsInRange;
}

VOID DoLegitAim ( UINT uiIndex )
{
vec3_t vAimTarget = g_Player[ uiIndex ].vWorldOrigin;
vAimTarget.z -= -21; // ????????? ?????-???????? ?? ?????????? ?? z ???(?????? ????), ?????????? 20-22 ???? ??? ????? ???????? ? ??????.
BOOL bValidEsp = g_Player[ uiIndex ].bIsValid && g_Player[ uiIndex ].bIsOnScreen;
if ( !bValidEsp )
return;
if ( !g_Utils.WorldToScreen ( vAimTarget, vAimTarget ) )
return;
//g_pEngine->pfnTintRGBA ( vAimTarget.x, vAimTarget.y, 3, 3, 255, 255, 255, 255 );
if ( IsInArea ( vAimTarget, 50 ) && GetAsyncKeyState ( VK_LBUTTON ) && g_Local.iTeam != g_Player[ uiIndex ].iTeam )
SetCursorPos ( vAimTarget.x, vAimTarget.y );
http://g_Engine.SetViewAngles(vAimTarget);
}
// in HUD_REDRAW
for ( UINT uiIndex = 1; uiIndex <= 32; uiIndex++ )
{
DoLegitAim ( uiIndex );
}
Back to top Go down
View user profile
 
[Code] ZombieAimbot
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Silenium IDE code for selecting and ajax autopopulate dropdown item
» Code Geass - Klok's Anime Reviews
» Webdriver code for dropdown selection is not working
» Selenium IDE source code
» selenium Rc code in python to capture alert message!!!!

Permissions in this forum:You cannot reply to topics in this forum
 :: DreamHackers C++-
Jump to: