|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Noobiecoder How do I cheat? Reputation: 0
Joined: 01 Aug 2017 Posts: 2
|
Posted: Sat Nov 18, 2017 4:33 am Post subject: Finding difficult values |
|
|
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 |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8516 Location: 127.0.0.1
|
Posted: Sat Nov 18, 2017 8:24 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|