PART
{
	// --- general parameters ---
	name = coaxialprop
	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,1,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 = 5000
	entryCost = 3000
	category = Engine
	subcategory = 0
	title = #loc_APP_part_coaxialprop_title
	manufacturer = #loc_APP_part_manufacturer
	description = #loc_APP_part_coaxialprop_description
	bulkheadProfiles = srf
	tags = control gyro helicopter kamov rotor steer

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

	MODULE
	{
		name = FSengineBladed
		//Craft Load: <6.0t
		//rotorHubName = drotator
		bladeHubName = blade
		baseTransformName = baseReference
		tailRotor = false
		wingArea = 1.0
		maxRPM = 1000
		span = 1.12
		maxThrust = 50 // doesn't mean anything in a bladed engine, except as a coefficient for fuel consumption
		resources = LiquidFuel,1;IntakeAir,15
		fuelConsumption = 0,0.0001;1,0.001
		powerProduction = 260
	}
	MODULE
	{
		name = FSengineSounds
		engage = AirplanePlus/Sounds/rotor_startup
		//running = AirplanePlus/Sounds/turbine_idle
		power = AirplanePlus/Sounds/powerprop_idle
		disengage = AirplanePlus/Sounds/helicopter_stop
		flameout = AirplanePlus/Sounds/helicopter_stop
		//warning =
		powerPitchBase = 0.75
		thrustAddedToPitch = 0.15
		powerFadeInSpeed = 0.0025
		powerFadeInDelay = 0.2
		powerLowerThreshold = 0.0
		powerVolume = 1.0
		engageVolume = 1.0
		warningSoundThreshold = 0.8
		warningCooldownTime = 2.0
		randomStartDelay = 0.0 //for playing engines slightly out of sync
	}
	MODULE
	{
		name = FSengineSounds
		engage = AirplanePlus/Sounds/turbine_startup
		//running = AirplanePlus/Sounds/turbine_idle
		power = AirplanePlus/Sounds/turbine_idle
		//disengage = AirplanePlus/Sounds/helicopter_stop
		//flameout = AirplanePlus/Sounds/helicopter_flameout
		//warning =
		powerPitchBase = 0.75
		thrustAddedToPitch = 0.15
		powerFadeInSpeed = 0.0025
		powerFadeInDelay = 0.1
		powerLowerThreshold = 0.0
		powerVolume = 0.75
		engageVolume = 1.0
		warningSoundThreshold = 0.8
		warningCooldownTime = 2.0
		randomStartDelay = 0.0 //for playing engines slightly out of sync
	}
	MODULE
	{
		name = FSengineSounds
		engage = AirplanePlus/Sounds/rotor_click
		//running =
		power = AirplanePlus/Sounds/rotor_idle
		//disengage =
		//flameout =
		//warning =
		powerPitchBase = 0.75
		thrustAddedToPitch = 0.15
		powerFadeInSpeed = 0.0025
		powerFadeInDelay = 0.5
		powerLowerThreshold = 0.0
		powerVolume = 1.0
		engageVolume = 1.0
		warningSoundThreshold = 0.8
		warningCooldownTime = 2.0
		randomStartDelay = 0.0 //for playing engines slightly out of sync
	}
	MODULE
	{
		name = FSengineSounds
		//engage = AirplanePlus/Sounds/rotor_click
		//running =
		power = AirplanePlus/Sounds/prop_far
		//disengage =
		//flameout =
		//warning =
		powerPitchBase = 0.75
		thrustAddedToPitch = 0.15
		powerFadeInSpeed = 0.0025
		powerFadeInDelay = 0.5
		powerLowerThreshold = 0.0
		powerVolume = 1.0
		engageVolume = 1.0
		warningSoundThreshold = 0.8
		warningCooldownTime = 2.0
		randomStartDelay = 0.0 //for playing engines slightly out of sync
	}
	MODULE
	{
		name = ModuleSurfaceFX //I don't even know how this works
		thrustProviderModuleIndex = 0
		fxMax = 0.1
		maxDistance = 20
		falloff = 1
		thrustTransformName = thrustTransform
	}
	MODULE
	{
		name = FSalternator
		resourceName = ElectricCharge
		chargeRate = 0.02
	}
	MODULE
	{
		name = FSplanePropellerSpinner
		moduleID = 0
		propellerName = drotator
		duplicatedBlades = true
		rotationSpeed = 400
		windmillRPM = 0.1
		spinUpTime = 1.0
		useRotorDiscSwap = 1
		rotorDiscFadeInStart = 0.55
		rotorDiscFadeInEnd = 0.95
		rotorDiscSpeed = 400
		rotorDiscName = ddisc
		blade1 = dblade
	}
	MODULE
	{
		name = FSplanePropellerSpinner
		moduleID = 1
		propellerName = urotator
		duplicatedBlades = true
		rotationSpeed = 400
		windmillRPM = 0.1
		spinUpTime = 1.0
		useRotorDiscSwap = 1
		rotorDiscFadeInStart = 0.55
		rotorDiscFadeInEnd = 0.95
		rotorDiscSpeed = 400
		rotorDiscName = udisc
		blade1 = ublade
	}
	//MODULE
	//{
	//	name = FSswitchEngineThrustTransform
	//	defaultTTName = thrustTransform
	//	alternateTTName = alternateThrustTransform
	//	useNamedAlternate = 0
	//}
	//MODULE
	//{
	//	name = FSengineHandCrank
	//}
	MODULE
	{
		name = ModuleReactionWheel
		PitchTorque = 10
		YawTorque = 10
		RollTorque = 10
		RESOURCE
		{
			name = ElectricCharge
			rate = 0.1
		}
	}
}
