Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > First-Person Shooters > Battlefield Series > Battlefield 2

- 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.
Battlefield 2
hacks cheats tutorials source code
You are Unregistered, please register to gain Full access.    
Reply
 
Thread Tools

Simple BF Aim + Prediction
Old 04-18-2010, 09:30 AM   #1
The 0n3

Sfab1's Avatar

Join Date: Nov 2007
Location: Finland
Posts: 421
Reputation: 22705
Rep Power: 287
Sfab1 has reputation that takes up 2GB of server space!Sfab1 has reputation that takes up 2GB of server space!Sfab1 has reputation that takes up 2GB of server space!Sfab1 has reputation that takes up 2GB of server space!Sfab1 has reputation that takes up 2GB of server space!Sfab1 has reputation that takes up 2GB of server space!Sfab1 has reputation that takes up 2GB of server space!Sfab1 has reputation that takes up 2GB of server space!Sfab1 has reputation that takes up 2GB of server space!Sfab1 has reputation that takes up 2GB of server space!Sfab1 has reputation that takes up 2GB of server space!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (1)
Points: 16,479, Level: 17
Points: 16,479, Level: 17 Points: 16,479, Level: 17 Points: 16,479, Level: 17
Activity: 29.9%
Activity: 29.9% Activity: 29.9% Activity: 29.9%
Last Achievements
Simple BF Aim + Prediction

PHP Code:
void CAimClass::DoAimbot( )
{
    
float AimDistanceBulletDelay;
    
CObjectt_obj;
    
CObject_Weapon weapon gLocalPlayer->soldierinfo->ptr->ActiveWeapon;
        
        
CTemplatepWeaponTemplate =
                (
CTemplate*) weapon->object_template;

    
float projectile_speed player_manager->LocalPlayer->soldierinfo->ptr->ActiveWeapon->object_template->weapon_velocity;


    
D3DXVECTOR3    AimSpot,v3TempVec;

    
CPlayer BestTarget 0;
    
FLOAT Saved = (FLOAT)INT_MAX;

    
int BestID = -1;

    for(
int i 0255i++) 
    {
        
CPlayerTargetPlayer player_manager->GetPlayerByIndex(i);
        
BestID i;
        if ( 
TargetPlayer && IsValidTargetTargetPlayer ) && IsEnemyTarget TargetPlayer ))
        {
    
            if(!
GetBonePos(&AimSpotBONE_HEADTargetPlayer))
                continue;

            if(!
IsVisible(AimSpotTargetPlayerBONE_HEAD)) 
                continue;

            if(!
physics_manager)
                continue;

            
D3DXVECTOR3 target_velocity_vec(0.0f0.0f0.0f);
            if (
TargetPlayer->soldierinfo->ptr->object_physics)
                
target_velocity_vec = ( TargetPlayer->soldierinfo->ptr->object_physics->speed);

            
D3DXVECTOR3 bla AimSpot ViewMatrix[3];
            
AimDistance D3DXVec3Length(&bla);
            
BulletDelay AimDistance projectile_speed;
            
AimSpot AimSpot target_velocity_vec BulletDelay;

            
v3TempVec AimSpot ViewMatrix[3];
            
D3DXVec3Normalize( &v3TempVec, &v3TempVec );

            if(
AimDistance Saved || !AimDistance)
            {
                if(
BestID)
                {
                    
BestTarget TargetPlayer;
                    
BestID i;
                }
                
Saved AimDistance;
            }
        }
        }
        if ( 
BestTarget == NULL || IsValidTarget BestTarget ) == FALSE 
            return;

        
CompensateDeviation( &v3TempVec );// no spread call

        
float flAspectRatio gLocalPlayer->Camera->GetInsideFOV() / gLocalPlayer->fViewFOV 5.0f;
        
InputBuffer] = D3DXToDegreeasinfD3DXVec3Dot(&ViewMatrix[0], &v3TempVec ) ) * flAspectRatio );
        
InputBuffer] = D3DXToDegree( -asinfD3DXVec3Dot(&ViewMatrix[1], &v3TempVec ) ) * flAspectRatio );

its just an basic bf aimbot for infantry gaming including very simple prediction, it can be improved many ways and it applies for at least bf2,bf2142, bfheroes and might apply to any else with small changes

credits:
me, patrick, r4z8r(i guess) + uc-forum in general and everyone who contributes their knowledge here.
__________________

Sfab1 is online now

Reply With Quote


Old 04-18-2010, 09:32 AM   #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
Looks good; I'll have to look over it tomorrow, just getting ready for bed.
kolbybrooks is online now

Reply With Quote

Old 04-21-2010, 12:09 PM   #3
Hacker Supreme

CRYSIS2000's Avatar

Join Date: Mar 2008
Location: GR
Posts: 240
Reputation: 465
Rep Power: 56
CRYSIS2000 is a preacher of ownage - listen and learnCRYSIS2000 is a preacher of ownage - listen and learnCRYSIS2000 is a preacher of ownage - listen and learnCRYSIS2000 is a preacher of ownage - listen and learnCRYSIS2000 is a preacher of ownage - listen and learn
Shoot 2: Cruise Control Champion
Nice job Sfab, +rep
__________________
Official UnKnoWnCheaTs Xfire Clan Page



Quote:
Originally Posted by zoomgod View Post
Damn, PB working weekends now, that didn't last long.
CRYSIS2000 is offline

Reply With Quote

Old 05-01-2010, 12:03 AM   #4
Supreme H4x0|2

4bply's Avatar

Join Date: Jan 2009
Location: uoy dniheB
Posts: 676
Reputation: 8706
Rep Power: 138
4bply DEFINES UNKNOWNCHEATS4bply DEFINES UNKNOWNCHEATS4bply DEFINES UNKNOWNCHEATS4bply DEFINES UNKNOWNCHEATS4bply DEFINES UNKNOWNCHEATS4bply DEFINES UNKNOWNCHEATS4bply DEFINES UNKNOWNCHEATS4bply DEFINES UNKNOWNCHEATS4bply DEFINES UNKNOWNCHEATS4bply DEFINES UNKNOWNCHEATS4bply DEFINES UNKNOWNCHEATS
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (1)
Points: 8,003, Level: 10
Points: 8,003, Level: 10 Points: 8,003, Level: 10 Points: 8,003, Level: 10
Activity: 1.1%
Activity: 1.1% Activity: 1.1% Activity: 1.1%
Last Achievements
good work, and thanks for sharing this
__________________
"Stay on top but remain from the underground"
4bply is offline

Reply With Quote

Old 06-30-2010, 03:54 PM   #5
n00bie

An0nym0uS's Avatar

Join Date: Jun 2010
Posts: 10
Reputation: 10
Rep Power: 20
An0nym0uS has made posts that are generally average in quality
Could anybody help me using this for bf2? Is it the aimbot.h? If so how would i call it in main.cpp? Thanks for your time.
An0nym0uS is offline

Reply With Quote

Old 06-30-2010, 04:04 PM   #6
UnKnoWnCheaTeR

disavow's Avatar

Join Date: Jul 2009
Posts: 1,069
Reputation: 49844
Rep Power: 551
disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!disavow has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (2)
Points: 31,281, Level: 26
Points: 31,281, Level: 26 Points: 31,281, Level: 26 Points: 31,281, Level: 26
Activity: 14.9%
Activity: 14.9% Activity: 14.9% Activity: 14.9%
Last Achievements
Quote:
Originally Posted by An0nym0uS View Post
Could anybody help me using this for bf2? Is it the aimbot.h? If so how would i call it in main.cpp? Thanks for your time.
And so it begins...

Make a pointer to CAimClass then call pCAimClass->DoAimbot(..) from it.
__________________

Shad0w_'s Alter Ego
disavow is online now

Reply With Quote

Old 06-30-2010, 04:15 PM   #7
n00bie

An0nym0uS's Avatar

Join Date: Jun 2010
Posts: 10
Reputation: 10
Rep Power: 20
An0nym0uS has made posts that are generally average in quality
Quote:
Originally Posted by Shad0w_ View Post
And so it begins...

Make a pointer to CAimClass then call pCAimClass->DoAimbot(..) from it.
Lol dude dont go like "and so it begins" im just trying to add a simple aimbot for mah hack. Besides the source is public so its not much to ask for simple help.
Anyways if someone could "spoonfeed" me itdbe awesome. Bye


USER RECEIVED A WARNING FOR THIS POST


Last edited by An0nym0uS; 06-30-2010 at 05:05 PM.
An0nym0uS is offline

Reply With Quote

Old 06-30-2010, 06:25 PM   #8
UC Contributor

Freaky123's Avatar

Join Date: Sep 2009
Location: Netherlands
Posts: 730
Reputation: 18059
Rep Power: 223
Freaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UC
Quote:
Originally Posted by An0nym0uS View Post
Lol dude dont go like "and so it begins" im just trying to add a simple aimbot for mah hack. Besides the source is public so its not much to ask for simple help.
Anyways if someone could "spoonfeed" me itdbe awesome. Bye
Learn c++! They are not going to "spoonfeed" you here! You also got to do something yourself So please stop asking stupid questions like this if you don't even know what this code does!

 Moderator note (Freaky123)  Next time you will recieve an infraction!
__________________
Proud to be a hacker!
Programming languages I know: PHP, Javascript, XHTML, Flash Actionscript, c++
Also good at: MYSQL/Oracle databases, ERD, SQL-injection and XSS
Games I hack: Battlefield Heroes, Face of Mankind and Call of Duty MW2

Last edited by Freaky123; 06-30-2010 at 10:41 PM.
Freaky123 is offline

Reply With Quote

Old 06-30-2010, 07:01 PM   #9


[An0nym0us]'s Avatar

Join Date: Jun 2010
Posts: 1
Reputation: 10
Rep Power: 0
[An0nym0us] has made posts that are generally average in quality
Last Achievements
Eh i guess ur right. Im sorry . Ive been learning c++ but its so damn hard :/


USER RECEIVED AN INFRACTION FOR THIS POST

[An0nym0us] is offline

Reply With Quote

Old 06-30-2010, 07:06 PM   #10
Gathering Stories

disco's Avatar

Join Date: Mar 2009
Location: University
Posts: 4,440
Reputation: 84290
Rep Power: 966
disco has disabled reputation
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (3)
Points: 69,734, Level: 38
Points: 69,734, Level: 38 Points: 69,734, Level: 38 Points: 69,734, Level: 38
Activity: 1.2%
Activity: 1.2% Activity: 1.2% Activity: 1.2%
Last Achievements
Award-Showcase
 Moderator note  Do not make multiple accounts An0nym0uS. It is against the rules.
__________________


The skyline was beautiful on fire.
--------------------------------------------------------------
X-Fire | IRC | Rules | Staff | Downloads | Tutorials
--------------------------------------------------------------
disco is offline

Reply With Quote

Old 12-27-2010, 05:49 PM   #11
UC Supporter

girpon's Avatar

Join Date: May 2010
Location: Netherlands, near to The Hague
Posts: 297
Reputation: -2628
Rep Power: 0
girpon is infamous around these partsgirpon is infamous around these partsgirpon is infamous around these partsgirpon is infamous around these partsgirpon is infamous around these partsgirpon is infamous around these partsgirpon is infamous around these partsgirpon is infamous around these partsgirpon is infamous around these partsgirpon is infamous around these partsgirpon is infamous around these parts
Last Achievements
do u just need to compile the code to a DLL file and then inject with an injector
__________________
girpon
KILl Me 1 timE, DiE UnLiMited TiMEs, UsiNG HaCks
"DrAWingS MaDE By mE, CallED Girpon"
girpon is offline

Reply With Quote

Old 12-27-2010, 07:32 PM   #12
UnKnoWnCheaTeR

Freeheadshot's Avatar

Join Date: Mar 2010
Location: Germany
Posts: 941
Reputation: 40621
Rep Power: 448
Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!Freeheadshot has a huge epeen!
Recognitions:
The UC Member of the Month award is a prestigious award given to a single community member on a monthly basis. Based on a vote by UnKnoWnCheaTs staff, the award is given to the forum member that has shown exemplary achievement and potential in the UnKnoWnCheaTs community, and has shown great commitment to upholding the principles upon which UnKnoWnCheaTs stands for. A member who has been awarded the Member of the Month award has been distinguished as an asset to the UnKnoWnCheaTs community. Member of the Month
Points: 25,225, Level: 22
Points: 25,225, Level: 22 Points: 25,225, Level: 22 Points: 25,225, Level: 22
Activity: 14.1%
Activity: 14.1% Activity: 14.1% Activity: 14.1%
Last Achievements
No lol you need to add some things like DLLMain etc and initialize the structures u need for this aimbot
Freeheadshot is online now

Reply With Quote

Old 12-27-2010, 08:46 PM   #13
« The Slovakian Mod »

TIGERHax's Avatar

Join Date: Mar 2010
Location: Slovakia
Posts: 2,028
Reputation: 37520
Rep Power: 439
TIGERHax has a huge epeen!TIGERHax has a huge epeen!TIGERHax has a huge epeen!TIGERHax has a huge epeen!TIGERHax has a huge epeen!TIGERHax has a huge epeen!TIGERHax has a huge epeen!TIGERHax has a huge epeen!TIGERHax has a huge epeen!TIGERHax has a huge epeen!TIGERHax has a huge epeen!
Points: 26,919, Level: 23
Points: 26,919, Level: 23 Points: 26,919, Level: 23 Points: 26,919, Level: 23
Activity: 26.4%
Activity: 26.4% Activity: 26.4% Activity: 26.4%
Last Achievements
Quote:
Originally Posted by girpon View Post
do u just need to compile the code to a DLL file and then inject with an injector
this is snipet, not copy pastable
need classes and base
__________________




TIGERHax 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
aim, prediction, simple
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 10:10 AM.