PART
{
	name = a2rocketengine
	module = Part
	author = TD and zer0Kerbal
	MODEL 
	{
		model = WernhersOldStuff/Parts/Aggregat2/Engine
	}
	scale = 1
	rescaleFactor = 0.64
	node_stack_top = 0.0, 0.348262, 0.0, 0.0, 1.0, 0.0, 0
	node_stack_bottom = 0.0, -0.34993, 0.0, 0.0, -1.0, 0.0, 0

	TechRequired = start
	entryCost = 0
	cost = 65
	category = Engine
	subcategory = 0
	title = #WOS-a2rocketengine-titl
	manufacturer = #WOS-Agency-titl
	description = #WOS-a2rocketengine-desc
	tags = engine

	attachRules = 1,0,1,1,0
	mass = 0.015
	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
	stackSymmetry = 3
	bulkheadProfiles = size000

	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/a4Central1
			transformName = Thrust
			emission = 0.0 0.0
			emission = 0.01 0.01
			emission = 0.5 0.2
			emission = 1.0 0.3
			speed = 0.0 0.0
			speed = 0.1 0.02
			speed = 0.5 0.14
			speed = 1.0 0.3
			localPosition = 0, 0, 0
					}
		MODEL_MULTI_PARTICLE
		{
			name = core_plume
			modelName = WernhersOldStuff/FX/a4Central2
			transformName = Thrust
			emission = 0.0 0.0
			emission = 0.01 0.01
			emission = 0.5 0.2
			emission = 1.0 0.3
			speed = 0.0 0.0
			speed = 0.1 0.02
			speed = 0.5 0.14
			speed = 1.0 0.3
			localPosition = 0, 0, 0
			}
		}
	}

	MODULE
	{
		name = ModuleEnginesFX
		engineID = running
		engineName = running
		powerEffectName = running
		thrustVectorTransformName = Thrust
		exhaustDamage = False
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 0.7
		heatProduction = 25
		fxOffset = 0, 0, 0.02
		EngineType = LiquidFuel
		PROPELLANT
		{
			name = LiquidFuel
			ratio = 0.9
			DrawGauge = True
		}
		PROPELLANT
		{
			name = Oxidizer
			ratio = 1.1
		}
		PROPELLANT
		{
			name = XenonGas
			ratio = 0.32
		}
		atmosphereCurve
		{
			key = 0 123
			key = 1 108
			key = 2 32	
		}
	}

	MODULE
	{
		name = ModuleTestSubject
		useStaging = True
		useEvent = True
		situationMask = 127
		CONSTRAINT
		{
			type = REPEATABILITY
			value = ALWAYS
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = REPEATABILITY
			value = BODYANDSITUATION
			prestige = Significant
		}
		CONSTRAINT
		{
			type = REPEATABILITY
			value = ONCEPERPART
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = GT
			value = 4000
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = LT
			value = 8000
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = GT
			value = 2000
			prestige = Significant
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = LT
			value = 4000
			prestige = Significant
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = GT
			value = 1000
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = LT
			value = 2000
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = ALTITUDE
			test = GT
			value = 0 // this just registers altitude as something to care about
			situationMask = 8
		}
		CONSTRAINT
		{
			type = ALTITUDE
			test = LT
			value = 300000
			situationMask = 16
			body = _NotSun
		}
		CONSTRAINT
		{
			type = ALTITUDE
			test = LT
			value = 600000
			situationMask = 32
			body = _NotSun
		}
		CONSTRAINT
		{
			type = SPEED
			test = GT
			value = 0
			situationMask = 8
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = SPEED
			test = LT
			value = 600
			situationMask = 8
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = SPEED
			test = GT
			value = 300
			situationMask = 8
			prestige = Significant
		}
		CONSTRAINT
		{
			type = SPEED
			test = LT
			value = 1200
			situationMask = 8
			prestige = Significant
		}
		CONSTRAINT
		{
			type = SPEED
			test = GT
			value = 600
			situationMask = 8
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = SPEED
			test = LT
			value = 2500
			situationMask = 8
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = LT
			value = 200
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = GT
			value = 100
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = LT
			value = 100
			prestige = Significant
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = GT
			value = 50
			prestige = Significant
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = LT
			value = 50
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = SPEEDENV
			test = GT
			value = 20
			prestige = Exceptional
		}
	}
}


@PART[a2rocketengine]:NEEDS[RealFuels&!RealSolarSystem]:FOR[WernhersOldStuff]
{

  @MODULE[ModuleEngines]
  {
	@maxThrust = 0.381
	!PROPELLANT[LiquidFuel]{}
	!PROPELLANT[Oxidizer]{}
		PROPELLANT
		{
			name = Ethanol75
			ratio = 1.095
			DrawGauge = True
		}
		PROPELLANT
		{
			name = LqdOxygen
			ratio = 1
			DrawGauge = True
		}

	}
	
}

@PART[a2rocketengine]:NEEDS[RealFuels&RealSolarSystem]:FOR[WernhersOldStuff]
{

	@rescaleFactor = 0.5
	@mass = 0.024
	@MODULE[ModuleEngines]
	{
	@maxThrust = 3.05
	!PROPELLANT[LiquidFuel]{}
	!PROPELLANT[Oxidizer]{}
		PROPELLANT
		{
			name = Ethanol75
			ratio = 1.095
			DrawGauge = True
		}
		PROPELLANT
		{
			name = LqdOxygen
			ratio = 1
			DrawGauge = True
		}

	}
	
}

@PART[a2rocketengine]:NEEDS[RealSolarSystem,!RealFuels]:FOR[WernhersOldStuff]
{

	@rescaleFactor = 0.5
	@mass = 0.024
	@MODULE[ModuleEngines]
	{
		@maxThrust = 3.05
	}
}