From c79608dad5eb243b10ade42c0de2d4dfe93eb2c3 Mon Sep 17 00:00:00 2001
From: MascaraSnake <jonassauer27@gmail.com>
Date: Mon, 6 Jan 2020 20:45:02 +0100
Subject: [PATCH] Add slope linedefs to UDMF ZB config

---
 extras/conf/Includes/SRB222_linedefs.cfg | 115 +++++++++++++++++++++++
 extras/conf/Includes/SRB222_misc.cfg     |  14 +--
 2 files changed, 122 insertions(+), 7 deletions(-)

diff --git a/extras/conf/Includes/SRB222_linedefs.cfg b/extras/conf/Includes/SRB222_linedefs.cfg
index fdf1918502..9f6613620e 100644
--- a/extras/conf/Includes/SRB222_linedefs.cfg
+++ b/extras/conf/Includes/SRB222_linedefs.cfg
@@ -2483,4 +2483,119 @@ udmf
 			prefix = "(0)";
 		}
 	}
+
+	slope
+	{
+		title = "Slope";
+
+		700
+		{
+			title = "Create Sector-Based Slope";
+			prefix = "(700)";
+			id = "plane_align";
+			slope = "regular";
+			arg0
+			{
+				title = "Floor";
+				type = 11;
+				enum = "frontback";
+			}
+			arg1
+			{
+				title = "Ceiling";
+				type = 11;
+				enum = "frontback";
+			}
+			arg2
+			{
+				title = "Flags";
+				type = 12;
+				enum
+				{
+					1 = "No physics";
+					2 = "Dynamic";
+				}
+			}
+		}
+
+		704
+		{
+			title = "Create Vertex-Based Slope";
+			prefix = "(704)";
+			slope = "vertex";
+			arg0
+			{
+				title = "Plane";
+				type = 11;
+				enum
+				{
+					0 = "Front floor";
+					1 = "Front ceiling";
+					2 = "Back floor";
+					3 = "Back ceiling";
+				}
+			}
+			arg1
+			{
+				title = "Vertex 1 tag";
+			}
+			arg2
+			{
+				title = "Vertex 2 tag";
+			}
+			arg3
+			{
+				title = "Vertex 3 tag";
+			}
+			arg4
+			{
+				title = "Flags";
+				type = 12;
+				enum
+				{
+					1 = "No physics";
+					2 = "Dynamic";
+				}
+			}
+		}
+
+		720
+		{
+			title = "Copy Slope";
+			prefix = "(720)";
+			slope = "copy";
+			arg0
+			{
+				title = "Front floor tag";
+				type = 13;
+			}
+			arg1
+			{
+				title = "Front ceiling tag";
+				type = 13;
+			}
+			arg2
+			{
+				title = "Back floor tag";
+				type = 13;
+			}
+			arg3
+			{
+				title = "Back ceiling tag";
+				type = 13;
+			}
+			arg4
+			{
+				title = "Share slope";
+				type = 12;
+				enum
+				{
+					1 = "Front floor to back sector";
+					2 = "Back floor to front sector";
+					4 = "Front ceiling to back sector";
+					8 = "Back ceiling to front sector";
+				}
+			}
+		}
+	}
 }
\ No newline at end of file
diff --git a/extras/conf/Includes/SRB222_misc.cfg b/extras/conf/Includes/SRB222_misc.cfg
index ce23388b23..7fe4890fd2 100644
--- a/extras/conf/Includes/SRB222_misc.cfg
+++ b/extras/conf/Includes/SRB222_misc.cfg
@@ -63,19 +63,19 @@ linedefflags_udmf
 	midpeg = "Peg Midtexture";
 	midsolid = "Solid Midtexture";
 	wrapmidtex = "Repeat Midtexture";
-//	netonly = "Netgame-Only special";
-//	nonet = "No netgame special";
-//	effect6 = "Effect 6";
+//	netonly = "Netgame Only";
+//	nonet = "No Netgame";
+	effect6 = "Effect 6";
 	bouncy = "Bouncy Wall";
-//	transfer = "Transfer Line";
+	transfer = "Transfer Line";
 }
 
 
 linedefactivations_udmf
 {
-	notriggerorder = "Out of Order";
-	netonly = "Netgame-Only";
-	nonet = "No netgame";
+//	notriggerorder = "Out of Order";
+	netonly = "Netgame Only";
+	nonet = "No Netgame";
 }
 
 sidedefflags
-- 
GitLab