PART
{
	// --- general parameters ---
	name = CJEagle50Laboratory
	module = Part
	author = ColdJ

	// --- asset parameters ---
	MODEL
	{
		model = Space199950/Parts/Eagle50Laboratory
	}
	scale = 1
	rescaleFactor = 1
 fx_exhaustFlame_blue = 0.0, -3, 0.0, 0.0, 1.0, 0.0, running
	fx_exhaustLight_blue = 0.0, -3, 0.0, 0.0, 0.0, 1.0, running
	fx_smokeTrail_light = 0.0, 0.0, -3, 0.0, 1.0, 0.0, running
	fx_exhaustSparks_flameout = 0.0, -3, 0.0, 0.0, 1.0, 0.0, flameout
	sound_vent_medium = engage
	sound_rocket_hard = running
	sound_vent_soft = disengage
	sound_explosion_low = flameout
	CoMOffset = 0.0, 0.0, 2.32946432
	// --- node definitions: Position X, Position Y, Position Z, Up X, Up Y, Up Z

	node_stack_FrameDock = 0.0, 0.0, -0.0005, 0.0, 0.0, -1.0, 3

	//node_stack_RCS1 = -4.6424, 1.414, -1.7472, -0.4, 0.90327, 0.0, 2
	//node_stack_RCS2 = 4.6424, 1.414, -1.7472, -0.4, 0.90327, 0.0, 2
	//node_stack_RCS1 = -4.6424, -1.414, 1.7472, 0.0, -0.75, 0.0, 2
	//node_stack_RCS2 = 4.6424, -1.414, 1.7472, 0.0, -1.25, 0.0, 2
	node_stack_LeftDoor = -5.7, 0.0, 1.6217, -1.0, 0.0, 0.0, 2
	node_stack_RightDoor = 5.7, 0.0, 1.6217, 1.0, 0.0, 0.0, 2
	NODE
	{
		name = Join1
		transform = node1
		size = 2
		method = FIXED_JOINT
	}
	NODE
	{
		name = Join2
		transform = node2
		size = 2
		method = FIXED_JOINT
	}
	NODE
	{
		name = Join3
		transform = node3
		size = 2
		method = FIXED_JOINT
	}
	NODE
	{
		name = Join4
		transform = node4
		size = 2
		method = FIXED_JOINT
	}
	stackSymmetry = 3
	// --- editor parameters ---
	TechRequired = metaMaterials
	entryCost = 7800
	cost = 1500
	category = Payload
	subcategory = 0
	title = Eagle50 Laboratory Pod 
	manufacturer = Moonbase Alpha Engineering and CJ Aeronautics
	description = A laboratory pod for research. Pick up and drop off where needed.

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



	// --- standard part parameters ---
	mass = 11
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 1
	crashTolerance = 200
	breakingForce = 2000
	breakingTorque = 2000
	maxTemp = 5000
	fuelCrossFeed = True
	vesselType = Ship
	emissiveConstant = 0.8
	bulkheadProfiles = srf, size2, size3
	CrewCapacity = 4
	tags = eagle50 research eagle passenger laboratory cck-EG50

	// internals, resources, effects, modules

   	 INTERNAL

    	{

        	name = LabPod50IVA
    	}
	MODULE
	{
		name = ModuleCommand
		minimumCrew = 0
		RESOURCE
		{
			name = ElectricCharge
			rate = 0.04
		}
		hasHibernation = True
		hibernationMultiplier = 0.25
		defaultControlPointDisplayName = #autoLOC_6011001 //#autoLOC_6011001 = Forward
		CONTROLPOINT
		{
			name = up
			displayName = #autoLOC_6011000 //#autoLOC_6011000 = Up
			orientation = -90,0,0
		}
		CONTROLPOINT
		{
			name = reverse
			displayName = #autoLOC_6011004 //#autoLOC_6011004 = Reversed
			orientation = 0,0,180
		}
	}
	MODULE
	{
		name = ModuleSAS
		SASServiceLevel = 3
	}
	MODULE
	{
		name = ModuleDockingNode
		referenceAttachNode = FrameDock
		nodeType = size3
		aquireForce = 20.5
		aquireRange = 15
		captureRange = 10
		stagingEnabled = False
		ejectionForce = 10
	}

	MODULE
	{
		name = ModuleAnimateGeneric  //Effects 
		animationName = Ramp
		startEventGUIName = Close Ramps
		endEventGUIName = Open Ramps 
		actionGUIName = Toggle Ramps
		deployEffectName = deploy

		//defaultActionGroup = Gear
		postDeployEffectName = deployed
 
		postDeployEffectLength = 5.0
		retractEffectName = retract

		postRetractEffectName = retracted
 
		postRetractEffectLength = 5.0

		animSpeed = 1

		layer = 0	
	}

	MODULE
	{
		name = ModuleAnimateGeneric  //Effects 
		animationName = Pads
		startEventGUIName = Retract Pads
		endEventGUIName = Extend Pads
		actionGUIName = Toggle Pads
		deployEffectName = deploy

		//defaultActionGroup = Gear
		postDeployEffectName = deployed
 
		postDeployEffectLength = 5.0
		retractEffectName = retract

		postRetractEffectName = retracted
 
		postRetractEffectLength = 5.0

		animSpeed = 1

		layer = 1	
	}

	MODULE
	{
		name = ModuleEngines
		thrustVectorTransformName = MainThrust
		exhaustDamage = True
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 1200
		heatProduction = 196
		fxOffset = 0, 0, 0
		EngineType = LiquidFuel
		exhaustDamageDistanceOffset = 0.56
		PROPELLANT
		{
			name = ElectricCharge
			ratio = 10.0
			DrawGauge = True
		}
		PROPELLANT
		{
			name = LiquidFuel
			ratio = 0.2
			DrawGauge = True
		}
		atmosphereCurve
		{
			key = 0 80000 0 0

		}
	}
	//MODULE
	{
		name = FXModuleAnimateThrottle
		animationName = HeatAnimationSRB
		responseSpeed = 0.002
		dependOnEngineState = True
		dependOnThrottle = True
	}
	RESOURCE
	{
		name = ElectricCharge
		amount = 10000
		maxAmount = 10000
	}
	RESOURCE
	{
		name = LiquidFuel
		amount = 1000
		maxAmount = 1000
	}
	MODULE
	{
		name = ModuleTestSubject
		useStaging = True
		useEvent = True
		situationMask = 60
		CONSTRAINT
		{
			// disable all but home
			type = SITUATION
			value = 0
			body = _NotHome
			prestige = Trivial
		}
		CONSTRAINT
		{
			// disable all but home
			type = SITUATION
			value = 0
			body = _NotHome
			prestige = Significant
		}
		CONSTRAINT
		{
			type = REPEATABILITY
			value = ALWAYS
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = REPEATABILITY
			value = BODYANDSITUATION
			prestige = Significant
		}
		CONSTRAINT
		{
			type = REPEATABILITY
			value = ONCEPERPART
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = GT
			value = 4000
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = LT
			value = 8000
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = GT
			value = 2000
			prestige = Significant
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = LT
			value = 4000
			prestige = Significant
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = GT
			value = 1000
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = LT
			value = 2000
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = ALTITUDE
			test = GT
			value = 0 // this just registers altitude as something to care about
			situationMask = 8
		}
		CONSTRAINT
		{
			type = ALTITUDE
			test = LT
			value = 300000
			situationMask = 16
			body = _NotSun
		}
		CONSTRAINT
		{
			type = ALTITUDE
			test = LT
			value = 600000
			situationMask = 32
			body = _NotSun
		}
		CONSTRAINT
		{
			type = SPEED
			test = GT
			value = 0
			situationMask = 8
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = SPEED
			test = LT
			value = 600
			situationMask = 8
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = SPEED
			test = GT
			value = 0
			situationMask = 8
			prestige = Significant
		}
		CONSTRAINT
		{
			type = SPEED
			test = LT
			value = 900
			situationMask = 8
			prestige = Significant
		}
		CONSTRAINT
		{
			type = SPEED
			test = GT
			value = 300
			situationMask = 8
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = SPEED
			test = LT
			value = 1200
			situationMask = 8
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = LT
			value = 200
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = GT
			value = 100
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = LT
			value = 100
			prestige = Significant
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = GT
			value = 50
			prestige = Significant
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = LT
			value = 50
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = GT
			value = 20
			prestige = Exceptional
		}
	}
	//MODULE
	{
		name = ModuleSurfaceFX
		thrustProviderModuleIndex = 0
		fxMax = 1
		maxDistance = 80
		falloff = 2
		thrustTransformName = MainThrust
	}
	//MODULE
	{
		name = ModuleDecouple
		ejectionForce = 250
		explosiveNodeID = top
		stagingToggleEnabledEditor = true
		stagingToggleEnabledFlight = true
	}
	MODULE
	{
		name = ModuleToggleCrossfeed
		crossfeedStatus = true
		toggleEditor = true
		toggleFlight = true
	}
	//RESOURCE
	{
		name = MonoPropellant
		amount = 400
		maxAmount = 400
	}
	//RESOURCE
	{
	 name = EnrichedUranium
	 amount = 1
	 maxAmount = 1
	}
	//RESOURCE
	{
	 name = DepletedFuel
	 amount = 0
	 maxAmount = 1
	}
	//MODULE
	{
		name = ModuleGenerator
		isAlwaysActive = true
		requiresAllinputs = true
		resourceThreshold = 0.01
		//activateGUIName = Main Power On
		//shutdownGUIName = Main Power Off
		efficiency = 95
		INPUT_RESOURCE
		{
			ResourceName = EnrichedUranium
			Ratio = 0.00000012
		}
		OUTPUT_RESOURCE
		{
			ResourceName = DepletedFuel
			Ratio = 0.00000018
			DumpExcess = true
		}			
		OUTPUT_RESOURCE
		{
			name = ElectricCharge
			rate = 1000.05
		} 
	}

	MODULE
	{
		name = ModuleReactionWheel
		actionGUIName = Toggle Reaction Wheel
		PitchTorque = 500
		YawTorque = 100
		RollTorque = 100
		RESOURCE
		{
			name = ElectricCharge
			rate = 0.24
		}
	}
	MODULE
	{
		name = ModuleLight
		lightName = Spotlight
		lightMeshRendererName = LintLight
		useAnimationDim = True
		lightBrightenSpeed = 2.5
		lightDimSpeed = 2.5
		resourceAmount = 0.02
		//animationName = LandingGearMediumSpotlight
		useResources = True
	}
	RESOURCE
	{
		name = MonoPropellant
		amount = 400
		maxAmount = 400
	}	
}
