18.08.2010, 16:50
lowfighter Wrote:It would be nice to have a small program to automatically place the smokes on the villages of a given map. It's probably not hard to write (I'll try that in matlab but for community usage someone needs to write it such that it will be a windows .exe.)My purpose was to not decorate all houses in villages or towns because it will be very time consuming, i did it mostly to put there the most activity will happen for example tank battle in some villages or so which you have placed static cameras, because the small chimney effects for houses are not visible from far distances, but if you have such idea you can do as you want maybe some peopel have usage for it. THX for asking.
But the idea would be the following. Have a list of village house TYPES and to each type associate a given height (the height of the smoke to be placed which we can determine for each type using FMB).
Next the prog would take as input the buidings of the map say winter Moskow map (the list of the buildings with their positions can be obtained using the actors.static extract comand for the map in question). The program would then run through the buildings and whenever it would encounter a village house it would write in an output mission file a smoke at the position of the house and with the height corresponding to that house type. The output would be so just a mission template containing the smokes, so you can add them to any mission. A small map like Moskow still contains a lot of village houses so if every house gets a smoke there'll be perhaps too many smokes and the mission would be unplayable. So then there's the option that the program to scale the number of smokes randomly say to 10% or 20 % or whatever a good number would be for that map...