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 


Multiplying floats in AA

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Ind3siszive
Cheater
Reputation: 0

Joined: 23 Apr 2009
Posts: 43
Location: in a glitch

PostPosted: Sun Oct 06, 2013 4:57 pm    Post subject: Multiplying floats in AA Reply with quote

not sure how to do this, I want to be able to multiply ecx by another float, [eax+04] is one of the horizontal velocities

I need help with the fpu registers and using fmul
Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here



originalcode:

mov [eax+04],ecx
mov [eax+08],edx

exit:
jmp returnhere

"Halo.exe"+15E1A3:
jmp newmem
nop
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Halo.exe"+15E1A3:
mov [eax+04],ecx
mov [eax+08],edx
//Alt: db 89 48 04 89 50 08

_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Sun Oct 06, 2013 7:13 pm    Post subject: Re: Multiplying floats in AA Reply with quote

Code:
[ENABLE]
alloc(newmem,2048)

//code locations
label(returnhere)

//data
label(Multiplier)

newmem:
  mov [eax+04],ecx

  fld dword [eax+4] //push your float onto the top of the float stack (aka t0)
  fmul dword [Multiplier] //multiply st0 by the float at address Multplier
  fstp dword [eax+4] //put the result back at eax+4, and pop st0
  //mov ecx,dword [eax+4] //if the value in ecx is reused later...

  mov [eax+08],edx
jmp returnhere

Multplier:
dd (float)4.0 //you may want to change that

"Halo.exe"+15E1A3:
jmp newmem
nop
returnhere:


 
 
[DISABLE]
dealloc(newmem)

"Halo.exe"+15E1A3:
mov [eax+04],ecx
mov [eax+08],edx
//Alt: db 89 48 04 89 50 08

_________________
DO NOT PM me if you want help on making/fixing/using a hack.


Last edited by Gniarf on Mon Oct 07, 2013 5:18 am; edited 1 time in total
Back to top
View user's profile Send private message
Ind3siszive
Cheater
Reputation: 0

Joined: 23 Apr 2009
Posts: 43
Location: in a glitch

PostPosted: Sun Oct 06, 2013 8:14 pm    Post subject: Reply with quote

hmm its causing the game to freeze when code like this works for setting vel to a constant, ill keep working on it
Code:


[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)


newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov ecx,3e0f5c29  //0.14
originalcode:

mov [eax+04],ecx
mov [eax+08],edx

exit:
jmp returnhere

"Halo.exe"+15E1A3:
jmp newmem
nop
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Halo.exe"+15E1A3:
mov [eax+04],ecx
mov [eax+08],edx
//Alt: db 89 48 04 89 50 08
[/code]
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Mon Oct 07, 2013 5:24 am    Post subject: Reply with quote

1-I made a slight mistake in my previous code and the "dd (float) 4.0" line should be "dd (float)4.0" (no space between "(float)" and the value).
2-Try uncommenting the "mov ecx,dword [eax+4]" line.

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
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