// Original model by Zorg and distributed by DylanSemrau for Boring Crew Services under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
PART
{
	name = aa-28
	module = Part
	author = Charles Rogers
	MODEL
	{
		model = AlcoholicAeronautics/Assets/aa-28-engine
	}
	MODEL
	{
		model = AlcoholicAeronautics/Assets/aa-mount-0625
		position = 0.0, 0.125, 0.0
	}
	SHABBY_MATERIAL_REPLACE:NEEDS[Resurfaced]
	{
		materialDef = aa-common-pbr
		targetMaterial = aa-common
	}
	SHABBY_MATERIAL_REPLACE:NEEDS[Resurfaced]
	{
		materialDef = aa-28-engine-pbr
		targetMaterial = aa-28-engine
	}
	rescaleFactor = 1
	scale = 1
	node_attach = 0.0, 0.125, 0.0, 0.0, 1.0, 0.0, 0
	node_stack_top = 0.0, 0.125, 0.0, 0.0, 1.0, 0.0, 0
	node_stack_bottom = 0.0, -0.5, 0.0, 0.0, -1.0, 0.0, 0

	TechRequired = propulsionSystems
	entryCost = 700
	cost = 250
	category = Engine
	subcategory = 0
	title = #LOC_AlcoholicAeronautics_aa-28_title
	manufacturer = #LOC_AlcoholicAeronautics_manufacturer_title
	description = #LOC_AlcoholicAeronautics_aa-28_description
	attachRules = 1,1,1,1,0
	mass = 0.15
	heatConductivity = 0.06
	skinInternalConductionMult = 4.0
	emissiveConstant = 0.8
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 2
	crashTolerance = 7
	breakingTorque = 200
	breakingForce = 200
	maxTemp = 2000
	bulkheadProfiles = size0, srf
	tags = #LOC_AlcoholicAeronautics_aa-28_tags

	EFFECTS
	{
		aa-28-running
		{
			AUDIO
			{
				channel = Ship
				clip = sound_rocket_hard
				volume = 0.0 0.0
				volume = 0.01 0.4
				volume = 1.0 1.0
				pitch = 0.0 0.2
				pitch = 0.01 0.6
				pitch = 1.0 1.8
				loop = true
			}
			MODEL_MULTI_PARTICLE
			{
				name = shock
				modelName = AlcoholicAeronautics/FX/PlumeParty/Engines/Turbine/turboBlueShock
				transformName = thrustTransform
				emission = 0.0 0.0
				emission = 0.3 0.1
				emission = 1.0 0.5
				speed = 0.0 1.0
				speed = 1.0 1.0
				energy = 0.2 0.8
				energy = 1.0 2.0
				localScale = 0.3,0.3,0.3
				localPosition = 0.0,0.0,0.2
			}
			MODEL_MULTI_PARTICLE
			{
				name = core
				modelName = AlcoholicAeronautics/FX/PlumeParty/Engines/Generic/keroSparrowStream
				transformName = thrustTransform
				emission = 0.0 0.0
				emission = 0.3 0.15
				emission = 1.0 1.0
				speed = 0.0 1.0
				speed = 1.0 2.0
				energy = 0.2 0.3
				energy = 1.0 0.7
				localScale = 0.4,0.4,0.4
				localPosition = 0.0,0.0,0.1
			}
			MODEL_MULTI_PARTICLE
			{
				name = stream
				modelName = AlcoholicAeronautics/FX/PlumeParty/Engines/BlueOrigin/keroSLLamp
				transformName = thrustTransform
				emission = 0.0 0.0
				emission = 0.3 0.04
				emission = 1.0 0.2
				speed = 0.0 1.0
				speed = 1.0 1.3
				energy = 0.2 0.4
				energy = 1.0 1.0
				localScale = 0.5,0.5,0.5
				localPosition = 0.0,0.0,-0.1
			}
		}
		engage
		{
			AUDIO
			{
				channel = Ship
				clip = sound_vent_soft
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
		disengage
		{
			AUDIO
			{
				channel = Ship
				clip = sound_explosion_low
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
		flameout
		{
			PREFAB_PARTICLE
			{
				prefabName = fx_exhaustSparks_flameout_2
				transformName = thrustTransform
				oneShot = true
				localScale = 1.0,1.0,1.0
			}
			AUDIO
			{
				channel = Ship
				clip = sound_explosion_low
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
	}
	MODULE
	{
		name = ModuleB9DisableTransform
		transform = aa-28-vacuum-nozzle
		transform = aa-28-vacuum-nozzle-alt
	}
	MODULE
	{
		name = ModuleEnginesFX
		thrustVectorTransformName = thrustTransform
		exhaustDamage = True
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 60
		heatProduction = 30
		fxOffset = 0, 0, 0.0
		EngineType = LiquidFuel
		runningEffectName = aa-28-running

		PROPELLANT
		{
			name = Ethanol
			ratio = 0.5
			DrawGauge = True
		}
		PROPELLANT
		{
			name = Oxidizer
			ratio = 0.1
		}
		atmosphereCurve
		{
			key = 0 255
			key = 1 220
			key = 12 0.001
		}
	}
	MODULE
	{
		name = ModuleGimbal
		gimbalResponseSpeed = 15
		useGimbalResponseSpeed = true
		gimbalTransformName = gimbalTransform
		gimbalRange = 3
	}
	MODULE
	{
		name = ModuleB9PartSwitch
		moduleID = meshSwitchMount
		switcherDescription = Mount
		switcherDescriptionPlural = Mounts
		affectDragCubes = False
		affectFARVoxels = False
		SUBTYPE
		{
			name = 0.625m ring
			title = 0.625m ring
			transform = aa-mount-0625
			transform = aa-28-points
		}
		SUBTYPE
		{
			name = Compact
			title = Compact
		}
	}
	MODULE
	{
		name = ModuleSurfaceFX
		thrustProviderModuleIndex = 0
		fxMax = 0.6
		maxDistance = 30
		falloff = 1.5
		thrustTransformName = thrustTransform
	}
	MODULE
	{
		name = FXModuleThrottleEffects
		fxModuleNames = heatColor
		responseSpeed = 1.0
		dependOnEngineState = True
		dependOnThrottle = True
	}
	MODULE
	{
		name = FXModuleThrottleEffects
		fxModuleNames = throttleColor
		responseSpeed = 1.0
		dependOnEngineState = True
		dependOnThrottle = True
	}
	MODULE
	{
		name = ModuleColorChanger
		moduleID = heatColor
		animRate = 0.025
		shaderProperty = _EmissiveColor
		excludedRenderer = innerGlow
		toggleInEditor = false
		toggleInFlight = false
		redCurve
		{
			key = 0 0 1 1
			key = 1 1 1 1
		}
		greenCurve
		{
			key = 0 0 1 1
			key = 1 1 1 1
		}
		blueCurve
		{
			key = 0 0 1 1
			key = 1 1 1 1
		}
		alphaCurve
		{
			key = 0 0 1 1
			key = 1 1 1 1
		}
	}
	MODULE
	{
		name = ModuleColorChanger
		moduleID = throttleColor
		animRate = 1
		shaderProperty = _TintColor
		includedRenderer = innerGlow
		toggleInEditor = false
		toggleInFlight = false
		redCurve
		{
			key = 0 1
			key = 1 1
		}
		greenCurve
		{
			key = 0 1
			key = 1 1
		}
		blueCurve
		{
			key = 0 1
			key = 1 1
		}
		alphaCurve
		{
			key = 0 0
			key = 1 1
		}
	}
}