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 


Finding difficult values

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

Joined: 01 Aug 2017
Posts: 2

PostPosted: Sat Nov 18, 2017 4:33 am    Post subject: Finding difficult values Reply with quote

Hello, how do I search for values which could help me find a clear path of fire to enemy in games? If I make lines to enemies, I would like to make it red line when enemy is behind wall, but if the path is clear, the line becomes blue.

In other words, what values am I supposed to be looking for to check constantly if enemy is in line of sight?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Sat Nov 18, 2017 8:24 pm    Post subject: Reply with quote

Generally, you would want to reverse the game engine for things like this. Find where the game handles hit testing itself and make use of the functions in your own code.

For example, a game could have a call setup like:
Code:

bool hitTest(Entity* a, Entity* b) {
    // Calculations are done here to test visibility..
    // between entity 'a' and 'b'. If valid, return true,
    // otherwise, false.
    return true;
}


You could then use this function yourself by directly calling it via injection or other means depending on how you want to setup things.

Outside of this, doing everything that would be needed to do this manually would be a lot of work as you have to factor in a bunch of different data. So you are best off looking for the games own functions to handle things like this.

_________________
- 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 -> Cheat Engine 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