PART
{
	// --- general parameters ---
	name = chaikaprop
	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 = aerodynamicSystems
	cost = 1700
	entryCost = 4400
	category = Engine
	subcategory = 0
	title = #loc_APP_part_chaikaprop_title
	manufacturer = #loc_APP_part_manufacturer
	description = #loc_APP_part_chaikaprop_description
	bulkheadProfiles = size1
	//tags =

	// --- standard part parameters ---
	mass = 1.6
	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/chaika_startup
		//running =
		power = AirplanePlus/Sounds/chaika_idle
		disengage = AirplanePlus/Sounds/chaika_stop
		flameout = AirplanePlus/Sounds/piston_flameout
		//warning =
		powerPitchBase = 1.0
		thrustAddedToPitch = 0.55
		powerFadeInSpeed = 0.003
		powerFadeInDelay = 3.0
		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 = 54
		heatProduction = 40
		useEngineResponseTime = True
		engineAccelerationSpeed = .3
		engineDecelerationSpeed = .6
		useVelocityCurve = True
		PROPELLANT
		{
			name = LiquidFuel
			ratio = 1
			DrawGauge = True
		}
		PROPELLANT
		{
			name = IntakeAir
			ignoreForIsp = True
			ratio = 15
		}
		atmosphereCurve
		{
			key = 0 5920.93 0 0
		}
		atmChangeFlow = True
		useVelCurveIsp = False
		useVelCurve = True
		useAtmCurveIsp = False
		useAtmCurve = True
		flameoutBar = 0.01
		machLimit = 0.02
		velCurve
		{
			key = 0 0.9
			key = 0.05 1.1
			key = 0.1 0.7
			key = 0.15 0.4
			key = 0.17 0.05 -9.166669 -3.821292
			key = 0.2 0.03 -0.0625 -0.125
			key = 0.3 0.03 0 -1
			key = 0.4 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.8
		}
		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.002
		intakeSpeed = 9
		intakeTransformName = thrustTransform //Intake
	}
	RESOURCE
	{
		name = IntakeAir
		amount = 0
		maxAmount = 15.0
	}

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

	MODULE
	{
		name = FSplanePropellerSpinner
		propellerName = shaft
		rotationSpeed = 400
		windmillRPM = 0.1
		spinUpTime = 0.6
		useRotorDiscSwap = 1
		rotorDiscFadeInStart = 0.95
		rotorDiscFadeInEnd = 0.95
		rotorDiscSpeed = 20
		rotorDiscName = shaftdisc
		blade1 = blade1
		blade2 = blade2
		blade3 = shaft
	}
	MODULE
	{
		name = FSplanePropellerSpinner
		propellerName = shaft
		rotationSpeed = 400
		windmillRPM = 0.1
		spinUpTime = 0.6
		useRotorDiscSwap = 1
		rotorDiscFadeInStart = 0.95
		rotorDiscFadeInEnd = 0.95
		rotorDiscSpeed = 20
		rotorDiscName = nosedisc
		blade1 = blade1
		blade2 = blade2
		blade3 = nosecone
	}
	MODULE
	{
		name = FSswitchEngineThrustTransform
		defaultTTName = thrustTransform
		alternateTTName = alternatethrustTransform
		useNamedAlternate = 0
	}
	MODULE
	{
		name = FSengineHandCrank
	}
	MODULE
	{
		name = FSmeshSwitch
		moduleID = 0
		buttonName = Next
		previousButtonName = Previous
		objectDisplayNames = Shaft;Nosecone
		objects = body, shaft, blade1, blade2, shaftdisc;body, nosecone, shaft, blade1, blade2, nosedisc
		updateSymmetry = true
	}
}
