-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
Fixed some non localized values, thanks etcher3rd
Also added an extra check for the flagfuncs to not repeatedly reset a
flag to true if the flag is already.
Fixed a bug with spawning aircraft altitude type being switched to radio
instead of baro
Added extra checks to make sure a group or unit returned is actually
there.
numerous untested changes added. so yea, errors may (will) occur. Changes made while on vacation (damn you rain!) but reflect changes I've had on my mind or created in separate files.
Mission file searching functions now search by Id instead of group or unit names. The name input variable hasnt changed, value gets converted to Id automatically if found. Functions now also accept a numerical groupId or unitId.
getPayload
getGroupPayload
getGroupPoints
getGroupRoute
Added planned changes for message display v4. Added some code but it is dormant.
Re-factored a bunch of DB stuff
mist.dbUpdate() split into two functions
co-routine introduced for adding data to db files
moved a bunch of stuff around