// wos-A10-engine.cfg v1.0.0.0
// Wernher's Old Stuff (WOS)
// created: 
// updated: 17 Jul 2022

// this file: CC BY-SA 4.0 by zer0Kerbal
// ghosted

PART
{
	name = wos-A10-engine // a10rocketengine
	module = Part
	author = TD and zer0Kerbal

	MODEL
	{
		model = WernhersOldStuff/Assets/EngineVectored
	}
	scale = 1
	rescaleFactor = 0.64
	bulkheadProfiles = size2

	node_stack_side1 = 1.5, 0.0, 0.0, 1.0, 0.0, 0.0, 1 
	node_stack_side2 = -1.5, 0.0, 0.0, -1.0, 0.0, 0.0, 1 
	node_stack_side3 = 0.0, 0.0, 1.5, 0.0, 0.0, 1.0, 1 
	node_stack_side4 = 0.0, 0.0, -1.5, 0.0, 0.0, -1.0, 1 
	node_stack_top = 0.0, 4.27, 0.0, 0.0, 1.0, 0.0, 2
	node_stack_bottom = 0.0, -2.77942, 0.0, 0.0, -1.0, 0.0, 2
	attachRules = 1,0,1,0,0
	stackSymmetry = 3

	TechRequired = start
	entryCost = 1500
	cost = 110
	category = Engine
	subcategory = 0
	
	title = #WOS-A10-engine // a10rocketengine-titl
	manufacturer = #WOS-Agency-titl
	description = #WOS-A10-engine // a10rocketengine-desc
	tags = #autoLOC_500441 // ascent main propuls (reliant rocket

	mass = 1.75

	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 2

	crashTolerance = 7

	maxTemp = 1300 // = 3600
	heatConductivity = 0.06 // half default
	skinInternalConductionMult = 3.0
	emissiveConstant = 0.3 // engine nozzles are good at radiating.

	MODULE
	{
		name = ModuleEnginesFX
		engineID = running
		engineName = running
		powerEffectName = running
		thrustVectorTransformName = Thrust
		exhaustDamage = False
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 604.7
		heatProduction = 10300
		fxOffset = 0, 0, 0.02
		EngineType = LiquidFuel
		PROPELLANT
		{
			name = LiquidFuel
			ratio = 0.9
			DrawGauge = True
		}
		PROPELLANT
		{
			name = Oxidizer
			ratio = 1.1
		}
		atmosphereCurve
		{
			key = 0 247
			key = 1 210
			key = 2 174
		}
	}

	MODULE
	{
		name = ModuleGimbal
		gimbalTransformName = A10GimbalY1
		gimbalRangeXP = 0
		gimbalRangeXN = 0
		gimbalRangeYP = 20
		gimbalRangeYN = 20
		gimbalRangeZP = 0
		gimbalRangeZN = 0
		//gimbalResponseSpeed = 0.9
		//useGimbalResponseSpeed = true
	}

	MODULE
	{
		name = ModuleGimbal
		gimbalTransformName = A10GimbalY2
		gimbalRangeXP = 0
		gimbalRangeXN = 0
		gimbalRangeYP = 20
		gimbalRangeYN = 20
		gimbalRangeZP = 0
		gimbalRangeZN = 0

	}

	MODULE
	{
		name = ModuleGimbal
		gimbalTransformName = A10GimbalX1
		gimbalRangeXP = 0
		gimbalRangeXN = 0
		gimbalRangeYP = 20
		gimbalRangeYN = 20
		gimbalRangeZP = 0
		gimbalRangeZN = 0

	}

	MODULE
	{
		name = ModuleGimbal
		gimbalTransformName = A10GimbalX2
		gimbalRangeXP = 0
		gimbalRangeXN = 0
		gimbalRangeYP = 20
		gimbalRangeYN = 20
		gimbalRangeZP = 0
		gimbalRangeZN = 0

	}	

	MODULE
	{
		name = ModuleAlternator
		RESOURCE
		{
			name = ElectricCharge
			rate = 3.0
		}
	}

	MODULE
	{
		name = ModuleJettison
		jettisonName = 	Fairing
		bottomNodeName = bottom
		isFairing = True
		jettisonedObjectMass = 0.1
		jettisonForce = 5
		jettisonDirection = 0 0 1
		useMultipleDragCubes = false
	}

	EFFECTS
	{
		running
		{
			AUDIO
			{
				channel = Ship
				clip = sound_rocket_mini
				volume = 0.0 0.0
				volume = 0.05 0.6
				volume = 1.0 1.5
				pitch = 0.0 1.2
				pitch = 1.0 2.0
				loop = true
			}

			MODEL_MULTI_PARTICLE
			{
				name = main_plume
				modelName = WernhersOldStuff/FX/a10Central1
				transformName = FX
				emission = 0.0 0.0
				emission = 0.01 0.01
				emission = 0.5 0.6
				emission = 1.0 1.0
				speed = 0.0 0.0
				speed = 0.1 0.1
				speed = 0.5 0.6
				speed = 1.0 1.0
				localPosition = 0, 0, 0
			}
			MODEL_MULTI_PARTICLE
			{
				name = core_plume
				modelName = WernhersOldStuff/FX/a10Central2
				transformName = FX
				emission = 0.0 0.0
				emission = 0.01 0.01
				emission = 0.5 0.4
				emission = 1.0 1.0
				speed = 0.0 0.0
				speed = 0.1 0.1
				speed = 0.5 0.6
				speed = 1.0 1.0
				localPosition = 0, 0, 0
			}
			//MODEL_MULTI_PARTICLE
			//{
			//	name = toxicsmoke
			//	modelName = WernhersOldStuff/FX/A10Smoke
			//	transformName = FX
			//	emission = 0.0 0.0
			//	emission = 0.01 0.01
			//	emission = 0.5 0.4
			//	emission = 1.0 1.0
			//	speed = 0.0 0.0
			//	speed = 0.1 0.1
			//	speed = 0.5 0.6
			//	speed = 1.0 1.0
			//	localPosition = 0, 0, 0
			//}

			MODEL_MULTI_PARTICLE
			{
				name = vectorvaneeddies
				modelName = WernhersOldStuff/FX/a10Eddy
				transformName = Eddy
				emission = 0.0 0.0
				emission = 1.0 0.5
				speed = 0.0 0.0
				speed = 1.0 0.4
				localPosition = 0, 0, 0
			}
			MODEL_MULTI_PARTICLE
			{
				name = steamturbineoutput
				modelName = WernhersOldStuff/FX/Steam10
				transformName = SteamExhaust
				emission = 0.0 0.0
				emission = 0.01 0.6
				emission = 1.0 1.0
				speed = 0.0 0.0
				speed = 1.0 0.4
				localPosition = 0, 0, 0
			}			
		}
	}

	DRAG_CUBE
	{
		cube = Default, 11.6,0.7249,2.418, 11.6,0.7343,1.409, 4.811,0.7181,4.589, 4.811,0.6638,4.968, 11.6,0.7351,1.409, 11.6,0.7251,2.418, -1.192E-07,0.2759,0, 2.629,4.888,2.629
	}
}