Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // To ingame coordinates
- xCoord = ( xSector - 0x87 ) * C0 + xPos / 0x0A
- yCoord = ( ySector - 0x5C ) * C0 + yPos / 0x0A
- // From ingame coordinates
- xSector = ( xCoord + ( 0x6540 / 0x0A )) / 0xC0
- ySector = ( yCoord + ( 0x44EC / 0x0A )) / 0xC0
- xPos = ( xCoord - (( xSector - 0x87 ) * 0xC0 )) * 0x0A
- yPos = ( yCoord - (( ySector - 0x5C ) * 0xC0 )) * 0x0A
Add Comment
Please, Sign In to add comment