PART
{
//Basic
	name = O_back_docking
	module = Part
	author = ClimberFX
	MODEL
	{
		model = Omicron/Parts/O_back_docking
	}
	rescaleFactor = 1.25
	tags = back egg climberfx car omicron engine cover closed

//Node
	//attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision

	attachRules = 1,0,1,1,0

	//nodes definition: Pos X, Pos Y, Pos Z, Up X, Up Y, Up Z, node size, crossfeed = 1 (true), rigid attach = 0 (false)

	node_stack_top = 0, 0, 0, 0, 1.0, 0, 1
	node_stack_bottom = 0, -0.257, 0, 0, -1.0, 0, 1

//Cost & RD
	TechRequired = composites
	entryCost = 0
	cost = 450

//Description
	category = Structural
	subcategory = 0
	title = Omicron Back Docking Port
	manufacturer = ClimberFX
	description = This is the back cover but now with a docking port. To comunicate with other vessels using the same type of port.
	
//Drag
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.1
	angularDrag = 1

//Physical
	mass = 0.06
	//buoyancy = 0.375
	crashTolerance = 8
	breakingForce = 200
	breakingTorque = 200
	maxTemp = 3500
	fuelCrossFeed = True
	bulkheadProfiles = egg, fuel, mk2, size1, size2, srf

	emissiveConstant = 0.7
	heatConductivity = 0.25

//Resources
	RESOURCE
	{
		name = ElectricCharge
		amount = 100
		maxAmount = 100.0
	}	


//Modules
	MODULE
	{
		name = ModuleLiftingSurface
		useInternalDragModel = False
		deflectionLiftCoeff = 0.25
		dragAtMaxAoA = 0.1
		dragAtMinAoA = 0.05
	}

	MODULE
	{
    	name = FlagDecal
    	textureQuadName = flag
	}

	MODULE
	{
		name = ModuleDockingNode
		deployAnimationController = 1
		referenceAttachNode = bottom 	//top
		nodeType = size1
		controlTransformName = control_from_here_node
		nodeTransformName = docking_node
		staged = False
		stagingEnabled = False
	}
//Animation
	MODULE
	{
		name = FSanimateGeneric
		animationName = hatch_back_docking
		animSpeed = 1
		startEventGUIName = Open Docking Hatch Doors
		endEventGUIName = Close Docking Hatch Doors
		toggleActionName = Toggle Docking Hatch Doors
		startDeployed = False
		availableInEVA = True
		availableInVessel = True
		EVArange = 5
		playAnimationOnEditorSpawn = False

		fullyRetractedEffect = closed_hatch
		fullyDeployedEffect = no_sound
		startDeployEffect = open_hatch
		startRetractEffect = close_hatch
		layer = 4
		moduleID = 4
	}

	MODULE
	{
		name = FSanimateGeneric
		animationName = docking_extend_back
		animSpeed = 1
		startEventGUIName = Extend Docking port
		endEventGUIName = Retract Docking port
		toggleActionName = Toggle Docking Extensor
		startDeployed = False
		availableInEVA = True
		availableInVessel = True
		EVArange = 5
		playAnimationOnEditorSpawn = False
		fullyRetractedEffect = no_sound
		fullyDeployedEffect = no_sound
		startDeployEffect = extend_dock
		startRetractEffect = retract_dock
		layer = 5
		moduleID = 5
	}

//Effects
	EFFECTS
	{
		open_hatch
		{
			AUDIO
			{
			  channel = Ship
			  clip = Omicron/Sounds/hatch_open
			  volume = 0.0 0.0
			  volume = 1.0 1.0
			  pitch = 0.0 0.5
			  pitch = 1.0 1.0
			  loop = false
			}	
		}
		close_hatch
		{
			AUDIO
			{
			  channel = Ship
			  clip = Omicron/Sounds/hatch_close
			  volume = 0.0 0.0
			  volume = 1.0 1.0
			  pitch = 0.0 0.5
			  pitch = 1.0 1.0
			  loop = false
			}	
		}
		closed_hatch
		{
			AUDIO
			{
			  channel = Ship
			  clip = Omicron/Sounds/hatch_closed
			  volume = 0.0 0.0
			  volume = 1.0 2.0
			  pitch = 0.0 0.5
			  pitch = 1.0 1.0
			  loop = false
			}	
		}
		extend_dock
		{
			AUDIO
			{
			  channel = Ship
			  clip = Omicron/Sounds/docking_port
			  volume = 0.0 0.0
			  volume = 1.0 2.0
			  pitch = 0.0 0.5
			  pitch = 1.0 1.0
			  loop = false
			}	
		}
		retract_dock
		{
			AUDIO
			{
			  channel = Ship
			  clip = Omicron/Sounds/docking_port
			  volume = 0.0 0.0
			  volume = 1.0 2.0
			  pitch = 0.0 0.25
			  pitch = 1.0 0.75
			  loop = false
			}	
		}
		no_sound
		{
			AUDIO
			{
			  channel = Ship
			  clip = Omicron/Sounds/empty
			  volume = 0.0 0.0
			  volume = 1.0 1.0
			  pitch = 0.0 0.5
			  pitch = 1.0 1.0
			  loop = false
			}	
		}
	}
}
