View Single Post
  #1  
Old December 21st, 2007, 06:15 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Hex <-> Coordinates conversion for scripts

If you want to convert hex IDs into system map coordinates, you'll need these functions

Useful for:
- Moving ships a certain number of hexes (In GGmod, ships ending turn on a warppoint are shoved 1 hex in a random direction so that chokepoints aren't.
- Swirling ships around as they go down into the black hole.
- If you wanted to, you could make planets orbit their stars, although it would tend to cause trouble with ship navigation
- Stargates. Players can dial an address using map coords, and you can now figure out what hex ID you need to use for the warppoint's destination.
Attached Files
File Type: zip 572299-SE5 Hex-Coords Conversion Scripts.zip (486 Bytes, 209 views)
Reply With Quote