| View previous topic :: View next topic |
| Author |
Message |
alesyt0h Newbie cheater
Reputation: 0
Joined: 12 Aug 2015 Posts: 19
|
Posted: Tue Jul 26, 2016 4:37 am Post subject: How exactly float values work? |
|
|
Hello!
I'm trying to understand more and learning about CE and gamehacking, for now I have a question regard float values, exactly coordinates.
Let's say I have an x coordinate, that's how they appear on my game : 256.264801
When I move inside the game, I see the coordinate is changing real fast, like, pressing w one single time will be 256.864801 or something. Never got the same value for a single key press...
So, my question is, are the float coordinates, increasing their value by 000.000001 with an awesome speed till they reach the new location? Or are they increased by a larger bunch of numbers like 0.10 or something?
Thanks!
|
|
| Back to top |
|
 |
ulysse31 Master Cheater
Reputation: 2
Joined: 19 Mar 2015 Posts: 324 Location: Paris
|
Posted: Tue Jul 26, 2016 6:50 am Post subject: |
|
|
That's very easy to find out for you :
Enable VEH debugger, right click the variable holding coordonates, find out what writes to it. There is a count of the number of times a value is written. You can walk, calculate the difference between coordonates and compare it with the number of time your address was written to.
You can also set a memory breakpoint, break on write, and see the new value being written to your variable, check how much the value is increasing / drecreasing
|
|
| Back to top |
|
 |
alesyt0h Newbie cheater
Reputation: 0
Joined: 12 Aug 2015 Posts: 19
|
Posted: Tue Jul 26, 2016 9:22 am Post subject: |
|
|
well the count is more than 2000.. will took ages xD Also breakpoint on the write address crash the game.
I cant do it with some lua script or assembly and write them into a log file?
|
|
| Back to top |
|
 |
cooleko Grandmaster Cheater
Reputation: 11
Joined: 04 May 2016 Posts: 717
|
|
| Back to top |
|
 |
|