Guest User

Untitled

a guest
Jul 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. // To ingame coordinates
  2. xCoord = ( xSector - 0x87 ) * C0 + xPos / 0x0A
  3. yCoord = ( ySector - 0x5C ) * C0 + yPos / 0x0A
  4.  
  5. // From ingame coordinates
  6. xSector = ( xCoord + ( 0x6540 / 0x0A )) / 0xC0
  7. ySector = ( yCoord + ( 0x44EC / 0x0A )) / 0xC0
  8.  
  9. xPos = ( xCoord - (( xSector - 0x87 ) * 0xC0 )) * 0x0A
  10. yPos = ( yCoord - (( ySector - 0x5C ) * 0xC0 )) * 0x0A
Add Comment
Please, Sign In to add comment