|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Birdi Expert Cheater Reputation: 0
Joined: 08 Jun 2020 Posts: 122 Location: Migrating
|
Posted: Sat Mar 20, 2021 3:49 am Post subject: cmp never true, even when it certainly should be? |
|
|
Just trying to get this autoassembly to recognize the player, but the cmp never works :/
Hoping somebody can see what I don't?
From what I know, this should be recognizing the player's Max HP at Offset +1C and subsequently applying it to their current HP at Offset +20, but it never holds true.
Player HP is a Float at 0 ~ 25 (intervals of 0.25 are 1%)
[code]
aobscanmodule(INJECT_HP2,GameAssembly.dll,F3 0F 11 43 20 0F 93)
alloc(newmem,$1000,INJECT_HP2)
label(code)
label(return)
newmem:
pushf
cmp [rbx+1C],#25
jne code
popf
mov eax,[rbx+1C]
mov [rbx+20],eax
jmp return
code:
popf
mov [rbx+20],#0
jmp return
INJECT_HP2:
jmp newmem
return:
registersymbol(INJECT_HP2)
[/code]
Description: |
Structure from RBX+0, and writes |
|
Filesize: |
55.61 KB |
Viewed: |
669 Time(s) |
|
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
|
Posted: Sat Mar 20, 2021 5:11 am Post subject: |
|
|
try
Code: |
cmp [rbx+1C],(float)25
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Birdi Expert Cheater Reputation: 0
Joined: 08 Jun 2020 Posts: 122 Location: Migrating
|
Posted: Sat Mar 20, 2021 5:20 am Post subject: |
|
|
Worked out, can't believe I didn't try that haha
Thanks DB
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|