PART
{
	// --- general parameters ---
	name = KP12
	module = Part
	author = blackheart612

	// --- 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 = highAltitudeFlight
	cost = 9500
	entryCost = 2200
	category = Engine
	subcategory = 0
	title = #loc_APP_part_KP12_title
	manufacturer = #loc_APP_part_manufacturer
	description = #loc_APP_part_KP12_description
	bulkheadProfiles = size1
	tags = contra-prop kuznetsov nk-12 turbo tu-95 prop

	// --- standard part parameters ---
	mass = 4.00
	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/contraprop_startup
		//running =
		power = AirplanePlus/Sounds/contraprop_idle
		disengage = AirplanePlus/Sounds/contraprop_stop
		flameout = AirplanePlus/Sounds/contraprop_stop
		//warning =
		powerPitchBase = 0.4
		thrustAddedToPitch = 0.45
		powerFadeInSpeed = 0.004
		powerFadeInDelay = 0.01
		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 = 150
		heatProduction = 100
		useEngineResponseTime = True
		engineAccelerationSpeed = 0.25
		engineDecelerationSpeed = 0.6
		engageEffectName = engage
		disengageEffectName = disengage
		spoolEffectName = idle
		useVelocityCurve = True
		PROPELLANT
		{
			name = LiquidFuel
			ratio = 1
			DrawGauge = True
		}
		PROPELLANT
		{
			name = IntakeAir
			resourceFlowMode = STAGE_PRIORITY_FLOW
			ignoreForIsp = True
			ratio = 15
		}
		atmosphereCurve
		{
			key = 0 11000 0 0
		}
		atmChangeFlow = True
		useVelCurveIsp = False
		useVelCurve = True
		useAtmCurveIsp = False
		useAtmCurve = True
		flameoutBar = 0.01
		machLimit = 1.0
		velCurve
		{
			key = 0 0.2 1.89316 0.02717497
			key = 0.07558221 0.5198391 12.56143 6.895904
			key = 0.180771 0.8685658 1.954352 0.8993356
			key = 0.749 0.9 -0.7304692 -1.786734
			key = 0.78 0.1 -59.51281 0
			key = 0.8 0.1 0 -1
			key = 0.9 0
		}
		atmCurve
		{
			key = 0 0
			key = 0.03120618 0.02036311 0.3664213 0.8369334
			key = 0.1091653 0.4970383 6.640914 4.920659
			key = 0.2770055 0.8665523 0.962913 0.5840774
			key = 1 1 0.5949709 0
		}
	}
	MODULE
	{
		name = FSpropellerAtmosphericNerf
		thrustModifier = 1.5
	}
	MODULE
	{
		name = ModuleAlternator
		RESOURCE
		{
			name = ElectricCharge
			rate = 1.0
		}
	}

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

	RESOURCE
	{
		name = IntakeAir
		amount = 0
		maxAmount = 15.0
	}

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

	MODULE
	{
		name = FSplanePropellerSpinner
		propellerName = nosecone
		rotationSpeed = 200
		windmillRPM = 0.1
		spinUpTime = 0.6
		useRotorDiscSwap = 1
		rotorDiscFadeInStart = 0.95
		rotorDiscFadeInEnd = 0.95
		rotorDiscSpeed = 10
		rotorDiscName = fdisc
		blade1 = fblade1
		blade2 = fblade2
		blade3 = fblade3
		blade4 = fblade4
	}
	MODULE
	{
		name = FSplanePropellerSpinner
		propellerName = nosestructure
		rotationSpeed = -200
		windmillRPM = 0.1
		spinUpTime = 0.6
		useRotorDiscSwap = 1
		rotorDiscFadeInStart = 0.95
		rotorDiscFadeInEnd = 0.95
		rotorDiscSpeed = -10
		rotorDiscName = rdisc
		blade1 = rblade1
		blade2 = rblade2
		blade3 = rblade3
		blade4 = rblade4
	}
	MODULE
	{
		name = FSswitchEngineThrustTransform
		defaultTTName = thrustTransform
	}
	MODULE
	{
		name = FSengineHandCrank
	}
}
