Solved Battlefield 2 Overlay Hack

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

imonfire

Newbie
Jan 29, 2014
2
212
0
I am trying to code a very Simple BF2 Hack.

It only has to have 3 Features:

1. Be an Overlay
2. Simple ESP Box (Only on Enemy team)
3. Draw ESP Box in different color if enemy is in Vehicle.

I Managed to get a working Direct X overlay over the Game but am struggling with drawing the ESP boxes. Anybody willing to help me out or point me in the right direction?

Thanks
 

mambda

headass
Escobar Tier VIP
Trump Tier Donator
Jun 25, 2014
2,298
37,938
269
Вroihon;40631 said:
didn't know that was possible. must be some really weird layered window magic.
Spawn window
Make window transparent
Set dimensions to target game dimensions
Draw on transparent window
Profit

Our Start Here Guide to Learning Direct3D
https://guidedhacking.com/threads/how-to-get-started-with-directx-9-direct3d9-hooking.10402/

Use this D3D9 drawing class as a reference:
https://guidedhacking.com/threads/directx-9-overlay.4577/

Get D3D Device & Endscene Address for D3D9 and D3D11:
https://guidedhacking.com/threads/get-direct3d9-and-direct3d11-devices-dummy-device-method.11867/

D3D9 EndScene Hook Template:
https://guidedhacking.com/threads/d3d9-endscene-hook-template-using-dummy-device.14008/
 
Last edited by a moderator:

imonfire

Newbie
Jan 29, 2014
2
212
0
I have watched all of Fleeps videos and thanks for the fast reply. But the Video you posted is anout an Internal Hack....
 

Broihon

edgy 12 y/o
Escobar Tier VIP
Fleep Tier Donator
Dec 22, 2013
1,746
40,528
316
I have watched all of Fleeps videos and thanks for the fast reply. But the Video you posted is anout an Internal Hack....
If you have a DirectX overlay your hack has to be internal...
 

Khonnor

Newbie
Full Member
Mar 7, 2014
30
1,248
0
Вroihon;40627 said:
If you have a DirectX overlay your hack has to be internal...

https://www.unkn0wncheats.me/forum/direct3d/100558-directx-external-overlay-release.html

Isn't this one though?
This is what I've been using at least.


I am trying to code a very Simple BF2 Hack.

It only has to have 3 Features:

1. Be an Overlay
2. Simple ESP Box (Only on Enemy team)
3. Draw ESP Box in different color if enemy is in Vehicle.

I Managed to get a working Direct X overlay over the Game but am struggling with drawing the ESP boxes. Anybody willing to help me out or point me in the right direction?

Thanks
Are you able to cycle through the entities you need and grab information such as their coordinates?
I have very little experience with creating an ESP, but all I needed was my enemy's coordinates, and the viewmatrix.

I would then feed the coordinates through a World2Screen function and then draw squares over the return values (I think?)

Honestly finding the viewmatrix in a game proved to be more difficult than getting the ESP to work correctly.
 

Broihon

edgy 12 y/o
Escobar Tier VIP
Fleep Tier Donator
Dec 22, 2013
1,746
40,528
316
Spawn window
Make window transparent
Set dimensions to target game dimensions
Draw on transparent window
Profit
why is a viewport not fucking transparent in first place...
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods