How do I cheat?
Joined: 06 May 2017
|Posted: Sat May 13, 2017 6:01 am Post subject: Sneaky writes and pointers
I am trying to find the pointer which points to the currently controlled car in a game. I have found two cars' speeds and their type which are both on 4 bytes. However, when I get into the first car, scan for its pointers, then swap to the other car, it finds no pointers, so it is obvious that these are being accessed via offsets, the base of the cars which I have yet to find.
The interesting thing is that these speed and type values are in an "array" so to speak. There is a limited amount of cars that can be stored within the game, thus these values are right next to each other.
When I try to check what writes the currently controlled car's speed, it seems that the game writes it on every update even if I am not in the car. When I control the car and move it, no new writes happen beside those every logic tick updates.
Is there a way I can get the base address of the cars only knowing these addresses which are certainly not near the base address?
In the meantime I have found the currently controlled car's base pointer address. One step closer to the car's speed base pointer address.