HelpForward Teleport

Posts 1–2 of 2 · Page 1 of 1
Forward Teleport
hey,
i made a server control with teleport. Now i want to make a forward telelport....
my question is which functions and addresses do i need to port forward?

sorry for my english^^
Here are some addresses for Player0
view yaw: 0x01D0599C
x position: 0x01D0585C
y position: 0x01D05860
You can add 0x38EC to each as you increment through your player list.

We know that yaw is your forward direction in radians and lets say we want to teleport 100 units forward.
We simply convert the player's yaw to degrees and then use trigonometry to split our teleport distance into an x and y value.

Code:
xdist = 100 * cos(yaw * 180 / PI);
ydist = 100 * sin(yaw * 180 / PI);
Then you simply write the resulting values into the above x and y addresses. Ask questions if anything's unclear.
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Talk with us