Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    yusako's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    a
    Posts
    10
    Reputation
    20
    Thanks
    3
    My Mood
    Angry

    Simple aimbot source code

    #include "stdafx.h"


    cAimbot_t AIMBOT;

    float *ViewAngleX = (float *)0xF6B318;
    float *ViewAngleY = (float *)0xF6B314;


    float cAimbot_t::distance( vec3_t origin )
    {
    vec3_t vector;

    VectorSub( origin, ref->vieworg, vector );
    return ( sqrt( vector[0] * vector[0] + vector[1] * vector[1] + vector[2] * vector[2] ) );
    }

    char *HeadBodyTags[] =
    {
    "head",//1
    "neck",//2
    };

    vec3_t aimpoint;
    bool isAutoAiming=false;

    void cAimbot_t::Aimshoot()
    {
    static int fire_state=0;
    if(fire_state )
    {
    fire_state=0;

    CG_trap_SendConsoleCommand(1,1,"-attack\n" );
    }

    else if(!fire_state && isAutoAiming )
    {
    fire_state=1;

    CG_trap_SendConsoleCommand(1,1,"+attack\n" );

    }
    }
    bool cAimbot_t::getVisibleBoneTag(centity_t *cent,vec3_t *origin)
    {
    if (!MISC.GetTagForAimbot(cent,&aimpoint))
    {
    return qfalse;
    }
    aimpoint[2] += 7.5;

    vec3_t trDelta;

    float CG_PING=(PlayerSnap->ping)/50;

    VectorSubtract(cent->lerpOrigin_3, cent->lerpOrigin_2, trDelta);

    VectorMA(aimpoint,CG_PING,trDelta, aimpoint);

    if (MISC.IsVisible( aimpoint))
    {
    return qtrue;
    }
    return qfalse;
    }
    int cAimbot_t::AimAtFirstClient()
    {
    float leastDist=99999;

    int clientNum = -1;

    for( int i = 0; i < cgs->maxclients; i++ )
    {
    if( (cg_entities[i].Alive && cg_entities[i].Valid ) && (cg->clientNum != i))
    {
    if(clientInfo[i].team != clientInfo[ cg->clientNum ].team || clientInfo[ i ].team == TEAM_FREE)
    {
    if( getVisibleBoneTag(&cg_entities[i],&aimpoint) )
    {
    if(distance(aimpoint)<leastDist)
    {
    leastDist = distance(aimpoint);
    clientNum=i;
    }
    }
    }
    }
    }
    if(clientNum!=-1)
    {
    return clientNum;
    }
    return clientNum;
    }

    void cAimbot_t::AimTarget(int i)
    {
    if(i!=-1)
    {
    float aX, aY;

    isAutoAiming = true;

    getVisibleBoneTag(&cg_entities[i],&aimpoint);

    MISC.VectorToViewangles(aimpoint, aX, aY);

    *ViewAngleX += aX;
    *ViewAngleY += aY;

    }
    }



    --------------------------------------------------------------------------------
    Credit s go to me for posting
    and vicente95 for makeing this source i hope to see some aimbots up soon /yea

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

    blablablaido (10-09-2010),cgallagher21 (10-09-2010)

  3. #2
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,690
    Reputation
    184
    Thanks
    1,147
    My Mood
    Aggressive
    HOLY SHIT.

    THATS AMAZING!

  4. #3
    AVGN's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Making America Great Again.
    Posts
    15,451
    Reputation
    1549
    Thanks
    6,234
    looks kinda small



    ^Thanks to RJ^




  5. #4
    yusako's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    a
    Posts
    10
    Reputation
    20
    Thanks
    3
    My Mood
    Angry
    not my fault im just posting

  6. #5
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,690
    Reputation
    184
    Thanks
    1,147
    My Mood
    Aggressive
    Quote Originally Posted by AVGN View Post
    looks kinda small
    It doesnt work >.>

  7. #6
    yusako's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    a
    Posts
    10
    Reputation
    20
    Thanks
    3
    My Mood
    Angry
    Probably u will have to change x,y and etc... values.

  8. #7
    Synns's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    5,176
    Reputation
    170
    Thanks
    2,554
    My Mood
    Bitchy
    It's from cod4 / MW2..

    See the "+attack" command?

  9. #8
    yusako's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    a
    Posts
    10
    Reputation
    20
    Thanks
    3
    My Mood
    Angry
    Fail* he didnt tell me what section *facepalms*

  10. #9
    HaX4LiFe!'s Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    1,639
    Reputation
    22
    Thanks
    1,405
    Quote Originally Posted by Tyrannus View Post
    It's from cod4 / MW2..

    See the "+attack" command?
    [php]
    CG_trap_SendConsoleCommand(1,1,"-attack\n" );
    }

    else if(!fire_state && isAutoAiming )
    {
    fire_state=1;

    CG_trap_SendConsoleCommand(1,1,"+attack\n" );
    [/php]

  11. #10
    AVGN's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Making America Great Again.
    Posts
    15,451
    Reputation
    1549
    Thanks
    6,234
    Quote Originally Posted by Tyrannus View Post
    It's from cod4 / MW2..

    See the "+attack" command?
    Quote Originally Posted by yusako View Post
    Fail* he didnt tell me what section *facepalms*

    this is hilarious



    ^Thanks to RJ^




  12. #11
    CA_CO's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Belgium[GMT+1]
    Posts
    206
    Reputation
    10
    Thanks
    171
    My Mood
    Aggressive
    hahahaa xD
    Give hackers no chance

    Lil pro hacker.

  13. #12
    |Drake™|'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    365
    Reputation
    10
    Thanks
    84
    Wrong section then?

  14. #13
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,030
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    This is hilarious.
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  15. #14
    AVGN's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Making America Great Again.
    Posts
    15,451
    Reputation
    1549
    Thanks
    6,234
    /moved to MW2 source code section.



    ^Thanks to RJ^




  16. The Following User Says Thank You to AVGN For This Useful Post:

    [MPGH]Insane (10-09-2010)

  17. #15
    yusako's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    a
    Posts
    10
    Reputation
    20
    Thanks
    3
    My Mood
    Angry
    im going to repost in mw2 and cod4 section request close so i dont get banned

Page 1 of 2 12 LastLast

Similar Threads

  1. [Source Code] Cross Fire Aimbot Source Code
    By lol~lol in forum CrossFire Hacks & Cheats
    Replies: 30
    Last Post: 02-20-2010, 01:38 PM
  2. [Source Code] Aimbot source code with video
    By maxius12 in forum CrossFire Hacks & Cheats
    Replies: 37
    Last Post: 02-18-2010, 07:07 PM
  3. [Source Code] Aimbot source code with video
    By maxius12 in forum CrossFire Hacks & Cheats
    Replies: 5
    Last Post: 02-18-2010, 05:47 PM
  4. Visual Basic Aimbot Source Code
    By whitten in forum Visual Basic Programming
    Replies: 19
    Last Post: 08-05-2009, 11:39 AM
  5. My Aimbot source code!
    By wertoskiller in forum Combat Arms Hacks & Cheats
    Replies: 8
    Last Post: 07-27-2009, 05:46 PM