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 


Player Speed need help...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Thu Nov 17, 2016 8:27 am    Post subject: Player Speed need help... Reply with quote

So I found speed in the game I am playing but the way it works is if you go forward the value is positive but if you go backwards the value is negative. If I were to write
Code:

push esi
mov esi,(float)9
movss xmm1,esi
pop esi

and then try to go backwards it will only move me forward sins when moving backwards the value is meant to be negative. Is there a way to check which key is pressed like:


Code:

SART:
is "s" pressed
if so jmp backward
push esi
mov esi,(float)9
movss xmm1,esi
pop esi
jmp return


backward:
push esi
mov esi,(float)-9
movss xmm1,esi
pop esi
jmp return

return:
jmp START
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Thu Nov 17, 2016 8:39 am    Post subject: Reply with quote

Have you tried doubling the xmm1 register as a test?

Code:
addss xmm1,xmm1
Back to top
View user's profile Send private message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Thu Nov 17, 2016 8:42 am    Post subject: Reply with quote

++METHOS wrote:
Have you tried doubling the xmm1 register as a test?

Code:
addss xmm1,xmm1


ya I did but the speed stays the same as the original.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Thu Nov 17, 2016 8:45 am    Post subject: Reply with quote

You may be doing this all wrong, as player speed is typically a constant value, but assuming that you are actually dealing with the correct segment of code, then you should be able to analyze the surrounding code to determine where that velocity is coming from. If you post the entire code segment, someone might be able to assist you further.
Back to top
View user's profile Send private message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Thu Nov 17, 2016 8:47 am    Post subject: Reply with quote

++METHOS wrote:
You may be doing this all wrong, as player speed is typically a constant value, but assuming that you are actually dealing with the correct segment of code, then you should be able to analyze the surrounding code to determine where that velocity is coming from. If you post the entire code segment, someone might be able to assist you further.


oh ok. Well I will look around for now and if I don't find anything then I will post a code segment.
Back to top
View user's profile Send private message
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