PART
{
	name = cf34
	module = Part
	author = blackheart612

	MODEL
	{
		model = AirplanePlus/Parts/Engine/Modern/CF34/model
	}
	rescaleFactor = 1
	//node_stack_top = 0.0, 2.79765, 0.56691, 0.0, 1.0, 0.0, 2
	node_attach = 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1
	attachRules = 1,1,1,1,0
	CoMOffset = 0.0, 1.0, 0.5441

	TechRequired = supersonicFlight
	entryCost = 15000
	cost = 1000
	category = Engine
	subcategory = 0
	title = #loc_APP_part_cf34_title
	manufacturer = #loc_APP_part_manufacturer
	description = #loc_APP_part_cf34_description
	bulkheadProfiles = srf
	tags = airbus aircraft (jet plane propuls reverse

	mass = 1.95
	// heatConductivity = 0.06 // half default
	skinInternalConductionMult = 4.0
	emissiveConstant = 0.8 // engine nozzles are good at radiating.
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 2
	crashTolerance = 7
	maxTemp = 2000 // = 3600

	RESOURCE
	{
		name = IntakeAir
		amount = 3.4
		maxAmount = 3.4
	}

	// Do this first, so the engine gets the resultant air.
	MODULE
	{
		name = ModuleResourceIntake
		resourceName = IntakeAir
		checkForOxygen = true
		area = 0.03
		intakeSpeed = 30
		intakeTransformName = intakeTransform
		occludeNode = top
		machCurve
		{
			key = 1 1 0 0
			key = 1.5 0.9 -0.4312553 -0.4312553
			key = 2.5 0.45 -0.5275364 -0.5275364
			key = 3.5 0.1 0 0
		}
	}
	MODULE
	{
		name = ModuleEnginesFX
		engineID = Cruise
		thrustVectorTransformName = thrustTransform
		exhaustDamage = False
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 100
		heatProduction = 100
		useEngineResponseTime = True
		engineAccelerationSpeed = 0.06
		engineDecelerationSpeed = 0.25
		//fxOffset = 0, 0, 0.74
		flameoutEffectName = flameout
		powerEffectName = running_thrust
		engageEffectName = engage
		disengageEffectName = disengage
		spoolEffectName = running_turbine
		engineSpoolIdle = 0.05
		engineSpoolTime = 2.0
		EngineType = Turbine
		exhaustDamageMultiplier = 2
		clampPropReceived = True
		PROPELLANT
		{
			name = IntakeAir
			ignoreForIsp = True
			ratio = 227
		}
		PROPELLANT
		{
			name = LiquidFuel
			resourceFlowMode = STAGE_STACK_FLOW_BALANCE
			ratio = 1
			DrawGauge = True
		}
		atmosphereCurve
		{
			key = 0 12600 0 0
		}
		// Jet params
		atmChangeFlow = True
		useVelCurve = True
		useAtmCurve = True
		flameoutBar = 0.02
		machLimit = 0.75
		machHeatMult = 40
		velCurve
		{
			key = 0 1 -0.1543096 -0.1543096
			key = 0.1818513 0.8586813 0 0
			key = 0.4 0.964 0 0
			key = 0.6525106 0.6439561 -3.278422 -2.582144
			key = 0.72 0 -17.68372 -8.84913
		}
		atmCurve
		{
			key = 0 0 0 0
			key = 0.072 0.085 1.172947 1.172947
			key = 0.337 0.37 0.98425 0.98425
			key = 1 1 1.179067 1.179067
		}
	}
	MODULE
	{
		name = ModuleAnimateHeat
		ThermalAnim = cf34heat
	}
	MODULE
	{
		name = ModuleAnimateGeneric
		animationName = cf34reverse
		startEventGUIName = Reverse Thrust
		endEventGUIName = Forward Thrust
		actionGUIName = Toggle Thrust Reverser
		layer = 1
	}
	MODULE
	{
		name = FXModuleAnimateThrottle
		animationName = cf34spin
		responseSpeed = 0.05
		layer = 2
		dependOnEngineState = True
		dependOnThrottle = True
		weightOnOperational = True
		affectTime = false
		baseAnimSpeed = 0.01		// base + (throttle setting * multiplier)
		baseAnimSpeedMult = 100
		playInEditor = False
		animWrapMode = 2  	//	Default = 0	Once = 1		Clamp = 1	Loop = 2		PingPong = 4	ClampForever = 8
	}
//	MODULE
//	{
//		name = FlagDecal //replaced by textureswitch brandDecal
//		textureQuadName = FLAG
//	}
	MODULE
	{
		name = ModuleAlternator
		RESOURCE
		{
			name = ElectricCharge
			rate = 3
		}
	}
	MODULE
	{
		name = ModuleSurfaceFX
		thrustProviderModuleIndex = 1
		fxMax = 0.5
		maxDistance = 20
		falloff = 2
		thrustTransformName = smokePoint
	}
	EFFECTS
	{
		running_thrust
		{
			AUDIO
			{
				channel = Ship
				clip = AirplanePlus/Sounds/jet_idle
				volume = 0.0 0.0
				volume = 0.05 0.4
				volume = 1.0 1.0
				pitch = 0.0 0.6
				pitch = 1.0 1.0
				loop = true
			}
			PREFAB_PARTICLE
			{
				prefabName = fx_smokeTrail_light
				transformName = smokePoint
				emission = 0.0 0.0
				emission = 0.05 0.0
				emission = 0.075 0.25
				emission = 1.0 1.25
				speed = 0.0 0.25
				speed = 1.0 1.0
				localOffset = 0, 0, 1
				localRotation = 1, 0, 0, -90
			}
		}
		running_turbine
		{
			AUDIO
			{
				channel = Ship
				clip = AirplanePlus/Sounds/jet_spool
				volume = 0.0 0.0
				volume = 0.05 0.7
				volume = 1.0 0.9
				pitch = 0.0 0.4
				pitch = 0.05 0.5
				pitch = 1.0 1.0
				loop = true
			}
		}
		engage
		{
			AUDIO
			{
				channel = Ship
				clip = AirplanePlus/Sounds/jet_start
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
		disengage
		{
			AUDIO
			{
				channel = Ship
				clip = AirplanePlus/Sounds/jet_stop
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
		flameout
		{
			PREFAB_PARTICLE
			{
				prefabName = fx_exhaustSparks_flameout_2
				transformName = smokePoint
				oneShot = true
			}
			AUDIO
			{
				channel = Ship
				clip = AirplanePlus/Sounds/jet_stop
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
	}
//	MODULE
//	{
//		name = FStextureSwitch2
//		moduleID = 1
//		//showListButton = True
//		nextButtonText = Next Paint
//		prevButtonText = Previous Paint
//		statusText = Current Paint
//		textureRootFolder = AirplanePlus\Agencies\
//		textureNames = Conglomerate\Blank;Conglomerate\KS;Conglomerate\RR
//		objectNames = brandDecal
//		textureDisplayNames = Blank;Kerbal Standard;RR Propulsion
//		switchableInFlight = false
//		repaintableEVA = false
//		debugMode = false
//		showInfo = false
//	}
	MODULE
	{
		name = FSmeshSwitch
		moduleID = 0
		buttonName = Next
		previousButtonName = Previous
		objectDisplayNames = Hardpoint;No Hardpoint
		objects = attach, engine, nose, reverser;engine, nose, reverser
		updateSymmetry = true
	}
}
