| View previous topic :: View next topic |
| Author |
Message |
NanoByte Expert Cheater
Reputation: 1
Joined: 13 Sep 2013 Posts: 222
|
Posted: Tue Jun 03, 2014 9:19 am Post subject: Same Pointer, 2 value? WTF |
|
|
mov [rbx+20],eax
//based on data/dissect - structure - "rbx-20"
offset 20 access both ammo and grenade both ammo and grenade have offset 20 and probly other values too
how can i separate them from each other?
so i can point to the right value?
|
|
| Back to top |
|
 |
Daijobu Master Cheater
Reputation: 13
Joined: 05 Feb 2013 Posts: 301 Location: the Netherlands
|
Posted: Tue Jun 03, 2014 9:46 am Post subject: |
|
|
Check the register states for both ammo and grenade ammo (preferably the opcode BEFORE the instruction, use a break and trace). See if there are notable differences.
Reboot the application and do the same again. If the differences still match you could try to differentiate between the types with a compare following a condition.
e.g.: ecx = 4 when it's ammo and ecx = 7 when it's grenades.
Then:
| Code: | cmp ecx,4
je doSomethingWithAmmo
cmp ecx,7
je doSomethingWithGrenades
originalcode: |
I bet someone else has a better tip than me though!
_________________
|
|
| Back to top |
|
 |
NanoByte Expert Cheater
Reputation: 1
Joined: 13 Sep 2013 Posts: 222
|
Posted: Tue Jun 03, 2014 12:40 pm Post subject: |
|
|
hmm i trying to do a player hook thing with all player stuff and i cant seperate those 2 values offset is the same, and i suspect all other guns and grenade types are in this code
when i add a manual address with offset 20 its ammo, how do i get to grenade?
|
|
| Back to top |
|
 |
|