Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


OHK / One Hit Kill Question

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Fri Oct 07, 2016 12:36 pm    Post subject: OHK / One Hit Kill Question Reply with quote

So I finally made Inf. HP Work, this is my code " Made for Dishonored "

Code:
[ENABLE]

aobscanmodule(aobHealth,Dishonored.exe,29 93 44 03 00 00) // should be unique
alloc(newmem,$1000)

label(cheat)
label(code)
label(return)

newmem:

cheat:
 cmp [ebx+00000428],1
 jne code
 mov [ebx+00000344],(float)100
 jmp return

code:
  sub [ebx+00000344],edx
  jmp return

aobHealth:
  jmp newmem
  nop
return:
registersymbol(aobHealth)

[DISABLE]

aobHealth:
  db 29 93 44 03 00 00

unregistersymbol(aobHealth)
dealloc(newmem)


If I would want to have OHK, I would have to do that:


Code:
cmp [ebx+00000428],1
 jne ohk
 mov [ebx+00000344],(float)100
 jmp return

ohk:

 mov [ebx+00000428],0
 jen code
 mov [ebx+00000428],0
 jmp return


Am I right?


Forgot to mention that in the dissect data, 1 - Player 2 - Enemy.

428 - Where the 1 - Player, 2 - Enemy stores at.
344 - Where the HP Value.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Oct 07, 2016 3:35 pm    Post subject: Reply with quote

Code:
[ENABLE]

aobscanmodule(aobHealth,Dishonored.exe,29 93 44 03 00 00) // should be unique
alloc(newmem,$1000)

label(cheat)
label(code)
label(return)

newmem:

cheat:
 cmp [ebx+00000428],1
 jne code
 mov [ebx+00000344],(float)100
 jmp return

code:
  //sub [ebx+00000344],edx
  mov [ebx+00000344],0 // one-hit kill
  jmp return

aobHealth:
  jmp newmem
  nop
return:
registersymbol(aobHealth)

[DISABLE]

aobHealth:
  db 29 93 44 03 00 00

unregistersymbol(aobHealth)
dealloc(newmem)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites