There was a conflict on merging lukrop's commit. I've fixed it and made
some other changes.
-Retabulated entire file. Fans of terrible drink from the 90s rejoice.
-Moved the mist init message back to the end of file and into the old
format.
-Commented out several of the new log:info statements that replaced old
commented out print statements.
Using scopes for various groups of functions simulating files.
Allows for use of some local functions and better organization. Using a editor
which is capable of folding this huge file gets way easier to navigate.
-Fixed issue with country names in the editor not matching enum country
name values. For example "Best Korea" could not match with "BEST_KOREA".
Thanks lukrop of this fix
-Fixed locality issue with mist.getNorthCorrection
-Added function mist.utils.unitToWP
-added function mist.utils.vecToWP
Both of these functions deal with creating a WP table from the passed
values. unitToWP also returns a speed variable based on the current
velocity of the unit.
-removed the new 3rd variable from mist.utils.getDir and just made the
2nd variable optional instead
-Added check to DB update functions to only update if data from the
group has changed from what is currently in the
DB. This fixes an issue I had where some data was lost if you spawned a
group normally after mission start and then
used a respawn, clone, or teleport function on said group
-fixed issue with dynAdd functions naming a group with the country ID
insead of country name
-added mist.getAvgPoint(). Function is similar to mist.getAvgPos except
it uses raw vec2/3 coordinates instead of
units
-added mist.utils.roundTbl() Has the same input values as
mist.utils.round except it accepts a table and it rounds all
numbers in the first level of the table to the passed percision.
-added optional variable to mist.utils.getDir() If present this function
will return the "raw" heading, this is useful in assigning the heading
variable within a task.
-mist.utils.makeVec3 now supports being given a table in WP format.
Specifically it now coverts a table {x, y, alt) to vec3