PART
{


// --- general parameters ---
	name = CJLambdaEngines
	module = Part
	author = ColdJ

// --- asset parameters ---

	MODEL
	{
		model = XwinKTransport/Parts/LambdaShuttleEngines1
	}
	scale = 1
	rescaleFactor = 1

// --- node definitions ---
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision

	attachRules = 1,0,1,1,1
	node_stack_top1 = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 3  //Engines
// --- editor parameters ---
	TechRequired = aerospaceTech
	entryCost = 0
	cost = 6000
	category = Engine
	subcategory = 0
	title = Lambda Shuttle Engines
	manufacturer = CJ Aeronatics
	description = The push it needs.

// --- standard part parameters ---
	mass = 0.5
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.15
	angularDrag = 1
	crashTolerance = 200
	breakingForce = 20000
	breakingTorque = 20000
	maxTemp = 3400
	stagingIcon = LIQUID_ENGINE
	bulkheadProfiles = srf, size3
	tags = xwing lambda shuttle

// --- internal setup ---
	MODULE
	{
		name = ModuleLiftingSurface
		useInternalDragModel = True
		deflectionLiftCoeff = 2.0
		dragAtMaxAoA = 0.5
		dragAtMinAoA = 0.0
	}


	RESOURCE
	{
		name = ElectricCharge
		amount = 10000
		maxAmount = 10000
	}
	RESOURCE
	{
	 	name = EnrichedUranium
	 	amount = 1
	 	maxAmount = 1
	}
	RESOURCE
	{
	 	name = DepletedFuel
	 	amount = 0
	 	maxAmount = 1
	}
	MODULE
	{
		name = ModuleGimbal
		gimbalTransformName = MainThrust
		gimbalRange = 2
	}
	MODULE
	{
		name = ModuleEnginesFX
		engineID = Ion
		thrustVectorTransformName = MainThrust
		exhaustDamage = False
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 450
		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
		}
	}
	MODULE
	{
		name = FXModuleAnimateThrottle
		animationName = colorAnimation
		dependOnEngineState = True
		responseSpeed = 0.5
		engineName = Ion
		dependOnThrottle = True
		layer = 2
	}

	EFFECTS
	{		
		IonPlume
		{
			AUDIO
			{
				channel = Ship
				clip = XwinKTransport/Sounds/XFlyLoud
				volume = 0.0 0.0
				volume = 0.05 0.20
				volume = 1.0 0.6
				pitch = 0.0 0.1
				pitch = 1.0 0.3
				loop = true
			}
			MODEL_MULTI_PARTICLE
			{
												modelName = Squad/FX/IonPlume
				transformName = Smoke
				emission = 0.0 0.0
				emission = 0.25 0.5			
				emission = 1.0 1.0
				//speed = 0.0 0.0
				//speed = 1.0 1.0
				localPosition = 0, 0, 0.12
			}
		}

	}

	


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

           		 }
        	}
	}


}