Jump to content

Can I get a single undock button for a multi-size port?


Galane

Recommended Posts

For example this. Dock two of these together and to undock it has to be right clicked and an undock button clicked three times. I'd like to be able to have a single button undock any number of nested ports, two, three or four, no matter which combos are docked. Maintaining the ability of docking mis-matched nested ports or single ports to a nested port is also desirable.


PART
{
name = OmniDockingPort
module = Part
author = NovaSilisko, KSP-forum

MODEL
{
model=Squad/Parts/Utility/dockingPortLarge/model
position = 0.0, 0.0, 0.0
scale = 1.0, 1.0, 1.0
rotation = 0, 0, 0
}
MODEL
{
model=Squad/Parts/Utility/dockingPort2/model
position = 0.0, 0.0, 0.0
scale = 1.0, 1.0, 1.0
rotation = 0, 0, 0
}
MODEL
{
model=Squad/Parts/Utility/dockingPort3/model
position = 0.0, 0.145, 0.0
scale = 1.0, 1.0, 1.0
rotation = 0, 0, 0
}

rescaleFactor = 1


node_stack_top0 = 0.0, 0.2828832, 0.0, 0.0, 1.0, 0.0, 1
node_stack_top1 = 0.0, 0.2828832, 0.0, 0.0, 1.0, 0.0, 1
node_stack_top2 = 0.0, 0.2828832, 0.0, 0.0, 1.0, 0.0, 1
node_stack_bottom = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1
node_attach = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0

TechRequired = metaMaterials
entryCost = 12200
cost = 2200
category = Utility
subcategory = 0
title = Clamp-O-Tron Omni Docking Port

description = Invented after a less-than-peaceful protest against the lack of spacecraft attachment systems that could make buiding multi-purpose symmetrical bases possible, the Clamp-O-Tron Omni Docking Port allows for the firm attachment of two separate vessels regardless of the other dock's type. After docking, vessels can be just as easily undocked.

attachRules = 1,0,1,0,0

mass = 0.25
dragModelType = default
maximum_drag = 0.25
minimum_drag = 0.25
angularDrag = 0.5
crashTolerance = 15
maxTemp = 3400

MODULE
{
name = ModuleDockingNode
referenceAttachNode = top0
nodeType = size0
}
MODULE
{
name = ModuleDockingNode
referenceAttachNode = top1
nodeType = size1
}
MODULE
{
name = ModuleDockingNode
referenceAttachNode = top2
nodeType = size2
}

Link to comment
Share on other sites

Hey FYI I have released universal docking ports here. If you're building your own then talk to toadicus here. I'm using his plugin. It allows a docking node that changes depending on which size of docking node is nearest and then docks to it in the normal way.

edit

Oh and yeah, it only gives you one button.

I guess I should make it clearer in my signature.

Edited by Cpt. Kipard
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...