zabean How do I cheat?
Reputation: 0
Joined: 21 May 2011 Posts: 1
|
Posted: Mon Aug 08, 2011 6:13 pm Post subject: Exponential / Square Root Coordinate System ? |
|
|
Hi guys,
I'm trying to create a little helper for a game where I will eventually draw a line connecting two objects on the 2d plane. I've found the pointers for the addresses of the float coordinates but studying the coordinates as the objects move across the plane im noticing some weird behavior that I'm not totally understanding. From what i've gathered the coordinates increase in kind of a square root function, where the difference between 0 and 1 is almost negligible, really small between 1 and 2, and then a rather vast expanse between 3 and 4. Infact crossing over the origin or any axis line, it's hard to even get a number between 1 and -1, it may even skip from -1 to 2. I drew a little diagram explaining this, attached (not to scale really).
I'm wondering what's up with it or if anyones ever encountered this before if it's maybe it's a side effect produced by a certain engine or software.. And if anyone does have experience with it, what exactly the function would be to convert these coords to a regular linear system where I can then draw my line in an overlay.
edit: update: since I can't double post;
I do have the decompiled source for this particular game, and the coordinates are specified in a custom vector type, and for many static elements on the plane they are hard coded in and the numbers are ints ranging from 0 to 400, and they seem to be rectangular, nonnegative, plain old Cartesian type numbers. But when searching for coords in the memory, all I'm finding are these -4 to 4 floats (any other type isn't making sense, and locking these particular addresses is effective in-game) with the variable differences i mentioned previously. I can't seem to find where I would find the conversion of these numbers to what I'm getting.
Also, I've by now tested squaring, square rooting, and cube rooting the values i'm getting for x and y at these addresses, because at first glance they look like exponential values, but alas that didn't give me any good numbers either.
| Description: |
|
| Filesize: |
46.9 KB |
| Viewed: |
4153 Time(s) |

|
|
|