You can simply copy the text from github and make a file called 'mteFunctions.pas' where you'll paste it into.
Permissions and credits
Credits and distribution permission
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou can upload this file to other sites but you must credit me as the creator of the file
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features so long as you credit me as the original creator
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou are allowed to use the assets in this file without permission or crediting me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 1.1.4
Made compatible with new version of xEdit
Version 1.1.3
Fixed applying edits to non winning overrides, and a rare crash.
Version 1.1.2
Fixed bug with checking out of range
Version 1.1.1
Fixes rare bug that adds plugin as its own master.
Version 1.1
Fixes character case and path errors and hides most popups.
Version 1.0
Initial upload
There didn't seem to be an easy way to add footprints to heels, so I did it the hard way. Now you can do it the easy way. Adding heels sound comes as a bonus.
How to use
-1. Move Footprints.esp and footprints-heelsAddon.esp to the start of your load order if not creating a new plugin for edits. 0. Build meshes in bodyslide so the script can find them. 1. Highlight records to be patched (or files) and apply the script "[Nona] Add footprints or heels sound to heels.pas". 2. Choose wisely and watch magic happen.
!. The script will not work if patching plugins that come before either footprints or heels sound plugins. Check images if still unsure how to use.
How it works
The script looks at the mesh of each shoe, and if the mesh has a high heel offset of 3.5 units or more (either SDTA or HH_OFFSET extra data), it recognizes the shoes as high heels. Then it add heels sound or footprints if necessary. Edits are done to the winning override. Change the value of minimumHeelHeight if you don't like the 3.5 units.