PART
{
	// --- general parameters ---
	name = herculesprop
	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 = 10000
	entryCost = 2200
	category = Engine
	subcategory = 0
	title = #loc_APP_part_herculesprop_title
	manufacturer = #loc_APP_part_manufacturer
	description = #loc_APP_part_herculesprop_description
	bulkheadProfiles = size1
	tags = ac-130 c-130 hercules turbo prop

	// --- standard part parameters ---
	mass = 2.5
	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/hercules_idle
		disengage = AirplanePlus/Sounds/hercules_stop
		flameout = AirplanePlus/Sounds/hercules_stop
		//warning =
		powerPitchBase = 1.0
		thrustAddedToPitch = 0.4
		powerFadeInSpeed = 0.004
		powerFadeInDelay = 1.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 = 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 = ModuleEnginesFX
		thrustVectorTransformName = thrustTransform
		exhaustDamage = False
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 170
		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 10000 0 0
			}
			atmChangeFlow = True
			useVelCurveIsp = False
			useVelCurve = True
			useAtmCurveIsp = False
			useAtmCurve = True
			flameoutBar = 0.01
			machLimit = 1.0
		velCurve
		{
			key = 0 0.1972858 1.89316 0.005257202
			key = 0.05875192 0.5748172 20.72351 6.815576
			key = 0.1583306 0.8960714 1.949053 1.406301
			key = 0.3687735 0.9395936 -1.074321 -1.799593
			key = 0.48024 0.2972859 -12.39501 -13.6386
			key = 0.49 0.1 -0.1923965 0
			key = 0.8 0.1 0 -1
			key = 0.9 0
		}
		atmCurve
		{
			key = 0 0
			key = 0.03681628 0.04795167 2.854039 0.8369334
			key = 0.08672491 0.5301446 6.640914 6.782105
			key = 0.2237096 0.87207 0.8609211 0.5233155
			key = 1 1 0.0005412238 0
		}
	}
	MODULE
	{
		name = FSpropellerAtmosphericNerf
		thrustModifier = 1.5
	}
	MODULE
	{
		name = ModuleAlternator
		RESOURCE
		{
			name = ElectricCharge
			rate = 1.0
		}
	}

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

	MODULE
	{
		name = ModuleResourceIntake
		resourceName = IntakeAir
		checkForOxygen = false
		area = 0.03
		intakeSpeed = 50
		intakeTransformName = thrustTransform //Intake
	}
	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 = disc
		blade1 = blade1
		blade2 = blade2
		blade3 = blade3
		blade4 = blade4
	}
	MODULE
	{
		name = FSswitchEngineThrustTransform
		defaultTTName = thrustTransform
	}
	MODULE
	{
		name = FSengineHandCrank
	}
}
