PART
{
	// --- general parameters ---
	name = spitfiremerlin
	module = Part
	author = blackheart612/Tanner Rawlings

	// --- asset parameters ---
	mesh = model.mu
	rescaleFactor = 1.0

	// --- node definitions ---
	node_stack_top = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0

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

	// --- FX definitions ---
	//fx_exhaustLight_yellow = 0.0, -0.1, 0.0, 0.0, 0.0, 1.0, power
	//fx_smokeTrail_light  = 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, power
	//fx_exhaustSparks_flameout = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, flameout

	// --- Sound FX definition ---
	//sound_fspropstart.wav = engage
	//sound_fspropidle.wav = power
	//sound_jet_deep = running
	//sound_vent_soft = disengage
	//sound_explosion_low = flameout

	// --- editor parameters ---
	TechRequired = advAerodynamics
	cost = 1800
	entryCost = 3600
	category = Engine
	subcategory = 0
	title = #loc_APP_part_spitfiremerlin_title
	manufacturer = #loc_APP_part_manufacturer
	description = #loc_APP_part_spitfiremerlin_description
	bulkheadProfiles = size1
	tags = griffon spitfire

	// --- standard part parameters ---
	mass = 0.7
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 2
	breakingForce = 200
	breakingTorque = 200
	crashTolerance = 15
	maxTemp = 3600
	fuelCrossFeed = True

	MODULE
	{
		name = FSengineSounds
		engage = AirplanePlus/Sounds/spitfire_start
		//running =
		power = AirplanePlus/Sounds/spitfire_idle
		disengage = AirplanePlus/Sounds/spitfire_stop
		flameout = AirplanePlus/Sounds/piston_flameout
		//warning =
		powerPitchBase = 1.0
		thrustAddedToPitch = 0.45
		powerFadeInSpeed = 0.003
		powerFadeInDelay = 3.5
		powerLowerThreshold = 0.0
		powerVolume = 1.0
		engageVolume = 1.0
		warningSoundThreshold = 0.8
		warningCooldownTime = 2.0
		randomStartDelay = 1.0 //for playing engines slightly out of sync
	}
	MODULE
	{
		name = ModuleEnginesFX
		thrustVectorTransformName = thrustTransform
		exhaustDamage = False
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 50
		heatProduction = 100
		useEngineResponseTime = True
		engineAccelerationSpeed = 2.5
		engineDecelerationSpeed = 5.0
		useVelocityCurve = True
		PROPELLANT
		{
			name = LiquidFuel
			ratio = 1
			DrawGauge = True
		}
		PROPELLANT
		{
			name = IntakeAir
			ignoreForIsp = True
			ratio = 15
		}
		atmosphereCurve
		{
			key = 0 5882.97 0 0
		}
		atmChangeFlow = True
		useVelCurve = True
		useAtmCurve = True
		flameoutBar = 0.01
		machLimit = 0.8
		velCurve
		{
			key = 0 0.2 14 0.02667847
			key = 0.05 0.9 34.09132 16.0907
			key = 0.1 0.8 -1.5 -1.5
			key = 0.58 0.5 -1.503613 -0.01715085
			key = 0.6 0.1 -0.02082341 -1.406882
			key = 0.9 0
		}
		atmCurve
		{
			key = 0 0
			key = 0.175 0.8
			key = 0.2 2.25
			key = 0.45 1.0
			key = 0.525 1.025
			key = 0.9 0.9
			key = 1 0.5
		}
		atmCurveIsp
		{
			key = 1 1
			key = 0.525 0.9
			key = 0.45 0.8
			key = 0.2 1
			key = 0.175 0.6
			key = 0 0
		}
		velCurveIsp
		{
			key = 0 2
			key = 0.2 1.2
			key = 0.4 0.7
			key = 0.6 0.3
			key = 0.9 0.1
			key = 1.2 0.2
		}
	}
	MODULE
	{
		name = ModuleAlternator
		RESOURCE
		{
			name = ElectricCharge
			rate = 1.0
		}
	}

	//---- Integrated air intake (based on Kethane engine)

	MODULE
	{
		name = ModuleResourceIntake
		resourceName = IntakeAir
		checkForOxygen = true
		area = 0.001
		intakeSpeed = 10
		intakeTransformName = thrustTransform //Intake
	}
	RESOURCE
	{
		name = IntakeAir
		amount = 0
		maxAmount = 15.0
	}

	//---- Deployable air scoop responding to the throttle

	MODULE
	{
		name = FSplanePropellerSpinner
		propellerName = nosecone
		rotationSpeed = 400
		windmillRPM = 0.1
		spinUpTime = 3.0
		useRotorDiscSwap = 1
		rotorDiscFadeInStart = 0.95
		rotorDiscFadeInEnd = 0.95
		rotorDiscSpeed = 20
		rotorDiscName = disc
		blade1 = blade1
		blade2 = blade2
		blade3 = blade3
		blade4 = blade4
		blade5 = blade5
	}
	MODULE
	{
		name = FSswitchEngineThrustTransform
		defaultTTName = thrustTransform
		alternateTTName = alternatethrustTransform
		useNamedAlternate = 0
	}
	MODULE
	{
		name = FSengineHandCrank
	}
}
