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 


Need help about float +/- value and compare

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

Joined: 14 Nov 2015
Posts: 3

PostPosted: Sun Nov 15, 2015 2:38 am    Post subject: Need help about float +/- value and compare Reply with quote

Hi every body, first I need tell you, I'm bad in eng but I very try to communicate, because I struck this point 3 days and very need to done.

so, overview...

1. player address stored in registersymbol(player_ptr) and already to use (float value)
2. player location x address = [player_ptr+120]
3. enemy address stored in rcx and already to use (float value)
4. enemy location x address = [rcx+90]

so, I need...

1. player location x minus with float 12500.0 (ex: current player locaton x = 100000.7 but i need value = 87500.7 for next process)
2. compare player location x (after minus) with enemy location x
3. if player > enemy jump to end
3. but else (player <= enemy) jump to next

this is my problem code.
Code:

                push rdx
                mov rdx,[player_ptr]
                add rdx,120
                sub ...
                cmp rdx,[rcx+90]
                jg end
                jmp next



Thank you very much for any help Very Happy
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Nov 15, 2015 5:23 am    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?p=5629664#5629664
_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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