Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x_pos_addr = 0x0EC204
- y_pos_addr = 0x0EC20C
- z_pos_addr = 0x0EC208
- cam_dir_addr = 0x0EC334
- player_dir_addr = 0x0EC21C
- player_x = 0
- player_y = 0
- player_z = 0
- player_x_old = 0
- player_y_old = 0
- player_z_old = 0
- while true do
- player_x = memory.read_s16_le(x_pos_addr)
- player_y = memory.read_s16_le(y_pos_addr)
- player_z = memory.read_s16_le(z_pos_addr)
- gui.pixelText(0, 0, "X: " .. player_x .. "\nY: " .. player_y .. "\nZ: " .. player_z .. "\nX spe: " .. (player_x - player_x_old) .. "\nY spe: " .. (player_y - player_y_old) .. "\nZ spe: " .. (player_z - player_z_old) .. "\nXY spe: " .. (((player_x - player_x_old)^2+(player_y - player_y_old)^2)^0.5) .. "\nCAM dir: " .. memory.read_s16_le(cam_dir_addr) .. "\nYOU dir: " .. memory.read_s16_le(player_dir_addr ) )
- player_x_old = player_x
- player_y_old = player_y
- player_z_old = player_z
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement