I thought I would pick everyone's brains here.
I was thinking of how to have DZMS dynamically take over a town for a mission, but to have this work on every map is a huge challenge, unless I wanted to go through and get coordinates for all the towns in every DayZ map.
Well then I remembered something I had seen in the config files for maps, and that's the Name locations.
Here's a copy of the Config.cpp for Chernarus for example.
http://pastebin.com/8EHzN6YC
With them being defined how they are, I believe we may be able to use this to get the location of a town to take over.
I think we can use a call like this to get the list of classnames.
Then we would need to get rid of any classnames that don't have city_ or vill_ in the front, and then selectRandom to choose a classname, and then maybe do a call like this to get the position?
This is all spitball logic, but does this seem possible to anyone else?
I was thinking of how to have DZMS dynamically take over a town for a mission, but to have this work on every map is a huge challenge, unless I wanted to go through and get coordinates for all the towns in every DayZ map.
Well then I remembered something I had seen in the config files for maps, and that's the Name locations.
Here's a copy of the Config.cpp for Chernarus for example.
http://pastebin.com/8EHzN6YC
With them being defined how they are, I believe we may be able to use this to get the location of a town to take over.
I think we can use a call like this to get the list of classnames.
Code:
getArray (configFile >> "Chernarus" >> "Names")
Then we would need to get rid of any classnames that don't have city_ or vill_ in the front, and then selectRandom to choose a classname, and then maybe do a call like this to get the position?
Code:
getArray (configFile >> "Chernarus" >> "Names" >> _town >> "position")
This is all spitball logic, but does this seem possible to anyone else?