TKC-Community

Hacking and Art => General Modding & Programming / Other Games => Topic started by: MrMedic on July 14, 2008, 08:24:50 pm

Title: BF2 AIMBOT
Post by: MrMedic on July 14, 2008, 08:24:50 pm
Code: (cpp) [Select]


PPEnemytargetCheat::PPEnemytargetCheat()
{
encryptedtarget_helper__name = estr_PPEnemytarget;

virtual_key = VK_NUMPAD9;
disable_key = VK_SHIFT;

ConfigParam param;

param.type = ConfigParam::param_vkey;
param.address = &disable_key;
config_parameters.push_back(param);

Enable(TRUE);
}


BOOL PPEnemytargetCheat::Apply(BOOL apply)
{
if(apply && !player_manager) return FALSE;
return TRUE;
}


void PPEnemytargetCheat::Refresh(void)
{
if(         !GetAsyncKeyState(VK_SHIFT)
|| !_VECvectors_To__player
|| hud_manager->mouseActive
|| !_VECvectors_To__info.Refresh()
)
return;

     

INPUT input;

list<BF2BasePlayer*>::iterator PPEnemy_iter;

D3DXVECTOR3 temp_vector;

BF2BasePlayer* PPEnemy_player;

PPEnemyInformation PPEnemy;
D3DXVECTOR3 PPEnemy_pos;
D3DXVECTOR3 dir_to_PPEnemy;
float PPEnemy_importance;
float PPEnemy_z;

PPEnemyInformation best_PPEnemy;
D3DXVECTOR3 best_dir;
D3DXVECTOR3 best_projected;
float best_importance;
BOOL got_PPEnemy;



if( !_VECvectors_To__player->player_object
|| !_VECvectors_To__player->player_object->ptr
||  _VECvectors_To__player->vehicle_seat_num < 0
|| !_VECvectors_To__player->player_alive
||  _VECvectors_To__player->player_down
) return;


best_importance = 20.0f;
got_PPEnemy = FALSE;


// lets list through the bastards :)
for( PPEnemy_iter = player_manager->player_list.begin();
PPEnemy_iter != player_manager->player_list.end();
PPEnemy_iter++ )
{               
PPEnemy_player = *PPEnemy_iter;

if( PPEnemy_player == _VECvectors_To__player
|| PPEnemy_player->vehicle_seat_num < 0 // not spawned or is in limbo
|| !PPEnemy_player->player_alive
|| PPEnemy_player->player_down
|| PPEnemy_player->player_team == _VECvectors_To__player->player_team
||     !PPEnemy_player->player_object
||     !PPEnemy_player->player_object->ptr
)
continue;

if( !PPEnemy.NewPPEnemy(PPEnemy_player)
||     !PPEnemy.IsGoodDistance()
||     !PPEnemy.GetDirectionToPPEnemy(&dir_to_PPEnemy)
)
continue;

PPEnemy_z = D3DXVec3Dot( _VECvectors_To__info.AIMVECSDir(), &dir_to_PPEnemy);


if(PPEnemy_z < cosf(PPEnemytarget__VECvectors_ANGLE))
continue;

PPEnemy_importance = 1.0f - PPEnemy_z;


PPEnemy_importance += PPEnemy.GetDistanceToPPEnemy() / 100.0f;


if( PPEnemy_importance < best_importance )
{               
best_importance = PPEnemy_importance;
best_PPEnemy = PPEnemy;
best_dir = dir_to_PPEnemy;
got_PPEnemy = TRUE;
}
}

if(got_PPEnemy && best_PPEnemy.AIMVECSVector(&dir_to_PPEnemy))
{               
float angle_x, angle_y;

angle_x = asin( D3DXVec3Dot(_VECvectors_To__info.AIMVECSRight(), &dir_to_PPEnemy) );
angle_y = asin( D3DXVec3Dot(_VECvectors_To__info.AIMVECSUp(), &dir_to_PPEnemy) );

if(_VECvectors_To__info.GetObject() == _VECvectors_To__info.GetSoldier())
SoldierAngleCalculation( &aimset.multipli.dx, &aimset.multipli.dy, angle_x, angle_y );
else
VehicleAngleCalculation( &aimset.multipli.dx, &aimset.multipli.dy, angle_x, angle_y );



aimset.multipli.dx *= 0.5f + 0.5f * cosf(angle_x / PPEnemytarget__VECvectors_ANGLE * M_PI * 2);
aimset.multipli.dy *= 0.5f + 0.5f * cosf(angle_y / PPEnemytarget__VECvectors_ANGLE * M_PI * 2);

aimset.multipli.mouseData = 0;
aimset.multipli.dwFlags = 0;
aimset.multipli.time = 0;
aimset.multipli.dwExtraInfo = GetMessageExtraInfo();
input.type = INPUT_MOUSE;

SendInput( 1, &input, sizeof(input) );
}

}

have fun :)
Title: Re: BF2 AIMBOT
Post by: Oynky on July 14, 2008, 08:42:54 pm
Nice release medic.

Aimbots own in BF2, just like CSS. I hope they fix the hitbox problem in 1.5 comming soon.
Shoot on a running enemy 100% accurate wont hurt, thats just retarted lol.
Title: Re: BF2 AIMBOT
Post by: Frank P. on July 15, 2008, 02:18:18 pm
You know, there's a perfectly good BF2/2142 section. Additionally, nice aimbot. It seems as though it's easy as you've only got a couple of lines there...
Title: Re: BF2 AIMBOT
Post by: Oynky on July 15, 2008, 03:42:20 pm
You know, there's a perfectly good BF2/2142 section. Additionally, nice aimbot. It seems as though it's easy as you've only got a couple of lines there...

An aimbot is an aimbot. It aims for enemies.
Only at 190m+ u need a bulled drop ajustment.
And at 80m+ a speed ajustment.
So if this would work it be perfect on Karkand for example.
Title: Re: BF2 AIMBOT
Post by: Frank P. on July 15, 2008, 03:59:34 pm
You know, there's a perfectly good BF2/2142 section. Additionally, nice aimbot. It seems as though it's easy as you've only got a couple of lines there...

An aimbot is an aimbot. It aims for enemies.
Only at 190m+ u need a bulled drop ajustment.
And at 80m+ a speed ajustment.
So if this would work it be perfect on Karkand for example.
I.e Close Quarters? It still amazes me how small an aimbot can be and how it only really needs/has a few lines to it.
Title: Re: BF2 AIMBOT
Post by: MrMedic on July 15, 2008, 04:12:37 pm
feel free to move it to the bf2 section , i would do it myself but for some reason my mod status is no longer with my account , must have been when i left tkc they never saw fit to reinstate me. not too botherd about that though just meens more work , i am admin on 5 forums and moderator to 3 others

jahovus please feel free to move the posts if you wish to put it in the appropriate section :)
Title: Re: BF2 AIMBOT
Post by: MrMedic on July 15, 2008, 04:18:35 pm
You know, there's a perfectly good BF2/2142 section. Additionally, nice aimbot. It seems as though it's easy as you've only got a couple of lines there...

aimbots usually are small , very complicated math's usually , as most games do not have functions to reverse the enemy x y z to an onscreen position.

however aim assists are not a new thing for bf games , we had an early prototype way back on bf 1942 when such aim assists were classed in general as impossible but infact they were very possible, for some reason people sempt to think aimbotting was a myth for bf series games untill very recently when they actually started to surface in the public forums.
Title: Re: BF2 AIMBOT
Post by: Frank P. on July 15, 2008, 04:48:25 pm
I don't have admin status, just mod in a couple of sections :P

I never been good at mathematics so I probably wouldn't be able to make an aimbot but geez your one is astonishing. I also notice a fair few of the lines have to do with vehicles, are you able to use this method or similarities of it in making other aimbots? I.e, If I were to make a VC Aimbot based on this method and of course removed all of the irrelevant lines, it would still work?

How long did it take you to make this by the way? I have to +1 you either way. Also, I would be incredibly interested to learn this, are there any books or tutorials that you would recommend to be able to do stuff involving coordinates i.e aimbots, teleporters etc.
Title: Re: BF2 AIMBOT
Post by: Oynky on July 15, 2008, 07:13:44 pm
I did some google'ing' and found this http://www.187ci.com/source-codes/11558-c-aimbot-source-wtf.html#post103660  :icon_magician
Looks alot like each other
Title: Re: BF2 AIMBOT
Post by: MrMedic on July 15, 2008, 07:39:26 pm
I don't have admin status, just mod in a couple of sections :P

I never been good at mathematics so I probably wouldn't be able to make an aimbot but geez your one is astonishing. I also notice a fair few of the lines have to do with vehicles, are you able to use this method or similarities of it in making other aimbots? I.e, If I were to make a VC Aimbot based on this method and of course removed all of the irrelevant lines, it would still work?

How long did it take you to make this by the way? I have to +1 you either way. Also, I would be incredibly interested to learn this, are there any books or tutorials that you would recommend to be able to do stuff involving coordinates i.e aimbots, teleporters etc.

well firstly the aimbot could easily be adapted to other games , the bf series especially but i cant really talk about that for personal reasons.

this could be adapted to make an aimbot for vc quite easily , yes.

time to make it was around 45 minutes.

books .. hmm it really depends on your knowledge of languages ( programming ) if you supply me with what you know then i could give a more accurate answer.

Title: Re: BF2 AIMBOT
Post by: MrMedic on July 15, 2008, 07:45:02 pm
I did some google'ing' and found this http://www.187ci.com/source-codes/11558-c-aimbot-source-wtf.html#post103660  :icon_magician
Looks alot like each other

all bf2 sources will have some resemblence but mainly the 187 looks a lot like my work because i posted some of this source about 12 month ago in a private forum and some *removed the swearing* leaked it ( i got him back for it , think he needed a new pc .. had nothing to do with me though :) .., that was the last time i shared it untill now btw it was origionally for 2142 this one , i was going to release it in the xmas party hack way back but i took the bot out incase it got leaked .. and that hack did end up getting leaked .. so i was lucky there.
Title: Re: BF2 AIMBOT
Post by: Frank P. on July 16, 2008, 11:29:00 am
I don't have admin status, just mod in a couple of sections :P

I never been good at mathematics so I probably wouldn't be able to make an aimbot but geez your one is astonishing. I also notice a fair few of the lines have to do with vehicles, are you able to use this method or similarities of it in making other aimbots? I.e, If I were to make a VC Aimbot based on this method and of course removed all of the irrelevant lines, it would still work?

How long did it take you to make this by the way? I have to +1 you either way. Also, I would be incredibly interested to learn this, are there any books or tutorials that you would recommend to be able to do stuff involving coordinates i.e aimbots, teleporters etc.

well firstly the aimbot could easily be adapted to other games , the bf series especially but i cant really talk about that for personal reasons.

this could be adapted to make an aimbot for vc quite easily , yes.

time to make it was around 45 minutes.

books .. hmm it really depends on your knowledge of languages ( programming ) if you supply me with what you know then i could give a more accurate answer.


Well your aimbot looks complicated so if it were between Basic - Intermediate - Expert then I'd say it would be Basic but bordering Intermediate. I'd be looking for a book that may explain what the abbreviations etc mean't i.e PPEnemy (what the PP mean't) and perhaps the structure of an aimbot or something that is close to it.
Title: Re: BF2 AIMBOT
Post by: MrMedic on July 16, 2008, 06:51:59 pm
I don't have admin status, just mod in a couple of sections :P

I never been good at mathematics so I probably wouldn't be able to make an aimbot but geez your one is astonishing. I also notice a fair few of the lines have to do with vehicles, are you able to use this method or similarities of it in making other aimbots? I.e, If I were to make a VC Aimbot based on this method and of course removed all of the irrelevant lines, it would still work?

How long did it take you to make this by the way? I have to +1 you either way. Also, I would be incredibly interested to learn this, are there any books or tutorials that you would recommend to be able to do stuff involving coordinates i.e aimbots, teleporters etc.

well firstly the aimbot could easily be adapted to other games , the bf series especially but i cant really talk about that for personal reasons.

this could be adapted to make an aimbot for vc quite easily , yes.

time to make it was around 45 minutes.

books .. hmm it really depends on your knowledge of languages ( programming ) if you supply me with what you know then i could give a more accurate answer.


Well your aimbot looks complicated so if it were between Basic - Intermediate - Expert then I'd say it would be Basic but bordering Intermediate. I'd be looking for a book that may explain what the abbreviations etc mean't i.e PPEnemy (what the PP mean't) and perhaps the structure of an aimbot or something that is close to it.

well , basically the PP meens Play Pointer to me but it could have been called PandaFart->Local_playerisadickhead->is_theprick_alive etc it depends on what relevance you want to use in the name convention the main way of doing things is

dwWHATEVER which is DWORD dwWHATEVER hence dw precidense

to remind you it is defined as DWORD

same with float fMy_Location etc etc

or type casting (int)etc

also pointers * and & commands etc etc i wont go on it will only confuse you..

hers a couple of golden rules:
REMEMBER to dw and f etc incase you are away from the code for while it will help you get back to it quickly i very rarely do this il explain in the bracket

allways check the first line in error's it almost allways precedes the rest of the errors

allways comment // this does this etc ( i never do this as i have a photgraphic memory iq 212 it has dropped but i was hung over when i took the test :D )




now books ... hmm

Dietel & Dietel's C++ Programming seems worth a read.

fortunately for me i no longer require books on any language , i suppose one day i may even write one or two maybe even the art of hacking games :D.
Title: Re: BF2 AIMBOT
Post by: Frank P. on July 18, 2008, 11:13:24 am
I don't have admin status, just mod in a couple of sections :P

I never been good at mathematics so I probably wouldn't be able to make an aimbot but geez your one is astonishing. I also notice a fair few of the lines have to do with vehicles, are you able to use this method or similarities of it in making other aimbots? I.e, If I were to make a VC Aimbot based on this method and of course removed all of the irrelevant lines, it would still work?

How long did it take you to make this by the way? I have to +1 you either way. Also, I would be incredibly interested to learn this, are there any books or tutorials that you would recommend to be able to do stuff involving coordinates i.e aimbots, teleporters etc.

well firstly the aimbot could easily be adapted to other games , the bf series especially but i cant really talk about that for personal reasons.

this could be adapted to make an aimbot for vc quite easily , yes.

time to make it was around 45 minutes.

books .. hmm it really depends on your knowledge of languages ( programming ) if you supply me with what you know then i could give a more accurate answer.


Well your aimbot looks complicated so if it were between Basic - Intermediate - Expert then I'd say it would be Basic but bordering Intermediate. I'd be looking for a book that may explain what the abbreviations etc mean't i.e PPEnemy (what the PP mean't) and perhaps the structure of an aimbot or something that is close to it.

well , basically the PP meens Play Pointer to me but it could have been called PandaFart->Local_playerisadickhead->is_theprick_alive etc it depends on what relevance you want to use in the name convention the main way of doing things is

dwWHATEVER which is DWORD dwWHATEVER hence dw precidense

to remind you it is defined as DWORD

same with float fMy_Location etc etc

or type casting (int)etc

also pointers * and & commands etc etc i wont go on it will only confuse you..

hers a couple of golden rules:
REMEMBER to dw and f etc incase you are away from the code for while it will help you get back to it quickly i very rarely do this il explain in the bracket

allways check the first line in error's it almost allways precedes the rest of the errors

allways comment // this does this etc ( i never do this as i have a photgraphic memory iq 212 it has dropped but i was hung over when i took the test :D )




now books ... hmm

Dietel & Dietel's C++ Programming seems worth a read.

fortunately for me i no longer require books on any language , i suppose one day i may even write one or two maybe even the art of hacking games :D.
Wow you've explained a lot. +1 and I will get the book. Hopefully (one day) I will become as knowledgeable as you. Till then..
Title: Re: BF2 AIMBOT
Post by: MrMedic on July 18, 2008, 10:58:50 pm
video


http://www.youtube.com/watch?v=Er4aEE3ds1M

of the aimbot in action
Title: Re: BF2 AIMBOT
Post by: Oynky on July 19, 2008, 02:09:53 am
*cough*Doubt that will work on a mp ranked server without a mod*cough*
Title: Re: BF2 AIMBOT
Post by: MrMedic on July 19, 2008, 04:45:46 am
*cough*Doubt that will work on a mp ranked server without a mod*cough*

(http://www.healthbolt.net/wp-content/uploads/2008/01/pd_cough_syrup_070816_ms.jpg)

you got a nasty cough there m8 lol







Title: Re: BF2 AIMBOT
Post by: Oynky on July 19, 2008, 02:50:02 pm
Nah im not shure if its a real cough tho  :icon_laugh But .. wasnt it imposible to get the bullets a no spread like that?  :unsure Or u found a new way 0_0
Title: Re: BF2 AIMBOT
Post by: MrMedic on July 19, 2008, 06:38:58 pm
Nah im not shure if its a real cough tho  :icon_laugh But .. wasnt it imposible to get the bullets a no spread like that?  :unsure Or u found a new way 0_0

you meen this :

   long Bullet_Dev_Additive;
   long Bullet_Dev_Subtraction;
   long Bullet_Dev_Maximum;

and hasrecoilvalue ( in the main exe ) yes ? well .. this will not work in multiplayer unless you minus the view angle from the current dev , this makes the screen shake horribly. as you can see in the vid myne doesnt shake

just because some others say it's not possible thats upto them to say that

but me crossmol , biker , raven know that no spread is very possible in multiplayer , ie the 2142 hack

its exactly the same in bf2

oynky as i say to people i teach .. the simplest way is allways the best way.

but its possible to change something without going into reversing the dev calculations i wont be discussing it any further now , if you doubt it , then that is your problem not myne :).

btw it's not a 'new way' it is an old way the same method works as far back as the origional game 1942 , works on bfv , and it works on 2142 as well.
Title: Re: BF2 AIMBOT
Post by: ZOldDude on July 21, 2008, 06:37:48 pm
Quote
the simplest way is allways the best way.
Yes it is.
I have seen very smart people run into a wall because they think too hard...when all they need to do is step back and do it a simple way.
Title: Re: BF2 AIMBOT
Post by: Frank P. on July 22, 2008, 10:56:55 am
Quote
the simplest way is allways the best way.
Yes it is.
I have seen very smart people run into a wall because they think too hard...when all they need to do is step back and do it a simple way.
Another life lesson from Z. Also his 8700 post! My maths teacher and English teacher alike say things like this to me. I never listen but I was just putting it out there :D
Title: Re: BF2 AIMBOT
Post by: ZooZlo on July 25, 2008, 03:28:37 pm
Is this in C++ or C#?

offtopic: God, that has been awhile since ive been here  :icon_o_o
Title: Re: BF2 AIMBOT
Post by: ZOldDude on July 26, 2008, 03:55:04 am
Is this in C++ or C#?

offtopic: God, that has been awhile since ive been here  :icon_o_o
ZiFoX !
Title: Re: BF2 AIMBOT
Post by: ZiFoX- on July 27, 2008, 05:34:28 pm
Yeah thats me, new nickname :icon_laugh  :icon_biggrin2
Title: Re: BF2 AIMBOT
Post by: Oynky on July 27, 2008, 08:40:26 pm
Yeah thats me, new nickname :icon_laugh  :icon_biggrin2

First ZooZlo, then Twiztid and now ZiFoX rofl..
I had KingRuben and Oynky for the past 5 years now..
Title: Re: BF2 AIMBOT
Post by: MrMedic on August 01, 2008, 08:50:09 pm
would anyone say that 34 - 8 is a fair score ?

well the germans dont think so go 10% over and its 

message at the top

REMOVING ****myname**** StatPadding -> Cheating for 1337 minutes [Admin Decision]

time for the unbanner and cartillary , really annoying though that they think they can hit the ban button and forget about you .. crashy server time :D

fkn only shot 18 people in a row with a knife ..
Title: Re: BF2 AIMBOT
Post by: ZOldDude on August 03, 2008, 01:15:18 am
Still looking for a copy/link for BF2.
No software shops withen a HALF DAY LONG CAR RIDE...ONE DAMN DIRECTION have it.
Title: Re: BF2 AIMBOT
Post by: [TKC]phranz on August 03, 2008, 02:22:42 am
do u need a copy, or a key/account?
Title: Re: BF2 AIMBOT
Post by: ZOldDude on August 03, 2008, 04:19:40 am
Why...yes I do (both).

I would buy one but nobody in this part of California,or 200 miles into Oregon...or even 4 1/2 hour drive away in Reno,Nevada sales anything but crappy -console games- !

I also have a copy of a torrent file but gave up looking in my boxed HD's after almost 3 hours of swapping them via my USB adaptor and only looking in about 1/3 of them.
 
Title: Re: BF2 AIMBOT
Post by: Crossmol on August 03, 2008, 05:29:38 pm
Checked my stuff Z, not even request was filled. Sorry :(
Title: Re: BF2 AIMBOT
Post by: MrMedic on August 03, 2008, 09:12:30 pm
i can get him a download right now problem is he hasnt got a r/s account
Title: Re: BF2 AIMBOT
Post by: [TKC]phranz on August 03, 2008, 10:53:57 pm
he could use my r/s prem. acc...


back in 20 minutes....  z pm me if u wanna use my acc.!
Title: Re: BF2 AIMBOT
Post by: ZOldDude on August 03, 2008, 11:23:44 pm
PM sent...already sent a PM to thank you for the other help.
Title: Re: BF2 AIMBOT
Post by: Jimmy on August 04, 2008, 10:23:34 pm
did you know that are companies where you can order products, and get them shipped till your doorstep?  :icon_o_o
Title: Re: BF2 AIMBOT
Post by: ZOldDude on August 05, 2008, 01:34:23 am
Yes I know...but the shipping is more than the cost of the product this time around!
Title: Re: BF2 AIMBOT
Post by: Jimmy on August 05, 2008, 11:02:23 am
That sucks,  :smile
Title: Re: BF2 AIMBOT
Post by: ZOldDude on August 05, 2008, 09:40:52 pm
That sucks,  :smile
Yes.
Yes it does!

Now if the URL Medic tried to PM me could be sent to my email (forum edits that URL) I could get set up and ready for this weekend.
Title: Re: BF2 AIMBOT
Post by: MrMedic on August 06, 2008, 03:14:47 am
sent you a pm
Title: Re: BF2 AIMBOT
Post by: MrMedic on August 06, 2008, 03:15:37 am
it's brutal lol
Title: Re: BF2 AIMBOT
Post by: ZOldDude on August 18, 2008, 02:27:16 am
Well first I want to thank those who helped me reinstall BF2.

However...after a few days of playing it again I now remember why I uninstalled it so long ago.
The game sucks big time,so much so I can't undestand why anyone would bother with it.
Uninstalled it -again- just now.
Title: Re: BF2 AIMBOT
Post by: Oynky on August 18, 2008, 03:38:04 am
It doesnt sucks with the right toys :icon_laugh
Try some sniper servers Z, u would be amazed how hard that is to master
Title: Re: BF2 AIMBOT
Post by: MrMedic on August 18, 2008, 05:46:30 am
Well first I want to thank those who helped me reinstall BF2.

However...after a few days of playing it again I now remember why I uninstalled it so long ago.
The game sucks big time,so much so I can't undestand why anyone would bother with it.
Uninstalled it -again- just now.

z in bf2 you will get raped without hacks of some kind almost all the players are using them using that public function offset shit for pb , either tags or something more .. you should of asked for something from me , and you would have all of a sudden really liked the game ;)
Title: Re: BF2 AIMBOT
Post by: ZOldDude on August 18, 2008, 06:29:48 am
I think people misunderstand what I was trying to say.
->The game it's self sucks even in SP mode...in fact all the BF games seem the same.<-
I would never buy the game let alone keep it installed which explains why I had deleated it/them and could not find them on 1/3 of my newer saved/boxed HD's. I probibly have them burned to disk however.
Title: Re: BF2 AIMBOT
Post by: Oynky on August 18, 2008, 05:10:20 pm
->The game it's self sucks even in SP mode...in fact all the BF games seem the same.<-

Battlefield is never ment to have a good SP, its just pretty much a training for newcomers.
Title: Re: BF2 AIMBOT
Post by: Sherba2 on September 13, 2008, 03:25:32 am
Hi to all :D

Im very noob for this ...  :icon_sad2
how to use it????  :icon_o_o


Thanks  :icon_shifty
Title: Re: BF2 AIMBOT
Post by: Crossmol on September 13, 2008, 02:47:14 pm
It's actually  a snipet of sourcecode for C++. If you don't know any C++ then it's no use to you. There are several good gooks and tuts on the internet for learning tho.
Title: Re: BF2 AIMBOT
Post by: Sherba2 on September 13, 2008, 10:59:50 pm
Ok thanks
Title: Re: BF2 AIMBOT
Post by: GermanArmyX on January 10, 2009, 01:14:59 am
Code: (cpp) [Select]


PPEnemytargetCheat::PPEnemytargetCheat()
{
encryptedtarget_helper__name = estr_PPEnemytarget;

virtual_key = VK_NUMPAD9;
disable_key = VK_SHIFT;

ConfigParam param;

param.type = ConfigParam::param_vkey;
param.address = &disable_key;
config_parameters.push_back(param);

Enable(TRUE);
}


BOOL PPEnemytargetCheat::Apply(BOOL apply)
{
if(apply && !player_manager) return FALSE;
return TRUE;
}


void PPEnemytargetCheat::Refresh(void)
{
if(         !GetAsyncKeyState(VK_SHIFT)
|| !_VECvectors_To__player
|| hud_manager->mouseActive
|| !_VECvectors_To__info.Refresh()
)
return;

     

INPUT input;

list<BF2BasePlayer*>::iterator PPEnemy_iter;

D3DXVECTOR3 temp_vector;

BF2BasePlayer* PPEnemy_player;

PPEnemyInformation PPEnemy;
D3DXVECTOR3 PPEnemy_pos;
D3DXVECTOR3 dir_to_PPEnemy;
float PPEnemy_importance;
float PPEnemy_z;

PPEnemyInformation best_PPEnemy;
D3DXVECTOR3 best_dir;
D3DXVECTOR3 best_projected;
float best_importance;
BOOL got_PPEnemy;



if( !_VECvectors_To__player->player_object
|| !_VECvectors_To__player->player_object->ptr
||  _VECvectors_To__player->vehicle_seat_num < 0
|| !_VECvectors_To__player->player_alive
||  _VECvectors_To__player->player_down
) return;


best_importance = 20.0f;
got_PPEnemy = FALSE;


// lets list through the bastards :)
for( PPEnemy_iter = player_manager->player_list.begin();
PPEnemy_iter != player_manager->player_list.end();
PPEnemy_iter++ )
{               
PPEnemy_player = *PPEnemy_iter;

if( PPEnemy_player == _VECvectors_To__player
|| PPEnemy_player->vehicle_seat_num < 0 // not spawned or is in limbo
|| !PPEnemy_player->player_alive
|| PPEnemy_player->player_down
|| PPEnemy_player->player_team == _VECvectors_To__player->player_team
||     !PPEnemy_player->player_object
||     !PPEnemy_player->player_object->ptr
)
continue;

if( !PPEnemy.NewPPEnemy(PPEnemy_player)
||     !PPEnemy.IsGoodDistance()
||     !PPEnemy.GetDirectionToPPEnemy(&dir_to_PPEnemy)
)
continue;

PPEnemy_z = D3DXVec3Dot( _VECvectors_To__info.AIMVECSDir(), &dir_to_PPEnemy);


if(PPEnemy_z < cosf(PPEnemytarget__VECvectors_ANGLE))
continue;

PPEnemy_importance = 1.0f - PPEnemy_z;


PPEnemy_importance += PPEnemy.GetDistanceToPPEnemy() / 100.0f;


if( PPEnemy_importance < best_importance )
{               
best_importance = PPEnemy_importance;
best_PPEnemy = PPEnemy;
best_dir = dir_to_PPEnemy;
got_PPEnemy = TRUE;
}
}

if(got_PPEnemy && best_PPEnemy.AIMVECSVector(&dir_to_PPEnemy))
{               
float angle_x, angle_y;

angle_x = asin( D3DXVec3Dot(_VECvectors_To__info.AIMVECSRight(), &dir_to_PPEnemy) );
angle_y = asin( D3DXVec3Dot(_VECvectors_To__info.AIMVECSUp(), &dir_to_PPEnemy) );

if(_VECvectors_To__info.GetObject() == _VECvectors_To__info.GetSoldier())
SoldierAngleCalculation( &aimset.multipli.dx, &aimset.multipli.dy, angle_x, angle_y );
else
VehicleAngleCalculation( &aimset.multipli.dx, &aimset.multipli.dy, angle_x, angle_y );



aimset.multipli.dx *= 0.5f + 0.5f * cosf(angle_x / PPEnemytarget__VECvectors_ANGLE * M_PI * 2);
aimset.multipli.dy *= 0.5f + 0.5f * cosf(angle_y / PPEnemytarget__VECvectors_ANGLE * M_PI * 2);

aimset.multipli.mouseData = 0;
aimset.multipli.dwFlags = 0;
aimset.multipli.time = 0;
aimset.multipli.dwExtraInfo = GetMessageExtraInfo();
input.type = INPUT_MOUSE;

SendInput( 1, &input, sizeof(input) );
}

}

have fun :)






How can i activate this aimbot and where i have to put this file in and in what format ?

Sorry for my bad english ^^
Title: Re: BF2 AIMBOT
Post by: [TKC]Symantic on January 10, 2009, 01:32:50 am

How can i activate this aimbot and where i have to put this file in and in what format ?

Sorry for my bad english ^^

i think he wanted to say "medic can i ask you a question" but as he said he didn't know the English to say that.
btw. when you gona let me in ts m8?
Title: Re: BF2 AIMBOT
Post by: terrorr on October 20, 2013, 01:59:38 pm
how to use it?
Title: Re: BF2 AIMBOT
Post by: workachev on January 24, 2014, 07:54:08 am
Time to install bf2 again  :icon_biggrin2
Title: Re: BF2 AIMBOT
Post by: Lewi on February 12, 2014, 02:37:58 am
thanks