View previous topic :: View next topic |
Author |
Message |
daninthemix Cheater
Reputation: 0
Joined: 29 Jul 2013 Posts: 39
|
Posted: Sat Apr 13, 2019 9:05 am Post subject: Advice with shared code |
|
|
I've found the instruction that reduces everyone's health (teammates and enemies).
Code: | mov [esi+3A],bx
mov [esi+00000082],cx |
I need advice on how to modify this to only apply to team mates.[/code]
|
|
Back to top |
|
 |
TheyCallMeTim13 Wiki Contributor
Reputation: 51
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Sat Apr 13, 2019 9:39 am Post subject: |
|
|
You'll have to look at the registories or the structure to find a difference.
If you have the other structures hooked you could compare to the base addresses. An easy way is to use the structure spider and scan to find strings (names or classes) or I like to look for address (functions) that are unique to the player and team mates, then you only need one hooked to do a compare with.
But the CE tutorial goes over shared opcode.
_________________
|
|
Back to top |
|
 |
daninthemix Cheater
Reputation: 0
Joined: 29 Jul 2013 Posts: 39
|
Posted: Sun Apr 14, 2019 12:30 am Post subject: |
|
|
TheyCallMeTim13 wrote: | You'll have to look at the registories or the structure to find a difference.
If you have the other structures hooked you could compare to the base addresses. An easy way is to use the structure spider and scan to find strings (names or classes) or I like to look for address (functions) that are unique to the player and team mates, then you only need one hooked to do a compare with.
But the CE tutorial goes over shared opcode. |
Thanks, I figured out a unique identifier for (I assume) the player class and changed my code:
Code: | cmp [esi+90],400
jne originalcode
jmp exit |
Now my guys (only) are immune to gunfire...but they still get hurt when run over, or in explosions etc. It would be so much easier to just be able to find the health values, but I just can't. Both manual and automatic pointer scans do not find the address, and it changes every level.
|
|
Back to top |
|
 |
|