Mafia 3 Cordinates issue..

Memory scanning, code injection, debugger internals and other gamemodding related discussion
Post Reply
XaneXXXX
Noobzor
Noobzor
Posts: 11
Joined: Mon Mar 06, 2017 11:30 am
Reputation: 0

Mafia 3 Cordinates issue..

Post by XaneXXXX » Thu Sep 07, 2017 3:54 pm

In the end i want to make a teleport to waypoint script. But right now i have a problem, i have found the player cordinates and the waypoint cordinates. The issue that i have is, Let's say that i freeze the Z cordinate with a high value. It's very buggy, Sometimes he flies up in the air and then falls down again. I tried noping EVERY function/register that writes to the Z cordinate but the same thing occurs. Sometimes he doesn't even move up until i jump over something like a car. Here is an example gif:

https://gyazo.com/a799594d05119f50751b2111c9ae0e47

I have the Z cordinate frozen to a high value during the entire gif, Only when i jump up on the car he flies up but starting to go down again. And yes I'm sure that the compare doesn't inflict with anything else then my player cords only.

I really don't get it. If nothing writes to the Z cordinate, how can i still fall down? :S haha
Any idea why this is happening? Never seen anything like it. Cheers!

Edit: This is what writes to the Z cordinate if it helps:
Image

User avatar
gir489
RCE Fanatics
RCE Fanatics
Posts: 50
Joined: Mon May 08, 2017 4:08 am
Reputation: 16

Re: Mafia 3 Cordinates issue..

Post by gir489 » Thu Sep 07, 2017 5:02 pm

I ran in to the same issue and gave it the fuck-it adjustment.

It's a physics issue. You're basically going from Z to Z+delta, and that delta is interpreted as velocity. It's just how the engine works. CBF'd to fix it, because I didn't know how to find the velocity. When I looked at what read the coordinates, it was like 20+ lines, and that's when I get it the FIA.

Good luck, though.

XaneXXXX
Noobzor
Noobzor
Posts: 11
Joined: Mon Mar 06, 2017 11:30 am
Reputation: 0

Re: Mafia 3 Cordinates issue..

Post by XaneXXXX » Thu Sep 07, 2017 5:17 pm

gir489 wrote:
Thu Sep 07, 2017 5:02 pm
I ran in to the same issue and gave it the fuck-it adjustment.

It's a physics issue. You're basically going from Z to Z+delta, and that delta is interpreted as velocity. It's just how the engine works. CBF'd to fix it, because I didn't know how to find the velocity. When I looked at what read the coordinates, it was like 20+ lines, and that's when I get it the FIA.

Good luck, though.
Thanks for your answer! Hmm that makes sense.. But what did you mean by " CBF'd to fix it"?

User avatar
gir489
RCE Fanatics
RCE Fanatics
Posts: 50
Joined: Mon May 08, 2017 4:08 am
Reputation: 16

Re: Mafia 3 Cordinates issue..

Post by gir489 » Thu Sep 07, 2017 5:38 pm

CBF'd.

There's a Lua function that sets the player's coordinates. You could try reversing it and see how it sets the Z position without engaging the physics engine.

XaneXXXX
Noobzor
Noobzor
Posts: 11
Joined: Mon Mar 06, 2017 11:30 am
Reputation: 0

Re: Mafia 3 Cordinates issue..

Post by XaneXXXX » Thu Sep 07, 2017 6:06 pm

gir489 wrote:
Thu Sep 07, 2017 5:38 pm
CBF'd.

There's a Lua function that sets the player's coordinates. You could try reversing it and see how it sets the Z position without engaging the physics engine.
Yeah i used LUA first. But since the scripthook is outdated/bad coded or whatever. It crashes the game very often when teleporting etc. But thanks for tip. I might try that!

User avatar
SunBeam
Trouble Makers
Trouble Makers
Posts: 356
Joined: Thu Mar 02, 2017 10:15 pm
Reputation: 98

Re: Mafia 3 Cordinates issue..

Post by SunBeam » Mon Sep 11, 2017 5:36 pm

Just know that Lua executes first.

Post Reply

Who is online

Users browsing this forum: No registered users