PART
{
	name = CJLambda
	module = Part
	author = ColdJ
	MODEL 
	{
		model = XwinKTransport/Parts/LambdaShuttleNT4
	}
	
	
	scale = 1
	rescaleFactor = 1
	node_stack_Back = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 3  //RCS
	node_stack_Eng = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 3  //Engine
	node_stack_floor = 0.0, 0.0, -0.15341, 0.0, 0.0, -1.0, 1
	node_stack_Roof = 0.0, 0.0, -2.0914, 0.0, 0.0, 1.0, 1
	node_stack_Cback = 0.0, -3.5473, -1.119, 0.0, 1.0, 0.0, 1
	node_stack_Cfront = 0.0, 6.2202, -1.119, 0.0, -1.0, 0.0, 1
	TechRequired = aerospaceTech
	entryCost = 7600
	cost = 3800
	category = Pods
	subcategory = 0
	title = Lambda Shuttle
	manufacturer = CJ Aerospace
	description = Stormtrooper transport
	attachRules = 1,0,1,1,0
	mass = 4.00
	dragModelType = default
	maximum_drag = 0.1
	minimum_drag = 0.1
	angularDrag = 2.0
	crashTolerance = 1000
	maxTemp = 3400
	skinMaxTemp = 3400
	vesselType = Ship
	CrewCapacity = 6
	bulkheadProfiles = size3, size1, srf
	tags = xwing lambda shuttle
	emissiveConstant = 0.90
	heatConductivity = 0.001 //They have built in insulators
	thermalMassModifier = 5
	radiatorHeadroom = 0.75
	skinInternalConductionMult = 2000

	DRAG_CUBE
	{
		cube = A, 17.14,1,4.167, 17.14,1,4.167, 13.32,0.5564,11.18, 13.32,0.5613,11.13, 133.6,0.8913,1.882, 133.6,0.9973,0.9738, 0,2.303,0.2967, 11.61,11.48,1.904
		cube = B, 17.14,1,4.167, 17.14,1,4.167, 13.32,0.5564,11.18, 13.32,0.5613,11.13, 133.6,0.8913,1.882, 133.6,0.9973,0.9738, 0,2.303,0.2967, 11.61,11.48,1.904
		cube = A, 17.14,1,4.167, 17.14,1,4.167, 13.32,0.5564,11.18, 13.32,0.5613,11.13, 133.6,0.8913,1.882, 133.6,0.9973,0.9738, 0,2.303,0.2967, 11.61,11.48,1.904
		cube = B, 17.14,1,4.167, 17.14,1,4.167, 13.32,0.5564,11.18, 13.32,0.5613,11.13, 133.6,0.8913,1.882, 133.6,0.9973,0.9738, 0,2.303,0.2967, 11.61,11.48,1.904
		cube = 0, 17.14,1,4.167, 17.14,1,4.167, 13.32,0.5564,11.18, 13.32,0.5613,11.13, 133.6,0.8913,1.882, 133.6,0.9973,0.9738, 0,2.303,0.2967, 11.61,11.48,1.904
		cube = 1, 17.14,1,4.167, 17.14,1,4.167, 13.32,0.5564,11.18, 13.32,0.5613,11.13, 133.6,0.8913,1.882, 133.6,0.9973,0.9738, 0,2.303,0.2967, 11.61,11.48,1.904
	}

	INTERNAL
	{
		name = LambdaCJ-int
	}
	MODULE
	{
		name = ModuleCommand
		minimumCrew = 1
	}
	MODULE
	{
		name = ModuleCargoBay
		DeployModuleIndex = 0
		closedPosition = 1
		lookupRadius = 3.85
		partTypeName = Cargo bay
		
		//nodeOuterForeID = top
		//nodeOuterAftID = bottom
		nodeInnerForeID = Cfront
		nodeInnerAftID = Cback
	}
	RESOURCE
	{
		name = ElectricCharge
		amount = 150
		maxAmount = 150
	}
	MODULE
	{
		name = ModuleReactionWheel
		PitchTorque = 80
		YawTorque = 20
		RollTorque = 40
		RESOURCE
		{
			name = ElectricCharge
			rate = 0.45
		}
	}
	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 = ModuleScienceExperiment
		experimentID = crewReport 
		experimentActionName = #autoLOC_502009 //#autoLOC_502009 = Crew Report
		resetActionName = #autoLOC_502010 //#autoLOC_502010 = Discard Crew Report
		reviewActionName = #autoLOC_502200 //#autoLOC_502200 = Review Report
		useStaging = False
		useActionGroups = True
		hideUIwhenUnavailable = True
		rerunnable = True
		xmitDataScalar = 1.0
		usageReqMaskInternal = 5
		usageReqMaskExternal = -1
	}
	MODULE
	{
		name = ModuleScienceContainer
		reviewActionName = #autoLOC_502201 //#autoLOC_502201 = Review Stored Data
		storeActionName = #autoLOC_502202 //#autoLOC_502202 = Store Experiments
		evaOnlyStorage = True
		storageRange = 2.0
	}
	RESOURCE
	{
		name = MonoPropellant
		amount = 800
		maxAmount = 800
	}

	MODULE
	{
		name = ModuleConductionMultiplier
		modifiedConductionFactor = 0.003
		convectionFluxThreshold = 3000
	}

	MODULE
	{
		name = ModuleDataTransmitter
		antennaType = INTERNAL
		packetInterval = 1.0
		packetSize = 2
		packetResourceCost = 12.0
		requiredResource = ElectricCharge
		antennaPower = 5000
		optimumRange = 2500
		packetFloor = .1
		packetCeiling = 5
	}

	
	MODULE
	{
		name = ModuleLiftingSurface
		useInternalDragModel = False
		deflectionLiftCoeff = 1.0
		dragAtMaxAoA = 0.5
		dragAtMinAoA = 0.03
	}
	MODULE
	{
		name = ModuleInventoryPart
		InventorySlots = 4
		packedVolumeLimit = 800
	}




	MODULE
	{
		name = ModuleGenerator
		isAlwaysActive = true
		requiresAllinputs = false
		resourceThreshold = 0.01
		efficiency = 95
			
			OUTPUT_RESOURCE
			{
			   name = MonoPropellant
			   rate = 3.0
			}    
	}
	MODULE
	{
		name = ModuleGimbal
		gimbalTransformName = MainThrust
		gimbalRange = 2
	}
	MODULE
	{
		name = ModuleEnginesFX
		engineID = Ion
		thrustVectorTransformName = MainThrust
		exhaustDamage = False
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 200
		heatProduction = 0
		powerEffectName = IonPlume
		EngineType = Electric
		PROPELLANT
		{
			name = ElectricCharge
			ratio = 0.1
			DrawGauge = True
			minResToLeave = 1.0
		}

		atmosphereCurve
		{
			key = 0 290000
			key = 1 270000
			key = 5 250000
		}
	}
	EFFECTS
	{		
		IonPlume
		{
			AUDIO
			{
				channel = Ship
				clip = XwinKTransport/Sounds/XFlyLoud
				volume = 0.0 0.0
				volume = 0.05 0.20
				volume = 1.0 1.0
				pitch = 0.2 0.1
				pitch = 1.0 0.3
				loop = true
			}

	
		}


	}

	MODULE
	{
		name = ModuleAnimateGenericEffects 
		animationName = Wing
		startEventGUIName = Foils Open 
		endEventGUIName = Foils Close
		actionGUIName = S Foils
		defaultActionGroup = Gear
		layer = 1
		deployEffectName = deploy

		postDeployEffectName = deployed
 
		postDeployEffectLength = 5.0
		retractEffectName = retract

		postRetractEffectName = retracted
 
		postRetractEffectLength = 5.0

		animSpeed = 1

	
	}
	MODULE
	{
		name = ModuleAnimateGenericEffects 
		animationName = Ramp
		startEventGUIName = Ramp Close
		endEventGUIName = Ramp Open
		actionGUIName = Ramp
		//defaultActionGroup = Gear
		layer = 3
		deployEffectName = deploy

		postDeployEffectName = deployed
 
		postDeployEffectLength = 5.0
		retractEffectName = retract

		postRetractEffectName = retracted
 
		postRetractEffectLength = 5.0

		animSpeed = 1

	
	}

	EFFECTS
	{
		deploy
		{
			AUDIO
			{
				channel = Ship
				clip = XwinKTransport/Sounds/Gear
				volume = 0 0
				volume = 1 0.7
				pitch = 0.75
			}
			AUDIO_LOOP
			{
				channel = Ship
				clip = XwinKTransport/Sounds/Gear
				volume = 0 0
				volume = 1 0.7
				pitch = 0.55
			}
		}
		deployed
		{
			AUDIO
			{
				channel = Ship
				clip = XwinKTransport/Sounds/Lock
				volume = 0 0
				volume = 1 0.7
				pitch = 0.50
			}
		}
		retract
		{
			AUDIO
			{
				channel = Ship
				clip = XwinKTransport/Sounds/Gear
				volume = 0 0
				volume = 1 0.7
				pitch = 0.60
			}
			AUDIO_LOOP
			{
				channel = Ship
				clip = XwinKTransport/Sounds/Gear
				volume = 0 0
				volume = 1 0.7
				pitch = 0.50
			}
		}
		retracted
		{
			AUDIO
			{
				channel = Ship
				clip = XwinKTransport/Sounds/Lock
				volume = 0 0
				volume = 1 0.7
				pitch = 0.75
			}
		}
	}
	


MODULE
    	{
        	name = ModulePartVariants
       	 	baseVariant = Traditional

        	VARIANT
        	{
        	    	name = Traditional
            		displayName = Traditional
            		themeName = Traditional
            		primaryColor = #502B22
            		secondaryColor = #DEE2E1
            		TEXTURE
           		 {
               			materialName = Xwing
                		mainTextureURL = XwinKTransport/Parts/Xwing

           		 }
       		}
        	VARIANT
        	{
          		name = Modern
           		displayName = Modern
           		themeName = Modern
            		primaryColor = #1C3355
            		secondaryColor = #DEE2E1
            		TEXTURE
           		 {
               			materialName = Xwing
                		mainTextureURL = XwinKTransport/Parts/XwingAlt

           		 }
        	}

        	VARIANT
        	{
          		name = Green
           		displayName = Green
           		themeName = Green
            		primaryColor = #297D00
            		secondaryColor = #D6D8D6
            		TEXTURE
           		 {
               			materialName = Xwing
                		mainTextureURL = XwinKTransport/Parts/XwingG

           		 }
        	}
        	VARIANT
        	{
          		name = Red
           		displayName = Red
           		themeName = Red
            		primaryColor = #7B2821
            		secondaryColor = #D6D8D6
            		TEXTURE
           		 {
               			materialName = Xwing
                		mainTextureURL = XwinKTransport/Parts/XwingR

           		 }
        	}
        	VARIANT
        	{
          		name = Yellow
           		displayName = Yellow
           		themeName = Yellow
            		primaryColor = #C59E4A
            		secondaryColor = #D6D8D6
            		TEXTURE
           		 {
               			materialName = Xwing
                		mainTextureURL = XwinKTransport/Parts/XwingY

           		 }
        	}
        	VARIANT
        	{
          		name = Orange
           		displayName = Orange
           		themeName = Orange
            		primaryColor = #C54D00
            		secondaryColor = #D6D8D6
            		TEXTURE
           		 {
               			materialName = Xwing
                		mainTextureURL = XwinKTransport/Parts/XwingO

           		 }
        	}
        	VARIANT
        	{
          		name = Plain
           		displayName = Plain
           		themeName = Plain
            		primaryColor = #D6D8D6
            		secondaryColor = #D6D8D6
            		TEXTURE
           		 {
               			materialName = Xwing
                		mainTextureURL = XwinKTransport/Parts/XwingP

           		 }
        	}
	}
	MODULE
	{
		name = ModuleLight
		lightName = spotlight
		lightMeshRendererName = Lamp
		useAnimationDim = true
		lightBrightenSpeed = 2.5
		lightDimSpeed = 2.5
		resourceAmount = 0.005
		animationName = LightAnimation
		useResources = true
		canBlink = true
		blinkhMin = 0.2
		blinkMax = 2
		disableColorPicker = false
	}
}
