| View previous topic :: View next topic |
| Author |
Message |
ReaN How do I cheat?
Reputation: 0
Joined: 25 Jan 2022 Posts: 3
|
Posted: Thu Apr 07, 2022 2:31 pm Post subject: Player coordinates |
|
|
Hello,
I have this instruction for player X:
| Code: | | 025F6071 - 89 11 - mov [ecx],edx |
ecx is address of player X coords
and
edx is current player X coords (float)
How can I edit edx so I would move faster?
I want to make it to add +3 value in float for example to edx everytime I move.
Thanks.
 |
|
| Back to top |
|
 |
loleyman How do I cheat?
Reputation: 0
Joined: 26 Mar 2022 Posts: 4
|
Posted: Thu Apr 07, 2022 2:56 pm Post subject: |
|
|
I don't think that would be useful. What will hapen if you want to move backwards? Instead of doing this try to find the movement speed value.
But if you just want to add a float value to coordinates then it should be something like this: addss [ecx],(float)50000 |
|
| Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Thu Apr 07, 2022 4:08 pm Post subject: |
|
|
If the co-ordinates are stored as a whole integer then this will do what you want.
| Code: |
add edx,3 // Note: this is a hexadecimal value of 3.
mov [ecx],edx
|
If they are stored as a float then something like this:
| Code: |
...
alloc(x,4)
x:
dd (float)3
newmem:
movss xmm7,[edx]
addss xmm7,[x]
movss [ecx],xmm7
...
|
You will want to ensure that xmm7 is an empty register by setting a breakpoint on the line:
| Code: |
025F6071 - 89 11 - mov [ecx],edx
|
Once triggered (the game will freeze), switch back to Cheat Engine and in the memory viewer window click the button with the ">" symbol on the right-hand side of the window in the registers pane.
This will popup a window with all xmm registers and their current values. |
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Thu Apr 07, 2022 6:32 pm Post subject: |
|
|
| You will need to find where the speed or force is being applied to player coordinates. Oftentimes, this is being handled within the same sub-routine. |
|
| Back to top |
|
 |
ReaN How do I cheat?
Reputation: 0
Joined: 25 Jan 2022 Posts: 3
|
Posted: Thu Apr 07, 2022 11:34 pm Post subject: |
|
|
| loleyman wrote: | I don't think that would be useful. What will hapen if you want to move backwards? Instead of doing this try to find the movement speed value.
But if you just want to add a float value to coordinates then it should be something like this: addss [ecx],(float)50000 |
You are right, but I cant find anything :/
Also I added the value like this but it didnt work properly 😀
It didnt increase the player speed when I moved but it teleported me somewhere out of the map 😀
| ++METHOS wrote: | | You will need to find where the speed or force is being applied to player coordinates. Oftentimes, this is being handled within the same sub-routine. |
I cant find anything, maybe I need search more😀, to be more specific I dont want to increase player speed, but I want to make to go through walls by increasing the change of coordinates |
|
| Back to top |
|
 |
TsTg Master Cheater
Reputation: 5
Joined: 12 Dec 2012 Posts: 340 Location: Somewhere....
|
Posted: Fri Apr 08, 2022 2:30 am Post subject: |
|
|
| ReaN wrote: |
I cant find anything, maybe I need search more😀, to be more specific I dont want to increase player speed, but I want to make to go through walls by increasing the change of coordinates |
so a teleport with no-clip cheat?, well it shouldn't be hard to make, you need to find and patch the code performs object collision on the player (and ofc, Z-axis only), and its usually found/near-found, by seeing what reads/writes the player co-ordinates, you can also try to change the player co-ords at a certain point of the code (where the collision check itself was completed or not even done, really depends on the game design)
some games use a flag of 0/1 switch when hugging/moving-far-from a wall and by changing the code that writes this flag it can grant no-clipping (going through walls), you can try this route first but as i said, it all depends on the game design
if not, simply dig around "what writes"\"what accesses" the address of the co-ordinates, move far then close to a wall and see what instructions pops up, and good luck. |
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Fri Apr 08, 2022 11:50 am Post subject: |
|
|
| ReaN wrote: | | How can I edit edx so I would move faster? |
| ReaN wrote: | | I dont want to increase player speed |
-You waste people's time if you are not specific. |
|
| Back to top |
|
 |
|