PART
{
name = SWISSTrussADPort
module = Part
author = TheShadow1138

// --- asset parameters ---


MODEL
{
	model=ShadowWorks/Parts/StationModules/ISSTruss/ISSTrussADPort
}
rescaleFactor = 1.0


// --- node definitions ---
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
//TOP +X(right),+Y(up),-Z(fwd)
node_stack_bottom = 0.0, -0.075, 0.0, 0.0, -1.0, 0.0, 1
node_stack_top = 0.0, 0.075, 0.0, 0.0, 1.0, 0.0, 2

// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 1,0,1,1,0

// --- FX definitions ---

// --- editor parameters ---
//TechRequired = composites
entryCost = 2000
cost = 2500
category = Utility
subcategory = 0
title = ShadowWorks Truss Docking Port SW-TDP-01A
manufacturer = ShadowWorks
description = An androgynous docking port built specifically for building a large Integrated Truss Structure to accommodate our line of Solar Array Wing power systems for large space stations. This port differs from the standard Truss Docking System in that it has probe core capability to allow for remote docking of truss sections.

// --- standard part parameters ---
TechRequired = advConstruction
mass = 0.045
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 4
maxTemp = 2000
vesselType = Station

fuelCrossFeed = False
tags = space station module docking port rendezvous rcs probe control truss iss shadowworks


MODULE
{
	name = ModuleDockingNode
	referenceAttachNode = top
	nodeType = size1	
}

	EFFECTS
	{
		running
		{
			AUDIO_MULTI_POOL
			{
				channel = Ship
				transformName = rcsThruster
				clip = sound_rocket_mini
				volume = 0.0 0.0
				volume = 0.1 0.0
				volume = 0.5 0.025
				volume = 1.0 0.1
				pitch = 0.0 0.75
				pitch = 1.0 1.5
				loop = true
			}
			MODEL_MULTI_PARTICLE
			{
				modelName = Squad/FX/Monoprop_small
				transformName = rcsThruster
				emission = 0.0 0.0
				emission = 0.1 0.0
				emission = 1.0 1.0
				speed = 0.0 0.8
				speed = 1.0 1.0
				localRotation = -90, 0, 0
			}
		}		
	}
MODULE
{
	name = ModuleRCSFX
	stagingEnabled = False
	thrusterTransformName = rcsThruster 
	thrusterPower = 1.5		//Was 1.25
	resourceName = MonoPropellant
	resourceFlowMode = STAGE_PRIORITY_FLOW
	runningEffectName = running
	atmosphereCurve
	{
   	 key = 0 316			//Was 260
  	 key = 1 316			//Was 100
 	}
}

	MODULE
	{
		name = ModuleCommand
		minimumCrew = 0
		RESOURCE
		{
			name = ElectricCharge
			rate = 0.025
		}
	}
	RESOURCE
	{
		name = ElectricCharge
		amount = 150.0
		maxAmount = 150.0
	}
	MODULE
	{
		name = ModuleReactionWheel
		PitchTorque = 1.5
		YawTorque = 1.5
		RollTorque = 1.5
		RESOURCE
		{
			name = ElectricCharge
			rate = 0.15
		}
	}
	MODULE
	{
		name = ModuleSAS
		SASServiceLevel = 3
	}
	MODULE
	{
		name = ModuleKerbNetAccess
		MinimumFoV = 5
		MaximumFoV = 90
		AnomalyDetection = 0.3
		DISPLAY_MODES
		{
			Mode = Biome,#autoLOC_438890 //#autoLOC_438890 = Biome
			Mode = Terrain,#autoLOC_438839 //#autoLOC_438839 = Terrain
		}
	}

	RESOURCE
	{
		name = MonoPropellant
		amount = 100
		maxAmount = 100
	}

}
