Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > First-Person Shooters > Call of Duty Series > Call of Duty 6: Modern Warfare 2 > Call of Duty 6: Code Section

- Sponsored Advertisement -
http://www.myfpscheats.com/

Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Call of Duty 6: Code Section
hacks cheats tutorials downloads source code
You are Unregistered, please register to gain Full access.    
Reply
 
Thread Tools

External aimbot reloaded
Old 03-12-2010, 11:02 AM   #1
A God

sph4ck's Avatar

Join Date: Feb 2010
Posts: 199
Reputation: 7343
Rep Power: 101
sph4ck DEFINES UNKNOWNCHEATSsph4ck DEFINES UNKNOWNCHEATSsph4ck DEFINES UNKNOWNCHEATSsph4ck DEFINES UNKNOWNCHEATSsph4ck DEFINES UNKNOWNCHEATSsph4ck DEFINES UNKNOWNCHEATSsph4ck DEFINES UNKNOWNCHEATSsph4ck DEFINES UNKNOWNCHEATSsph4ck DEFINES UNKNOWNCHEATSsph4ck DEFINES UNKNOWNCHEATSsph4ck DEFINES UNKNOWNCHEATS
Points: 7,543, Level: 9
Points: 7,543, Level: 9 Points: 7,543, Level: 9 Points: 7,543, Level: 9
Activity: 4.2%
Activity: 4.2% Activity: 4.2% Activity: 4.2%
Last Achievements
External aimbot reloaded

Hi all. This code section is far less active since BFBC2...

Anyway, I am back to work on the aimbot part where xZetera left it.

Here's my contribution, MouseMove() was for fullscreen. If you're playing with the BoxESP in windowed mode, you'll need this modified version:

Code:
void MouseMove(float delta_x, float delta_y)
{
    double fScreenWidth   = ::GetSystemMetrics(SM_CXSCREEN)-1;
    double fScreenHeight  = ::GetSystemMetrics(SM_CYSCREEN)-1;
    double dx = 65535.0f / fScreenWidth;
    double dy = 65535.0f / fScreenHeight;
    double fx = (wndpos[0] + mouse_center[0] + delta_x) * dx;
    double fy = (wndpos[1] + mouse_center[1] + delta_y) * dy;
    INPUT  input;
    memset(&input, 0, sizeof(input));
    input.type      = INPUT_MOUSE;
    input.mi.dwFlags  = MOUSEEVENTF_MOVE|MOUSEEVENTF_ABSOLUTE;
    input.mi.dx = (long) fx;
    input.mi.dy = (long) fy;
    ::SendInput(1,&input,sizeof(input));
}
Where globals are declared this way:
Code:
int                        resolution[2];
int                        screencenter[2];
int                        mouse_center[2];
And initialized:
Code:
GetClientRect(mw2_hwnd, &client_rect);
resolution[0] = client_rect.right;
resolution[1] = client_rect.bottom;
screencenter[0] = resolution[0]/2;
screencenter[1] = resolution[1]/2;
RECT bounding_rect;
GetWindowRect(mw2_hwnd,&bounding_rect);
mouse_center[0] = (bounding_rect.right - bounding_rect.left) / 2;
mouse_center[1] = (bounding_rect.bottom - bounding_rect.top) / 2;
Stay tuned for the real aimbot part.
sph4ck is offline

Reply With Quote


Old 03-12-2010, 12:33 PM   #2
Broken Moderator

kolbybrooks's Avatar

Join Date: Aug 2006
Location: United States
Posts: 760
Reputation: 33567
Rep Power: 418
kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!
Points: 23,105, Level: 21
Points: 23,105, Level: 21 Points: 23,105, Level: 21 Points: 23,105, Level: 21
Activity: 20.0%
Activity: 20.0% Activity: 20.0% Activity: 20.0%
Last Achievements
Code:
Vector.VectorAngles(CShared.Local.EyePos - Entity.EyePos, out Angles);
...
CShared.View.Angles = Angles;
When setting my CShared.View.Angles, it uses my WriteProcessMemory function
Code:
CMem.Write<Vector>(Base + 0x40, value - ViewOffset);
Really that simple, but there is a small catch that you have to take into account when setting the angles (ViewOffset).

Last edited by kolbybrooks; 03-12-2010 at 12:35 PM.
kolbybrooks is online now

Reply With Quote
Reply  

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit



Tags
aimbot, external, reloaded
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 04:48 PM.