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 


How do I add 5 points in float to my script?

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

Joined: 01 Mar 2024
Posts: 2

PostPosted: Fri Mar 01, 2024 9:29 am    Post subject: How do I add 5 points in float to my script? Reply with quote

hi,
This code is used for the character's "current" speed, swimming, walking, driving

What I need is that regardless of where it is, it always adds 5 points in float

code:
// fstp dword ptr [esi+00000080] //original code
mov dword ptr [esi+00000080],(float)20.0 //move by 20
jmp return

INJECT+04:
jmp newmem
nop

thanks for your help
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 139

Joined: 06 Jul 2014
Posts: 4283

PostPosted: Fri Mar 01, 2024 12:25 pm    Post subject: Reply with quote

Code:
alloc(bonusSpeed,4)
...
code:
  fadd dword ptr [bonusSpeed]
  fstp dword ptr [esi+80]
  jmp return

bonusSpeed:
  dd (float)5
...

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
espada43
How do I cheat?
Reputation: 0

Joined: 01 Mar 2024
Posts: 2

PostPosted: Fri Mar 01, 2024 3:03 pm    Post subject: Reply with quote

works very well, thank you very much
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