mrSkortch / MissionScriptingTools

Mission Scripting Tools for Digital Combat Simulator
GNU General Public License v3.0
195 stars 42 forks source link

Mist 4.5 Release #66

Closed mrSkortch closed 2 years ago

mrSkortch commented 2 years ago

+added: mist.getPathLength()  +added: mist.getPathInSegments() +added: mist.getPointAtDistanceOnPath() +added: mist.projectPoint() +added: mist.utils.getHeadingPoints() +added: mist.vec.normalize() +added: mist.getGroupTable() Returns the verbatim table for a group as defined in the mission editor. +added: mist.debug.writeGroup() This function is used to write a group table directly to a file of the groups name.lua. The point of this is to easily get the contents into a separate file. +added: mist.debug.writeTypes() This function iterates through units placed in the mission file and writes to a file containing a list of object typeNames, CLSIDs, and liveries +added: mist.shape.insideShape() Returns if the first shape is inside the second shape. +added: mist.shape.circleInCircle()
+added: mist.shape.circleInPoly() +added: mist.shape.polyInPoly() +added: mist.shape.polyInCircle() +added: mist.shape.getPointOnSegment() +added: mist.shape.segmentInsersect() +added: mist.mapValue()
+added: mist.utils.hexToRGB() +added: mist.getWindBearingAndVel()

+added: mist.getUnitsByAttribute() +added: mist.getGroupsByAttribute()

+added: mist.stringCondense() +added: mist.debug.changeSetting() +added: mist.debug.mark() +added: mist.marker.add() +added: mist.marker.getNextId() +added: mist.marker.remove() +added: mist.marker.get() +added: mist.marker.drawZone() +added: mist.marker.drawShape() +added mist.groupIsDead() +added better error handling messages in a number of functions +added mist.DBs.drawingByName and mist.DBs.drawingIndexed. Note: the above tables contains the values associated with the new drawings in the mission editor. Can be used with mist.marker.drawShape to activate a drawing shape created. There are limitations to this due to the scripting engine lacking a number of the draw features. For example rotating text, line thickness, icons, and outline types. Note 2: The shapes created in the editor are allowed to share a name. As a result entries sharing names in mist.DBs.drawingsByName will be overwritten with whichever value was used last. All are added to mist.DBs.drawingIndexed.

-modified: properties table to zone entries in database -modified: mist.dynAdd will now check tasks assigned in route for any beacons and will update the groupId or unitId as needed. -modified: mist.getGroupData now has optional route boolean. If present it will also return the route. This allows the user to skip a function call. -modified: mist.debug.dump_G now accepts a boolean value that deletes entries that I commonly delete when dumping _G. -modified: mist.teleportToPoint -modified: mist.respawnInZone -modified: mist.cloneInZone -modified: mist.teleportInZone All four above functions now support additional parameters that can be used to alter specific behavior. -newGroupName : forces the create group to use this name