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 


Make Float always DECREASED by 1000 from current value

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

Joined: 14 Mar 2015
Posts: 402

PostPosted: Wed Apr 14, 2021 3:03 am    Post subject: Make Float always DECREASED by 1000 from current value Reply with quote

Code:
[ENABLE]

aobscanmodule(CameraScript,game.exe,CC CC CC CC 0F 28 02 48 8B C1 66 0F 7F 41 10 41) // should be unique
alloc(newmem,$1000,"nioh2.exe"+2149C6)

label(code)
label(return)

newmem:

code:
  movdqa [rcx+10],xmm0 
  jmp return

CameraScript+0A:
  jmp newmem
return:
registersymbol(CameraScript)

[DISABLE]



I want to make so rcx+14 is always DECREASED by 1000 float in from its CURRENT value how to do so ?

_________________
I am the forgotten one the dead one.
Back to top
View user's profile Send private message
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Wed Apr 14, 2021 7:42 am    Post subject: Reply with quote

Code:

code:
  movdqa [rcx+10],xmm0
  push (float)1000
  movss xmm0,[rsp]
  subss [rcx+14],xmm0
  add rsp,8
  movdqa xmm0,[rcx+10] //;just for bkp
  jmp return

Back to top
View user's profile Send private message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Wed Apr 14, 2021 10:07 am    Post subject: Reply with quote

MMM-304 wrote:
Code:

code:
  movdqa [rcx+10],xmm0
  push (float)1000
  movss xmm0,[rsp]
  subss [rcx+14],xmm0
  add rsp,8
  movdqa xmm0,[rcx+10] //;just for bkp
  jmp return



thanks a lot
again i get error
with this line

subss [rcx+14],xmm0

_________________
I am the forgotten one the dead one.
Back to top
View user's profile Send private message
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Wed Apr 14, 2021 10:51 am    Post subject: Reply with quote

oh yea forgot about subss, try this:
Code:
code:
  movdqa [rcx+10],xmm0
  push (float)1000
  movss xmm0,[rcx+14]
  subss xmm0,[rsp]
  movss [rcx+14],xmm0
  add rsp,8
  movdqa xmm0,[rcx+10] //;just for bkp
  jmp return
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