Results 1 to 10 of 10
  1. #1
    yoda23456's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    420Sweden
    Posts
    1,335
    Reputation
    16
    Thanks
    384
    My Mood
    Cheerful

    cod4 aimbot code

    Code:

    typedef WORD (*RegisterTag)( char *, int, size_t );
    RegisterTag RegisterTag_ = (RegisterTag)0x518290;

    Code:

    bool GetBoneOrigin ( CEntity* Ent, Vector3 * Origin, WORD Bone )
    {
    if(!Ent||!Ent->bIsValidEnt||!Ent->bIsAlive) return 0;
    if(!CODGetTagPos ( Bone, Ent, Origin ) )
    Origin = &Ent->Location;
    return Ent->Location;
    }

    Code:

    class CGameServer
    {
    public:
    char unknown0[8]; //0x0000
    DWORD screenX; //0x0008 screenX
    DWORD screenY; //0x000C screenY
    float screenAspect; //0x0010 screenXBias
    DWORD serverCommandSequence; //0x0014 serverCommandSequence
    DWORD processedSnapshotNum; //0x0018 processedSnapshotNum
    DWORD boolLocalServer; //0x001C
    char GameType[4]; //0x0020 Dom, sd, sab, war, koth=HQ, dm = free for al
    };
    CGameServer* server = (CGameServer*)0x0074A908;

    Code:

    class CViewAngles
    {
    public:
    float ViewAngleY;
    float ViewAngleX;
    };
    CViewAngles* viewangles = (CViewAngles*)0xC84FD8;

    Code:

    BOOL DoAimbot( void )
    {__try{
    CEntity * pCurTarget = NULL;
    CEntity * pBestTarget = NULL;
    CClientInfo * pClientInfo = NULL;
    float fClosestDistance = 999.0f;
    D3DXVECTOR3 vAimPos, vLocalPos,ViewOrigin, Trajectory;
    int iFound = -1;

    WORD HeadBone = RegisterTag_( "j_helmet", 1,7 );
    int nIndex;
    for (nIndex = 0; nIndex < MAX_PLAYERS; nIndex++ )
    {
    pCurTarget = GetEntityIndex( nIndex );
    pClientInfo = GetClientIndex( nIndex );
    //below we check valid target, enemy team and is target alive
    if ( ! ( IsValidEntity ( pCurTarget, pClientInfo )))
    continue;

    if ( !IsAlive( pCurTarget ) )
    continue;

    bool bEnemyTarget = ( pClientInfo->iTeamID != gLocalInfo->iTeamID || gLocalInfo->iTeamID == TEAM_FREE );
    if ( bEnemyTarget == FALSE )
    continue;
    //FFA check for aimbot
    if (!memcmp(server->GameType,"dm",2))
    if(nIndex == gCG->iLocalClient)
    continue;

    if(!GetBoneOrigin( pCurTarget, VecAimSpot, HeadBone ))
    continue;

    float flCurrent = CMath.GetDistance(camera->Location, pCurTarget->Location ) / 48.0f;
    //we check for target visibility on our just gotten aim location
    if( Trace_Target ( camera->Location, VecAimSpot ) )

    edit- Creditz Tetsuo Umezawa,K@N@VEL and Sfab1

    PRESS THANKS IF YOU USE IT!
    Last edited by yoda23456; 01-27-2011 at 11:14 AM.

  2. The Following 4 Users Say Thank You to yoda23456 For This Useful Post:

    aliazxs (02-04-2011),broken (03-31-2011),embate (01-28-2011),lighty_vibez (12-03-2021)

  3. #2
    embate's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Sure, It's a House
    Posts
    93
    Reputation
    10
    Thanks
    8
    My Mood
    Fine
    GJ! ;D Really helps!



  4. #3
    ardy's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    asd
    Posts
    12
    Reputation
    10
    Thanks
    1
    My Mood
    Aggressive
    can make a dll >.>? is detected?

  5. The Following User Says Thank You to ardy For This Useful Post:

    aliazxs (02-04-2011)

  6. #4
    yoda23456's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    420Sweden
    Posts
    1,335
    Reputation
    16
    Thanks
    384
    My Mood
    Cheerful
    idk. there is Thanks button?

  7. #5
    birdzjeah's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    can u write whole tutorial.... which program to use ? and such things!

  8. #6
    jdslashv2's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Bratislava
    Posts
    138
    Reputation
    10
    Thanks
    304
    My Mood
    Yeehaw
    straight from virtual advantage! nice c+p.

    Also you need c++ to use this!

  9. #7
    Margherita's Avatar
    Join Date
    Jan 2011
    Gender
    female
    Posts
    11,299
    Reputation
    783
    Thanks
    1,287
    My Mood
    Bashful
    Okay this wasn't made to teach you how to use it. This was made for the people who DO know how to use it. If you want to learn how to use it learn C++ please (:
    MPGH has C++ classes here go there for some lessons.

    Good "release" I hope this helps the kids who KNOW how to use this. ._. I'll use this once I learn ;o
    PM Me | VM Me | Rules

    MARGHERITA

  10. #8
    birdzjeah's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    then i save it os dll ? or what ?
    and after that just run it ?
    and which program what to use ?
    Thank you!
    Last edited by birdzjeah; 01-28-2011 at 03:46 AM.

  11. #9
    jdslashv2's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Bratislava
    Posts
    138
    Reputation
    10
    Thanks
    304
    My Mood
    Yeehaw
    Everyone i've seen this on another site with the full code on there! I will not give the link because of the no outside links rule but you can find it on google!

  12. #10
    Skyline.'s Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    10,160
    Reputation
    416
    Thanks
    1,614
    Quote Originally Posted by birdzjeah View Post
    then i save it os dll ? or what ?
    and after that just run it ?
    and which program what to use ?
    Thank you!
    no do it yourself, begging is not allowed.