Dslopehelper usage (Test 1):
Dslopehelper_a3.wad (To be run with your map)
Dslopepatcher.exe (To be used with your wad file and the output generated by KL_Dslopehelper.wad)
DSlopepatcher.cpp (Source file for the exe.)

-KL_Dslopehelper.wad
For ease of use place 3 vertex slopes of tag 0 somewhere in the map; sectors you want to generate tags/offset do not need to have the flag checked. Make sure the slope vertex things are already placed on or near your vertices. DO NOT INCLUDE ANY CONTENT FROM THIS SCRIPT IN YOUR FINAL RELEASE.

-Get floor height for dynamic slopes.
	Give a sector with linedef type 799 the No Climb flag. The tag will still be the slope vertex to affect. The output from this file will make this sector's new floor height that of the slope vertex thing height.
	
-Generate tags and offsets for slope linedefs (currently only works with sectors with 3 linedefs)
	Give a line with the type 704,705,714,or 715 the No Climb flag. If this is for an FOF control sector add the Bouncy Wall flag; the front x offset will be the in level tag to search for vertices in. The search will prioritize the closest slope vertex thing within 6 fracunits of the vertex. If the distances are the same the auto-slope will prioritize sloping using the highest or lowest thing depending on the slope type.
	Add Block Enemies to copy the vertex slope of the sector on the opposite side of the effect (705 will copy the ceiling vertex slopes of the back sector).

-The lua will print the output file name to console. (The output will be named DSlopeOut_MAPXX.txt)
	The output file can be used lump by lump with a hex editor or all in one go using the included exe.
		Truncated Example output:
			#2 Lines Table: 14 bytes per row
			.62
			070008000420c00207000a000b00
			.d2
			0a0008000420c00207001a001b00
			0d0008000420c00205001c001d00
			0a000d000420c00201001e001f00
			04000d000420c002010020002100
The output will tell you what byte width to use so the offsets (starting with .) will be relevant and easily visible in your hex editor. Overwrite the text at the offset in the particular lump with the values given. Text not separated by a new offset are next to each other in memory. Sidedef output does not give the full line like sectors and linedefs do, so only paste over the the given bytes. Ideally the exe is used for the sake of speed, however.

-Dslopepatcher.exe
The exe will ask for your wad file path and your output .txt file path. It will use the patch to edit the wad file and will also create a .wad.bak of it just in case of some issues.
Try it out with K_Dslopetest.wad and DSlopeOut_MAP01.txt in the Test Files directory! you can Shift-Right Click the file to get the copy as path option for the file or drag the file intor the program. Paste that into the exe. The test file will create the test cases presented in the file.
