 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Chickenmelon How do I cheat?
Reputation: 0
Joined: 08 Feb 2015 Posts: 2
|
Posted: Sun Feb 08, 2015 1:55 pm Post subject: Z-axis acceleration & flying in air |
|
|
I'm playing Jak II on PCSX2 emulator and I'm trying to create a cheat to fly in the air. I was unsuccessful in finding the Z-axis position address.
But I managed to find the adress with Z-axis acceleration. After jumping, I NOP the adress that writes to it, so my character keeps getting higher into the air. However, while this code is NOP'ed, I can only see the sky, everything else becomes invisible. After a while, I restore with original code, and my character starts to fall down from the sky.
This method allowed me to get into unaccessible places high in the air. However, I would still like to learn how to fly in the air, instead of accelerating up and down.
Can I have some help with doing that?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25831 Location: The netherlands
|
Posted: Sun Feb 08, 2015 3:05 pm Post subject: |
|
|
instead of nop use a code that freezes acceleration to 0
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Chickenmelon How do I cheat?
Reputation: 0
Joined: 08 Feb 2015 Posts: 2
|
Posted: Sun Feb 08, 2015 3:25 pm Post subject: |
|
|
How do I freeze acceleration to 0?
Here is the adress which I usually NOP to get high into the air:
| Code: | | puu.sh/fElu7/e5d2327cdd.png |
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sun Feb 08, 2015 7:22 pm Post subject: |
|
|
Think of it as gravity force. If you have 0 gravity, you will continue to rise in to the air when you jump, right? Well, if you have the address/function that handles that gravity force value, and you lock that value to 0, then your character will just keep rising, until you return gravity to normal (in theory).
What DB is suggesting, is, instead of NOP'ing the instruction that is also handling those other things (like visual addresses that cause you to only see the sky), just lock that single gravity value to 0 (or whatever).
You can do this by adding that address to your cheat table and freezing it (not preferred), or, by injecting code and writing a script that will ONLY affect that gravity value and lock it to 0 (preferred) for a given amount of time, or only while a key/button is being pressed etc..
That said, I would not use this approach to make a fly cheat. This would be good for writing other cheats, such as moon gravity or super jump etc., however.
If you want to write a fly cheat, focus on finding the XZY coordinates of your hero character. From there, you may have to nop whatever function is applying vertical forces to your character (easy to find by nop'ing each instruction, one-by-one, that accesses your vertical axis, then checking to see if your character still tries to fall to the ground while that vertical axis is frozen at a higher-than-ground elevation), and just write a script that will allow you to alter the XZY of your character while those particular forces have been eliminated (for your hero character).
|
|
| Back to top |
|
 |
|
|
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
|
|