Limit Map dimensions in each direction
Posted: Mon Jan 02, 2017 9:07 am
Hey all,
I've been thinking of mods to work on from logistics to replicating the ore miners from C&C Red Alert 2 but figured I would go with a simple one at first. I am looking for a way to modify the map creation such that you can max a fixed width in each direction from the spawn point. Having all the values the same would spawn you in the center of a square. If you wanted to spawn in the corner, you set the north and west widths to small values, and the east and south to large numbers, or blank for infinite. One thing I am looking forward to is setting all but one value to say 500, so you can only expand your base in 1 direction, and are forced to fight off biters to expand your base. Is it possible to code this? I could make it so no player can go beyond a certain limit but the chunks would still load. I'm looking through the API for the LUA classes but nothing is jumping out at me. Any help would be appreciated. Thanks!
DaShoup
I've been thinking of mods to work on from logistics to replicating the ore miners from C&C Red Alert 2 but figured I would go with a simple one at first. I am looking for a way to modify the map creation such that you can max a fixed width in each direction from the spawn point. Having all the values the same would spawn you in the center of a square. If you wanted to spawn in the corner, you set the north and west widths to small values, and the east and south to large numbers, or blank for infinite. One thing I am looking forward to is setting all but one value to say 500, so you can only expand your base in 1 direction, and are forced to fight off biters to expand your base. Is it possible to code this? I could make it so no player can go beyond a certain limit but the chunks would still load. I'm looking through the API for the LUA classes but nothing is jumping out at me. Any help would be appreciated. Thanks!
DaShoup