PART
{
	name = S1p5APU
	module = Part
	author = blackheart612

	MODEL
	{
		model = AirplanePlus/Parts/Utility/APU/models15
	}
	rescaleFactor = 1
	node_stack_top = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 2
	node_attach = 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1
	attachRules = 1,0,1,1,0
	CoMOffset = 0.0, -1.0, 0.0

	TechRequired = supersonicFlight
	entryCost = 15000
	cost = 1500
	category = Engine
	subcategory = 0
	title = #loc_APP_part_S1p5APU_title
	manufacturer = #loc_APP_part_manufacturer
	description = #loc_APP_part_S1p5APU_description
	bulkheadProfiles = size1p5
	tags = apu aircraft (jet plane propuls

	mass = 1.75
	// heatConductivity = 0.06 // half default
	skinInternalConductionMult = 4.0
	emissiveConstant = 0.8 // engine nozzles are good at radiating.
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 2
	crashTolerance = 7
	maxTemp = 2000 // = 3600

	RESOURCE
	{
		name = IntakeAir
		amount = 3.6
		maxAmount = 3.6
	}

	MODULE
	{
		name = ModuleEnginesFX
		engineID = Cruise
		thrustVectorTransformName = thrustTransform
		exhaustDamage = False
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 7
		heatProduction = 100
		useEngineResponseTime = True
		engineAccelerationSpeed = 0.06
		engineDecelerationSpeed = 0.25
		//fxOffset = 0, 0, 0.74
		flameoutEffectName = flameout
		powerEffectName = running_thrust
		engageEffectName = engage
		disengageEffectName = disengage
		spoolEffectName = running_turbine
		engineSpoolIdle = 0.05
		engineSpoolTime = 2.0
		EngineType = Turbine
		exhaustDamageMultiplier = 2
		clampPropReceived = True
		PROPELLANT
		{
			name = IntakeAir
			ignoreForIsp = True
			ratio = 227
		}
		PROPELLANT
		{
			name = LiquidFuel
			resourceFlowMode = STAGE_STACK_FLOW_BALANCE
			ratio = 1
			DrawGauge = True
		}
		atmosphereCurve
		{
			key = 0 15000 0 0
		}
		// Jet params
		atmChangeFlow = True
		useVelCurve = True
		useAtmCurve = True
		flameoutBar = 0.02
		machLimit = 0.75
		machHeatMult = 40
		velCurve
		{
			key = 0 1 -0.1543096 -0.1543096
			key = 0.1818513 0.8586813 0 0
			key = 0.4 0.964 0 0
			key = 0.6525106 0.6439561 -3.278422 -2.582144
			key = 0.72 0 -17.68372 -8.84913
		}
		atmCurve
		{
			key = 0 0 0 0
			key = 0.072 0.085 1.172947 1.172947
			key = 0.337 0.37 0.98425 0.98425
			key = 1 1 1.179067 1.179067
		}
	}
	MODULE
	{
		name = ModuleAnimateGeneric
		animationName = sharedAPUOpen
		startEventGUIName = Open Compartment
		endEventGUIName = Close Compartment
		actionGUIName = Toggle Compartment
		layer = 1
	}
	MODULE
	{
		name = ModuleAlternator
		RESOURCE
		{
			name = ElectricCharge
			rate = 10
		}
	}
	EFFECTS
	{
		running_thrust
		{
			AUDIO
			{
				channel = Ship
				clip = AirplanePlus/Sounds/apu_idle
				volume = 0.0 0.0
				volume = 0.05 0.5
				volume = 1.0 1.0
				pitch = 0.0 0.8
				pitch = 1.0 1.0
				loop = true
			}
		}
		running_turbine
		{
			AUDIO
			{
				channel = Ship
				clip = AirplanePlus/Sounds/apu_spool
				volume = 0.0 0.0
				volume = 0.05 0.1
				volume = 1.0 0.3
				pitch = 0.0 0.4
				pitch = 0.05 0.5
				pitch = 1.0 1.0
				loop = true
			}
		}
		engage
		{
			AUDIO
			{
				channel = Ship
				clip = AirplanePlus/Sounds/apu_start
				volume = 1.0
				pitch = 1.0
				loop = false
			}
		}
		disengage
		{
			AUDIO
			{
				channel = Ship
				clip = AirplanePlus/Sounds/apu_stop
				volume = 1.0
				pitch = 1.0
				loop = false
			}
		}
		flameout
		{
			AUDIO
			{
				channel = Ship
				clip = AirplanePlus/Sounds/apu_stop
				volume = 1.0
				pitch = 1.0
				loop = false
			}
		}
	}
}
