From 70e3a512ccd35141b28673f3152499a71b5a9e41 Mon Sep 17 00:00:00 2001 From: ihsoft Date: Fri, 26 Apr 2019 22:56:59 -0700 Subject: [PATCH] New KAs compatibility --- .../Buffalo/Parts/Utility/Mineshaft.cfg | 105 +++++++++++++----- .../Buffalo/Parts/Utility/TrailerHitch2.cfg | 22 ++++ .../Pathfinder/Parts/BoxedParts/Pipeline2.cfg | 29 ++++- .../Parts/BoxedParts/Rangeland2.cfg | 29 +++++ .../Pathfinder/Parts/Structural/Saddle.cfg | 28 +++++ .../Parts/Structural/Switchback.cfg | 6 + .../Parts/Structural/Switchback2.cfg | 35 +++++- .../Pathfinder/Parts/Utility/Gaslight.cfg | 28 +++++ .../Pathfinder/Parts/Utility/Sombrero.cfg | 33 +++++- .../Pathfinder/Parts/Utility/Spyglass.cfg | 37 +++++- .../Pathfinder/Parts/Utility/Telegraph.cfg | 33 +++++- 11 files changed, 339 insertions(+), 46 deletions(-) diff --git a/GameData/WildBlueIndustries/Buffalo/Parts/Utility/Mineshaft.cfg b/GameData/WildBlueIndustries/Buffalo/Parts/Utility/Mineshaft.cfg index edff4c10..d77883f9 100644 --- a/GameData/WildBlueIndustries/Buffalo/Parts/Utility/Mineshaft.cfg +++ b/GameData/WildBlueIndustries/Buffalo/Parts/Utility/Mineshaft.cfg @@ -60,38 +60,15 @@ PART fuelCrossFeed = True bulkheadProfiles = size1, srf - MODULE:NEEDS[KAS] - { - name = KASModuleStrut - nodeTransform = plugPort - type = CrewTube - maxLenght = 50 - maxAngle = 100 - breakForce = 600 - allowDock = true - allowPumpFuel = true - hasCollider = false - tubeScale = 1.0 - jointScale = 1.0 - textureTiling = 1 - tubeSrcType = Joined - tubeTgtType = Joined - evaStrutPos = (0.05, 0.059, -0.21) - evaStrutRot = (190.0, 0.0, 0.0) - tubeTexPath = WildBlueIndustries/Buffalo/Assets/GenericFabric - } - MODULE:NEEDS[KIS] { name = ModuleKISItemEvaTweaker - editorItemsCategory = false carriable = true - equipMode = part + equipMode = model equipSlot = jetpack - equipMeshName = jetpack_base01 - equipBoneName = bn_jetpack01 - equipPos = (0,0.45,0) - equipDir = (0,0,0) + equipBoneName = aliasJetpack + equipPos = 0, 0.2, 0 + equipDir = 10, 0, 0 runSpeed = 0.8 } @@ -114,4 +91,78 @@ PART acquireTorqueRoll = 10 captureMinRollDot = 0.999 } + + MODULE:NEEDS[KAS] + { + name = KASLinkSourceInteractive + + // AbstractLinkPeer + linkType = UniTube100 + linkTypeDisplayName = UniTube-100(tm) + attachNodeName = front + allowCoupling = true + + // KASLinkSourceBase + coupleMode = AlwaysCoupled + jointName = corridorJoint + linkRendererName = corridorRenderer + sndPathDock = KAS/Sounds/plugdocked + sndPathUndock = KAS/Sounds/unplugdocked + + // KASLinkSourceInteractive + sndPathPlug = KAS/Sounds/plug + sndPathUnplug = KAS/Sounds/unplug + sndPathBroke = KAS/Sounds/broke + startLinkMenu = Attach corridor + breakLinkMenu = Detach corridor + } + + MODULE:NEEDS[KAS] + { + name = KASRendererBezierPipe + + // AbstractProceduralModel + shaderName = KSP/Diffuse + + // KASRendererPipe + rendererName = corridorRenderer + pipeColliderIsPhysical = false + pipeTextureRescaleMode = Stretch + pipeDiameter = 1 + pipeTexturePath = WildBlueIndustries/Buffalo/Assets/GenericFabric + pipeTextureSamplesPerMeter = 1 + + // KASRendererBezierPipe + pipeBendResistance = 2 + pipeMeshSections = 21 + pipeShapeSmoothness = 16 + reskinTexture = true + pipeTextureWraps = 2 + } + + MODULE:NEEDS[KAS] + { + name = KASJointRigid + + // AbstractJoint + jointName = corridorJoint + minLinkLength = 0 + maxLinkLength = 5 + linkBreakForce = 600 + sourceLinkAngleLimit = 100 + targetLinkAngleLimit = 100 + anchorAtSource = 0, 0, 0 + anchorAtTarget = 0, 0, 0 + } + + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = UniTube100 + linkTypeDisplayName = UniTube-100(tm) + attachNodeName = front + allowCoupling = true + } } diff --git a/GameData/WildBlueIndustries/Buffalo/Parts/Utility/TrailerHitch2.cfg b/GameData/WildBlueIndustries/Buffalo/Parts/Utility/TrailerHitch2.cfg index df948c42..863a3885 100644 --- a/GameData/WildBlueIndustries/Buffalo/Parts/Utility/TrailerHitch2.cfg +++ b/GameData/WildBlueIndustries/Buffalo/Parts/Utility/TrailerHitch2.cfg @@ -63,6 +63,28 @@ PART name = WBIForceDock } + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdStrut + linkTypeDisplayName = #kasLOC_99003 // #kasLOC_99003 = Pipe-100 + attachNodeName = front + allowCoupling = true + } + + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdHose + linkTypeDisplayName = #kasLOC_99005 // #kasLOC_99005 = Hose-70 + attachNodeName = front + allowCoupling = true + } + DRAG_CUBE { cube = A, 0.1119,0.8139,0.4676, 0.1119,0.8146,0.7671, 0.2631,0.8442,0.9339, 0.2631,0.8534,0.8475, 0.2898,0.8115,0.5754, 0.2898,0.9174,0.6096, -2.98E-08,-0.1204,0.1042, 0.846,0.8491,0.5264 diff --git a/GameData/WildBlueIndustries/Pathfinder/Parts/BoxedParts/Pipeline2.cfg b/GameData/WildBlueIndustries/Pathfinder/Parts/BoxedParts/Pipeline2.cfg index de1fa89c..a4dbd60d 100644 --- a/GameData/WildBlueIndustries/Pathfinder/Parts/BoxedParts/Pipeline2.cfg +++ b/GameData/WildBlueIndustries/Pathfinder/Parts/BoxedParts/Pipeline2.cfg @@ -78,17 +78,38 @@ PART { name = ModuleKISItemEvaTweaker volumeOverride = 1100 - editorItemsCategory = false carriable = true - equipMode = part + equipMode = model equipSlot = jetpack equipBoneName = aliasJetpack - equipPos = 0,-0.2,-0.45 - equipDir = 0,0,0 + equipPos = (0,-0.2,-0.45) + equipDir = (0,0,0) runSpeed = 0.8 allowPartAttach = 1 } + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdStrut + linkTypeDisplayName = #kasLOC_99003 // #kasLOC_99003 = Pipe-100 + attachNodeName = wbiKas0 + allowCoupling = true + } + + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdHose + linkTypeDisplayName = #kasLOC_99005 // #kasLOC_99005 = Hose-70 + attachNodeName = wbiKas0 + allowCoupling = true + } + MODULE:NEEDS[KIS] { name = ModuleKISInventory diff --git a/GameData/WildBlueIndustries/Pathfinder/Parts/BoxedParts/Rangeland2.cfg b/GameData/WildBlueIndustries/Pathfinder/Parts/BoxedParts/Rangeland2.cfg index cabeebdc..273f0354 100644 --- a/GameData/WildBlueIndustries/Pathfinder/Parts/BoxedParts/Rangeland2.cfg +++ b/GameData/WildBlueIndustries/Pathfinder/Parts/BoxedParts/Rangeland2.cfg @@ -26,6 +26,13 @@ PART transform = Node001 } + NODE + { + name = wbiKas0 + transform = plugPort + size = 0 + } + TechRequired = advConstruction entryCost = 23800 cost = 1800 @@ -67,6 +74,28 @@ PART allowPartAttach = 1 } + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdStrut + linkTypeDisplayName = #kasLOC_99003 // #kasLOC_99003 = Pipe-100 + attachNodeName = wbiKas0 + allowCoupling = true + } + + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdHose + linkTypeDisplayName = #kasLOC_99005 // #kasLOC_99005 = Hose-70 + attachNodeName = wbiKas0 + allowCoupling = true + } + MODULE { name = ModuleCommand diff --git a/GameData/WildBlueIndustries/Pathfinder/Parts/Structural/Saddle.cfg b/GameData/WildBlueIndustries/Pathfinder/Parts/Structural/Saddle.cfg index 86e472cb..7ffa7f3c 100644 --- a/GameData/WildBlueIndustries/Pathfinder/Parts/Structural/Saddle.cfg +++ b/GameData/WildBlueIndustries/Pathfinder/Parts/Structural/Saddle.cfg @@ -17,6 +17,12 @@ PART transform = node1 size = 0 } + NODE + { + name = wbiKas0 + transform = plugPort + size = 0 + } TechRequired = spaceExploration entryCost = 3200 @@ -52,6 +58,28 @@ PART staticAttachBreakForce = 4000 } + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdStrut + linkTypeDisplayName = #kasLOC_99003 // #kasLOC_99003 = Pipe-100 + attachNodeName = wbiKas0 + allowCoupling = true + } + + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdHose + linkTypeDisplayName = #kasLOC_99005 // #kasLOC_99005 = Hose-70 + attachNodeName = wbiKas0 + allowCoupling = true + } + MODULE:NEEDS[KIS] { name = ModuleKISItemEvaTweaker diff --git a/GameData/WildBlueIndustries/Pathfinder/Parts/Structural/Switchback.cfg b/GameData/WildBlueIndustries/Pathfinder/Parts/Structural/Switchback.cfg index 76a75bf9..5151f436 100644 --- a/GameData/WildBlueIndustries/Pathfinder/Parts/Structural/Switchback.cfg +++ b/GameData/WildBlueIndustries/Pathfinder/Parts/Structural/Switchback.cfg @@ -16,6 +16,12 @@ PART node_stack_front = 0, 0.5061848, -0.572570, 0, 0, -1, 2 node_stack_top = 0, 1.04, 0, 0, 1, 0, 2 node_attach = 0, 0, 0, 0, -1, 0, 2 + NODE + { + name = wbiKas0 + transform = plugPort + size = 0 + } TechRequired = specializedConstruction category = Structural diff --git a/GameData/WildBlueIndustries/Pathfinder/Parts/Structural/Switchback2.cfg b/GameData/WildBlueIndustries/Pathfinder/Parts/Structural/Switchback2.cfg index c6abf0ee..635ef7c4 100644 --- a/GameData/WildBlueIndustries/Pathfinder/Parts/Structural/Switchback2.cfg +++ b/GameData/WildBlueIndustries/Pathfinder/Parts/Structural/Switchback2.cfg @@ -37,6 +37,12 @@ PART name = Back transform = nodeBack } + NODE + { + name = wbiKas0 + transform = plugPort + size = 0 + } TechRequired = specializedConstruction entryCost = 3800 cost = 1800 @@ -94,13 +100,12 @@ PART { name = ModuleKISItemEvaTweaker volumeOverride = 500 - editorItemsCategory = false carriable = true - equipMode = part + equipMode = model equipSlot = jetpack equipBoneName = aliasJetpack - equipPos = 0,0.0,-0.55 - equipDir = 0,0,0 + equipPos = (0,0.0,-0.55) + equipDir = (0,0,0) runSpeed = 0.8 allowPartAttach = AllowedWithKisTool allowStaticAttach = AllowedAlways @@ -134,6 +139,28 @@ PART chargeRate = .7 } + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdStrut + linkTypeDisplayName = #kasLOC_99003 // #kasLOC_99003 = Pipe-100 + attachNodeName = wbiKas0 + allowCoupling = true + } + + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdHose + linkTypeDisplayName = #kasLOC_99005 // #kasLOC_99005 = Hose-70 + attachNodeName = wbiKas0 + allowCoupling = true + } + MODULE { name = WBIAirParkController diff --git a/GameData/WildBlueIndustries/Pathfinder/Parts/Utility/Gaslight.cfg b/GameData/WildBlueIndustries/Pathfinder/Parts/Utility/Gaslight.cfg index 0f9e097a..7a1877bf 100644 --- a/GameData/WildBlueIndustries/Pathfinder/Parts/Utility/Gaslight.cfg +++ b/GameData/WildBlueIndustries/Pathfinder/Parts/Utility/Gaslight.cfg @@ -30,6 +30,12 @@ PART transform = node3 size = 0 } + NODE + { + name = wbiKas0 + transform = plugPort1 + size = 0 + } TechRequired = generalConstruction entryCost = 3200 @@ -55,6 +61,28 @@ PART breakingTorque = 2000 bulkheadProfiles = size1, srf + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdStrut + linkTypeDisplayName = #kasLOC_99003 // #kasLOC_99003 = Pipe-100 + attachNodeName = wbiKas0 + allowCoupling = true + } + + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdHose + linkTypeDisplayName = #kasLOC_99005 // #kasLOC_99005 = Hose-70 + attachNodeName = wbiKas0 + allowCoupling = true + } + MODULE:NEEDS[KIS] { name = ModuleKISItem diff --git a/GameData/WildBlueIndustries/Pathfinder/Parts/Utility/Sombrero.cfg b/GameData/WildBlueIndustries/Pathfinder/Parts/Utility/Sombrero.cfg index 2919001a..a6eb4dbb 100644 --- a/GameData/WildBlueIndustries/Pathfinder/Parts/Utility/Sombrero.cfg +++ b/GameData/WildBlueIndustries/Pathfinder/Parts/Utility/Sombrero.cfg @@ -10,7 +10,6 @@ PART } rescaleFactor = 1 node_stack_bottom = 0, 0, 0, 0, -1, 0, 1 - node_attach = 0, 0, 0, 0, -1, 0, 1 NODE { name = Plug1 @@ -29,6 +28,12 @@ PART transform = node3 size = 0 } + NODE + { + name = wbiKas0 + transform = plugPort1 + size = 0 + } TechRequired = advElectrics entryCost = 4600 @@ -87,13 +92,35 @@ PART trackingSpeed = 0.25 } + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdStrut + linkTypeDisplayName = #kasLOC_99003 // #kasLOC_99003 = Pipe-100 + attachNodeName = wbiKas0 + allowCoupling = true + } + + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdHose + linkTypeDisplayName = #kasLOC_99005 // #kasLOC_99005 = Hose-70 + attachNodeName = wbiKas0 + allowCoupling = true + } + MODULE:NEEDS[KIS] { name = ModuleKISItemEvaTweaker volumeOverride = 400 carriable = true - equipPos = 0,-0.1,-0.15 - equipMode = part + equipPos = (0,-0.1,-0.15) + equipMode = model equipSlot = jetpack equipBoneName = aliasJetpack stackable = true diff --git a/GameData/WildBlueIndustries/Pathfinder/Parts/Utility/Spyglass.cfg b/GameData/WildBlueIndustries/Pathfinder/Parts/Utility/Spyglass.cfg index 40d6a72b..a6a1ce06 100644 --- a/GameData/WildBlueIndustries/Pathfinder/Parts/Utility/Spyglass.cfg +++ b/GameData/WildBlueIndustries/Pathfinder/Parts/Utility/Spyglass.cfg @@ -29,6 +29,12 @@ PART node_attach = 0, 0, 0, 0, -1, 0, 1 node_stack_mount = 0, 0, 0, 0, 1, 0, 1 node_stack_bottom = 0, 0, 0, 0, -1, 0, 1 + NODE + { + name = wbiKas0 + transform = plugPort + size = 0 + } // --- editor parameters --- TechRequired = advConstruction @@ -67,13 +73,12 @@ PART { name = ModuleKISItemEvaTweaker volumeOverride = 950 - editorItemsCategory = false carriable = true - equipMode = part + equipMode = model equipSlot = jetpack - equipBoneName = aliasJetpack - equipPos = 0,0.45,0 - equipDir = 0,0,0 + equipBoneName = alaisJetpack + equipPos = (0,0.45,0) + equipDir = (0,0,0) runSpeed = 0.8 } @@ -113,6 +118,28 @@ PART name = WBISpyglassOpsView } + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdStrut + linkTypeDisplayName = #kasLOC_99003 // #kasLOC_99003 = Pipe-100 + attachNodeName = wbiKas0 + allowCoupling = true + } + + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdHose + linkTypeDisplayName = #kasLOC_99005 // #kasLOC_99005 = Hose-70 + attachNodeName = wbiKas0 + allowCoupling = true + } + MODULE { name = WBIPropStateHelper diff --git a/GameData/WildBlueIndustries/Pathfinder/Parts/Utility/Telegraph.cfg b/GameData/WildBlueIndustries/Pathfinder/Parts/Utility/Telegraph.cfg index cc98a3ed..fa642df5 100644 --- a/GameData/WildBlueIndustries/Pathfinder/Parts/Utility/Telegraph.cfg +++ b/GameData/WildBlueIndustries/Pathfinder/Parts/Utility/Telegraph.cfg @@ -29,6 +29,12 @@ PART transform = node3 size = 0 } + NODE + { + name = wbiKas0 + transform = plugPort1 + size = 0 + } TechRequired = electronics entryCost = 4600 @@ -77,16 +83,37 @@ PART DeployFxModules = 0 } + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdStrut + linkTypeDisplayName = #kasLOC_99003 // #kasLOC_99003 = Pipe-100 + attachNodeName = wbiKas0 + allowCoupling = true + } + + MODULE:NEEDS[KAS] + { + name = KASLinkTargetBase + + // AbstractLinkPeer + linkType = MdHose + linkTypeDisplayName = #kasLOC_99005 // #kasLOC_99005 = Hose-70 + attachNodeName = wbiKas0 + allowCoupling = true + } + MODULE:NEEDS[KIS] { name = ModuleKISItemEvaTweaker volumeOverride = 300 - equipPos = 0,-0.1,-0.15 + equipPos = (0,-0.1,-0.15) carriable = true - equipMode = part + equipMode = model equipSlot = jetpack equipBoneName = aliasJetpack - stackable = true allowPartAttach = AllowedWithKisTool allowStaticAttach = AllowedAlways staticAttachBreakForce = 2000