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 


anyone can help this for Health code

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
Izanagi89
How do I cheat?
Reputation: 0

Joined: 05 Apr 2023
Posts: 1

PostPosted: Wed Apr 05, 2023 8:52 pm    Post subject: anyone can help this for Health code Reply with quote

{ Game : Dying Light 2 (inactive)
Version:
Date : 2023-04-06
Author : PC

This script does blah blah blah
}

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat



aobscanmodule(INJECT,gamedll_ph_x64_rwdi.dll,F3 0F 11 49 04 C3 8B) // should be unique
alloc(newmem,$1000,INJECT)

label(code)
label(return)

newmem:

code:
movss [rcx+04],xmm1
jmp return

INJECT:
jmp newmem
return:
registersymbol(INJECT)

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
INJECT:
db F3 0F 11 49 04

unregistersymbol(INJECT)
dealloc(newmem)

{
// ORIGINAL CODE - INJECTION POINT: gamedll_ph_x64_rwdi.dll+11B05AA

gamedll_ph_x64_rwdi.dll+11B0598: CC - int 3
gamedll_ph_x64_rwdi.dll+11B0599: CC - int 3
gamedll_ph_x64_rwdi.dll+11B059A: CC - int 3
gamedll_ph_x64_rwdi.dll+11B059B: CC - int 3
gamedll_ph_x64_rwdi.dll+11B059C: CC - int 3
gamedll_ph_x64_rwdi.dll+11B059D: CC - int 3
gamedll_ph_x64_rwdi.dll+11B059E: CC - int 3
gamedll_ph_x64_rwdi.dll+11B059F: CC - int 3
gamedll_ph_x64_rwdi.dll+11B05A0: F3 0F 11 49 0C - movss [rcx+0C],xmm1
gamedll_ph_x64_rwdi.dll+11B05A5: F3 0F 11 49 08 - movss [rcx+08],xmm1
// ---------- INJECTING HERE ----------
gamedll_ph_x64_rwdi.dll+11B05AA: F3 0F 11 49 04 - movss [rcx+04],xmm1
// ---------- DONE INJECTING ----------
gamedll_ph_x64_rwdi.dll+11B05AF: C3 - ret
gamedll_ph_x64_rwdi.dll+11B05B0: 8B 01 - mov eax,[rcx]
gamedll_ph_x64_rwdi.dll+11B05B2: C1 E8 14 - shr eax,14
gamedll_ph_x64_rwdi.dll+11B05B5: A8 01 - test al,01
gamedll_ph_x64_rwdi.dll+11B05B7: 75 32 - jne gamedll_ph_x64_rwdi.dll+11B05EB
gamedll_ph_x64_rwdi.dll+11B05B9: F3 0F 10 41 04 - movss xmm0,[rcx+04]
gamedll_ph_x64_rwdi.dll+11B05BE: F3 0F 10 15 02 FE D4 00 - movss xmm2,[gamedll_ph_x64_rwdi.dll+1F003C8]
gamedll_ph_x64_rwdi.dll+11B05C6: F3 0F 10 49 0C - movss xmm1,[rcx+0C]
gamedll_ph_x64_rwdi.dll+11B05CB: F3 0F 58 C2 - addss xmm0,xmm2
gamedll_ph_x64_rwdi.dll+11B05CF: F3 0F 58 CA - addss xmm1,xmm2
}
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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