View previous topic :: View next topic |
Author |
Message |
Marcus101RR Expert Cheater Reputation: 2
Joined: 09 Mar 2011 Posts: 130 Location: USA, FL
|
Posted: Tue Jul 05, 2016 8:17 pm Post subject: Using an addresses value as a offset pointer? |
|
|
So, I have a game.
My Index is say 3.
I found the playerBase address where all 255 players are stored. I am aware of their offsets and their changes. Each player is off by 4.
I know my player is playerBase -> 4*3 -> My player base address.
How would I use the index I have found with a script and use it in another script or in a pointer offset? I need to multiply my Index Number with 4 in order to get the right pointer offset for my player, where my health and all information is stored, otherwise I get someone else's player data.
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Tue Jul 05, 2016 9:48 pm Post subject: |
|
|
Much simpler to just save the direct player address after you've resolved the offset.
You could use Lua to dynamically change your entry's offset.
There is also a little CE hack you could do after "Index" has been populated with the correct value.
Code: | [ENABLE]
label(player_index)
registersymbol(player_index)
[Index]:
player_index:
[DISABLE] |
Once you enable that, "player_index" will have its address set to match the value of "Index" (6 in your screenshot).
Now you can create a table entry with the address "+player_index*4"
Move that entry as a child under your "players[]" entry
|
|
Back to top |
|
|
Marcus101RR Expert Cheater Reputation: 2
Joined: 09 Mar 2011 Posts: 130 Location: USA, FL
|
Posted: Wed Jul 06, 2016 8:01 am Post subject: |
|
|
Zanzer wrote: | Much simpler to just save the direct player address after you've resolved the offset.
You could use Lua to dynamically change your entry's offset.
There is also a little CE hack you could do after "Index" has been populated with the correct value.
Code: | [ENABLE]
label(player_index)
registersymbol(player_index)
[Index]:
player_index:
[DISABLE] |
Once you enable that, "player_index" will have its address set to match the value of "Index" (6 in your screenshot).
Now you can create a table entry with the address "+player_index*4"
Move that entry as a child under your "players[]" entry |
Each of the 255 players is a pointer offset, not a direct offset off the base address, so this wouldn't work. I need to use it on a pointer.
Doesn't work:
|
|
Back to top |
|
|
panraven Grandmaster Cheater Reputation: 55
Joined: 01 Oct 2008 Posts: 942
|
|
Back to top |
|
|
|