| View previous topic :: View next topic |
| Author |
Message |
danny96 Newbie cheater
Reputation: 0
Joined: 10 Jul 2020 Posts: 20
|
Posted: Mon Feb 14, 2022 8:59 am Post subject: Finding Comparison Problem |
|
|
I wanna make one hit kill in far cry 3 .
The code is movss [esi+10],xmm0
Hp , oxygen under water , stamina and bulletproof values running
through this code so it is shared code .
in xmm1 there is a cap value for all of this
For One hit kill I'm writing like ;
subss xmm0,xmm1
movss [esi+10],xmm0 //This works
The problem is whenever I'm trying to make some comparison
my code is not working . Actually I'cant find any good comparison .
Is there a someone who can guide me for this game ?
_________________
_d_ |
|
| Back to top |
|
 |
TheyCallMeTim13 Wiki Contributor
Reputation: 51
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Mon Feb 14, 2022 9:19 am Post subject: |
|
|
Generally you want to show the code that's not working when asking what's wrong with code and why it's not working.
But I can tell you that FC3 has Dwords (4 byte integers) that work as IDs, and there are strings back inside the structures that can be used as IDs too, plus if you go back aways in the function calls you can find instructions that only pertain to one thing at a time even separated for player, NPCs, and animals. But the Dword IDs are right near the values and can be found using the dissect data structures tool, I don't remember exactly where as I went a different route to find where damage was calculated.
_________________
|
|
| Back to top |
|
 |
danny96 Newbie cheater
Reputation: 0
Joined: 10 Jul 2020 Posts: 20
|
Posted: Mon Feb 14, 2022 9:40 am Post subject: |
|
|
Interesting , I will look for it .
_________________
_d_ |
|
| Back to top |
|
 |
danny96 Newbie cheater
Reputation: 0
Joined: 10 Jul 2020 Posts: 20
|
Posted: Tue Feb 15, 2022 8:08 pm Post subject: |
|
|
Job is done . movss [esi+10],xmm0 wasn't a good spot for hack . So
I looked for better code and saw movss xmm0,[esi+10] which is a bit below . I understand that when a lot of things pop up in that screen it is not good for business . After that I looked for register values for this code and realized that eax and edi base values are same for those things ( hp , stamina , oxy underwater stuff ) .
I'm aware that base values will be changed after loading saved games so I copied edi base value , pasted to dissect data structure and saw edi+4 is holding dword ( 4 byte) integer like you explained .I closed the game then opened again and that value was always same . I played the game like 5 hours everything works just perfect . Thanks for your time mate , you gave me good idea.
_________________
_d_ |
|
| Back to top |
|
 |
|