Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    xbeatsszzx's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Behind a dumpster jerking off. xD jks
    Posts
    2,519
    Reputation
    13
    Thanks
    1,508
    My Mood
    Asleep

    Battlefield Bad Company 2 aimbot source code

    Hi
    Here is an aimbot source code for Bad Company 2.

    Code:
    #include "../ogoid++.h" #include "cheats.h" #include "../bf2/bf2.h" #include "../misc/encrypted_strings.h" #include "aimbot_helper.h" #define _USE_MATH_DEFINES #include <math.h> ////////////////////////////////////////////////////////////////////////// AimbotCheat::AimbotCheat() { encrypted_name = estr_aimbot; virtual_key = VK_NUMPAD0; disable_key = VK_SHIFT; ConfigParam param; param.type = ConfigParam::param_vkey; param.address = &disable_key; config_parameters.push_back(param); Enable(TRUE); } BOOL AimbotCheat::Apply(BOOL apply) { if(apply && !player_manager) return FALSE; return TRUE; } void AimbotCheat::Refresh(void) { if(!IsApplied() || !local_player || hud_manager->mouseActive || !local_info.Refresh() ) return; INPUT input; list<CPlayer*>::iterator target_iter; D3DXVECTOR3 temp_vector; CPlayer* target_player; TargetInformation target; D3DXVECTOR3 target_pos; D3DXVECTOR3 dir_to_target; float target_importance; float target_z; TargetInformation best_target; D3DXVECTOR3 best_dir; D3DXVECTOR3 best_projected; float best_importance; BOOL got_target; if(GetAsyncKeyState(VK_SHIFT)) { assert(player_manager && bf2_wnd_width && bf2_wnd_height); if( !local_player->player_object || !local_player->player_object->ptr || !local_player->player_alive || local_player->player_down ) return; best_importance = 20.0f; got_target = FALSE; // let's iterate through the bastards for( target_iter = player_manager->player_list.begin(); target_iter != player_manager->player_list.end(); target_iter++ ) { target_player = *target_iter; if( target_player == local_player || !target_player->player_alive || target_player->player_down || target_player->player_team == local_player->player_team || !target_player->player_object || !target_player->player_object->ptr ) continue; if( !target.NewTarget(target_player) || !target.IsGoodDistance() || !target.GetDirectionToTarget(&dir_to_target) ) continue; target_z = D3DXVec3Dot( local_info.GetAimDir(), &dir_to_target); // the dot product is the cosine of the angle, that means, if the angle between // the viewing direction and the direction to the target is 0, target_z will // be 1.0. if(target_z < cosf(AIMBOT_COVER_ANGLE)) continue; target_importance = 10.0f - target_z; // if not sniper the distance is important //if( !(local_player->player_object // && local_player->player_object == local_player->player_soldier // && local_player->kit_num == 1 && local_info.GetSoldier()->soldier_selected_weapon == 3) // ) // target_importance += target.GetDistanceToTarget() / 800.0f; if( target_importance < best_importance ) { best_importance = target_importance; best_target = target; best_dir = dir_to_target; got_target = TRUE; } } if(got_target && best_target.GetAimVector(&dir_to_target)) { float angle_x, angle_y; angle_x = asin( D3DXVec3Dot(local_info.GetAimRight(), &dir_to_target) ); angle_y = asin( D3DXVec3Dot(local_info.GetAimUp(), &dir_to_target) ); if(local_info.GetObject() == local_info.GetSoldier()) SoldierAngleToPix( &input.mi.dx, &input.mi.dy, angle_x, angle_y ); else VehicleAngleToPix( &input.mi.dx, &input.mi.dy, angle_x, angle_y ); // limit the aim change #ifdef AIMBOT_MAX_PIXEL_CHANGE //defined in configuration_switches_h if(input.mi.dx > AIMBOT_MAX_PIXEL_CHANGE) input.mi.dx = AIMBOT_MAX_PIXEL_CHANGE; else if(input.mi.dx < -AIMBOT_MAX_PIXEL_CHANGE)input.mi.dx = -AIMBOT_MAX_PIXEL_CHANGE; if(input.mi.dy > AIMBOT_MAX_PIXEL_CHANGE) input.mi.dy = AIMBOT_MAX_PIXEL_CHANGE; else if(input.mi.dy < -AIMBOT_MAX_PIXEL_CHANGE)input.mi.dy = -AIMBOT_MAX_PIXEL_CHANGE; #endif input.mi.dx *= 0.5f + 0.5f * cosf(angle_x / AIMBOT_COVER_ANGLE * M_PI * 2); input.mi.dy *= 0.5f + 0.5f * cosf(angle_y / AIMBOT_COVER_ANGLE * M_PI * 2); input.mi.mouseData = 0; input.mi.dwFlags = 0; input.mi.time = 0; input.mi.dwExtraInfo = GetMessageExtraInfo(); input.type = INPUT_MOUSE; SendInput( 1, &input, sizeof(input) ); } } }
    Press thanks button if u like
    Credits:
    Ludwin
    Last edited by xbeatsszzx; 01-13-2011 at 02:35 PM.
    I Am on this site for the mods for mw2 ONLY. Not hacks.

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

    bollza111 (01-19-2011),huhula96 (01-18-2011),jonathanjonathan (04-20-2011),Pandemic (01-13-2011),pkdame (01-19-2011)

  3. #2
    QB@L's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    Poland
    Posts
    9
    Reputation
    10
    Thanks
    0
    Sorry for the dumb question, but what can I do about this?

  4. #3
    L3G3ND_KILL3R's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    4,828
    Reputation
    207
    Thanks
    651
    My Mood
    Bored
    Quote Originally Posted by QB@L View Post
    Sorry for the dumb question, but what can I do about this?
    If you learn C++ then youll understand but its hard to learn
    Im currently learning.


    Need help with CALL OF DUTY RELATED or anything just private message me and im willing to help ^____^ Have a nice day!
    Quote Originally Posted by HelpIsWanted View Post
    so i have a camp next month, and i am 12, now all boys in my class have a large dick with hari and i dont have that. who can help me please?
    i see in films people can grow hair and grow dicks.

    i know its weird question, but i need !

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

    eurynomos (01-19-2011),QB@L (01-13-2011)

  6. #4
    Comet's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    MPGH
    Posts
    6,433
    Reputation
    376
    Thanks
    805
    My Mood
    Amazed
    Quote Originally Posted by QB@L View Post
    Sorry for the dumb question, but what can I do about this?
    IT's the source code for C++.
    As You Need To Learn It, As L3gend Said.


    But Thanks For The Source.
    Lets Get NG1 Down Here .

  7. #5
    xbeatsszzx's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Behind a dumpster jerking off. xD jks
    Posts
    2,519
    Reputation
    13
    Thanks
    1,508
    My Mood
    Asleep
    Im glad u all like it .
    I Am on this site for the mods for mw2 ONLY. Not hacks.

  8. #6
    Pandemic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Seattle
    Posts
    3,588
    Reputation
    143
    Thanks
    275
    My Mood
    Angelic
    nice source
    [IMG]https://www.dailyhah*****m/_pics/thatsnice_cat.jpg[/IMG]

  9. The Following User Says Thank You to Pandemic For This Useful Post:

    dude719 (01-17-2011)

  10. #7
    Balls Out's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Georgia, US
    Posts
    744
    Reputation
    29
    Thanks
    49
    My Mood
    Asleep
    Very nice indeed
    Knowledge is not power, rather applied knowledge is power.



    Who Is John Gault?

  11. #8
    Stevenom's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Summoner's Rift
    Posts
    17,743
    Reputation
    1087
    Thanks
    1,917
    My Mood
    Doubtful
    Quote Originally Posted by QB@L View Post
    Sorry for the dumb question, but what can I do about this?
    It's just a piece of code out of a whole code.
    You need the base to place this code in.

    Quote Originally Posted by L3G3ND_KILL3R View Post


    If you learn C++ then youll understand but its hard to learn
    Im currently learning.
    Yeah you learn basics.
    Not games.

  12. #9
    xbeatsszzx's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Behind a dumpster jerking off. xD jks
    Posts
    2,519
    Reputation
    13
    Thanks
    1,508
    My Mood
    Asleep
    I have a bunch of bad company 2 hacks but problem is. i dont got game..and i cant take screens of thses hacks in use.
    I Am on this site for the mods for mw2 ONLY. Not hacks.

  13. #10
    nawaf_bz's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Location
    gfdgdf
    Posts
    2
    Reputation
    10
    Thanks
    0
    ^
    then you can put all the hacks you have it and i will try it for u ^^

  14. #11
    Velocity's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Usa
    Posts
    4,375
    Reputation
    106
    Thanks
    773
    very nice. now can someone plz release aimbot .dll?

  15. #12
    xbeatsszzx's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Behind a dumpster jerking off. xD jks
    Posts
    2,519
    Reputation
    13
    Thanks
    1,508
    My Mood
    Asleep
    I will be releasing a simple hack tom.
    I Am on this site for the mods for mw2 ONLY. Not hacks.

  16. #13
    hanoi22's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    31
    Reputation
    10
    Thanks
    4
    My Mood
    Psychedelic
    Looks like BF2 source to me.... Where did you get c+p this from? *double facepalm*
    All though the principle is all the same but in this form totally useless imao, posting random source from other forums, typical mpgh morons.

  17. #14
    karateka's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    palermo
    Posts
    13
    Reputation
    10
    Thanks
    3
    PLS post the download and +1 !!! I m stupid with creation of an hack xDD!!

  18. #15
    oleksx's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Right behind you
    Posts
    119
    Reputation
    10
    Thanks
    51
    My Mood
    Amused
    I hope someone makes an aimbot out of this, because i really dont understand C++

Page 1 of 2 12 LastLast