Timm3D How do I cheat? Reputation: 0
Joined: 11 Jun 2019 Posts: 6
|
Posted: Mon May 10, 2021 6:18 am Post subject: Advanced player teleportation. |
|
|
Hello together,
maybe the title isn't the best explanation, but I will try to explain you guys my plan so that maybe one will understand what the hell I'm trying to do:
So I've got all player coords (X, Z, Y) and all camera coords. I want to create a hack which teleports the player exactly 2 in game meters forward wherever I'm currently looking at. So for example if the player stands before a locked door and I press my teleport hotkey, It should teleport him through the door, and he will stand behind it.
I uploaded two very high quality gimp pics to show you my thinking. The first picture represents the explanation before.
So maybe much of you want to tell me that I simply have to add/sub the x or z coords by +2 or -2 to do this, but this method has a big problem: When the door or the point I'm looking at isn't at a horizontal or vertical position, then it will teleport me somewhere else because for this I have to change X and Z to do so. (Look at picture 2).
So how I'm going to do this? Do I need the cam rotation or something? If someone knows how to do this, I would be very happy if you could tell me.
Thanks in advance! |
|