Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


In game coordinates to target a monster

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
inflames66676
How do I cheat?
Reputation: 0

Joined: 15 Mar 2017
Posts: 2

PostPosted: Fri Nov 24, 2017 12:06 pm    Post subject: In game coordinates to target a monster Reply with quote

Hello friends!

I'm writing a bot for a 3d game, and most of the memory preparations have been made.
My current goal is to target a monster and click it.
I have my character's coordinates, the coordinates of the monsters in my field of vision
(so finding the closest one is easy), and the mouse's in-game coordinates.
Parsing the in-game coords' to standard x,y coords' is useless for obvious reasons, so my question is:
given this data, how could one target a monster?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8515
Location: 127.0.0.1

PostPosted: Fri Nov 24, 2017 1:28 pm    Post subject: Reply with quote

Find the function used to click on a monster and target it and invoke it yourself.

Or properly translate the world cords to screen cords and move the mouse and click with standard API accordingly. (This is known as 'WorldToScreen' in various hacks.)

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
inflames66676
How do I cheat?
Reputation: 0

Joined: 15 Mar 2017
Posts: 2

PostPosted: Sat Nov 25, 2017 6:35 am    Post subject: Reply with quote

atom0s wrote:
Find the function used to click on a monster and target it and invoke it yourself.

Or properly translate the world cords to screen cords and move the mouse and click with standard API accordingly. (This is known as 'WorldToScreen' in various hacks.)


I've read about the worldToScreen thing in various sites. It seems to be dealing with fps games (mine is an mmorpg) where you have 4x4 coord' information matrices, the best i could find in my game is the camera angles and coords', so it doesn't seem to help very much.

Tried finding the function that targets creatures by debugging the process with breakpoints, but with no success - the distance between the breakpoint and the actual targeting might be 1000s+ assembly steps (never got to the targeting itself, gave up after a lot of steps).

Thanks for the reply though.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8515
Location: 127.0.0.1

PostPosted: Sun Nov 26, 2017 9:27 pm    Post subject: Reply with quote

Doesn't matter what the type of game is, 3D space is still calculated in the same manner between game types. WorldToScreen is still something you will have to figure out either way. Don't over think it either, it's not as hard as it may seem.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites