PART
{
	// --- general parameters ---
	name = CJEagle50Engine
	module = Part
	author = MajorTom, ColdJ

	// --- asset parameters ---
	MODEL
	{
		model = Space199950/Parts/Eagle50Engine
	}
	scale = 1
	rescaleFactor = 1
 fx_exhaustFlame_blue = 0.0, -3, 0.0, 0.0, 1.0, 0.0, running
	fx_exhaustLight_blue = 0.0, -3, 0.0, 0.0, 0.0, 1.0, running
	fx_smokeTrail_light = 0.0, 0.0, -3, 0.0, 1.0, 0.0, running
	fx_exhaustSparks_flameout = 0.0, -3, 0.0, 0.0, 1.0, 0.0, flameout
	sound_vent_medium = engage
	sound_rocket_hard = running
	sound_vent_soft = disengage
	sound_explosion_low = flameout

	// --- node definitions: Position X, Position Y, Position Z, Up X, Up Y, Up Z
	node_stack_bottom = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 3

	stackSymmetry = 3
	// --- editor parameters ---
	TechRequired = nuclearPropulsion
	entryCost = 7800
	cost = 1500
	category = Engine
	subcategory = 0
	title = Eagle50 engine.
	manufacturer = Moonbase Alpha Engineering and CJ Aerospace
	description = The rear engine of the Eagle50

	// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
	attachRules = 1,0,1,1,0



	// --- standard part parameters ---
	mass = 5
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 1
	crashTolerance = 200
	breakingForce = 2000
	breakingTorque = 2000
	maxTemp = 5000
	fuelCrossFeed = True
	emissiveConstant = 0.8
	bulkheadProfiles = size3,

	tags = eagle50 engine eagle cck-EG50

	// internals, resources, effects, modules


	MODULE
	{
		name = ModuleEngines
		thrustVectorTransformName = MainThrust
		exhaustDamage = True
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 2000
		heatProduction = 196
		fxOffset = 0, 0, 0
		EngineType = LiquidFuel
		exhaustDamageDistanceOffset = 0.56
		PROPELLANT
		{
			name = ElectricCharge
			ratio = 10.0
			DrawGauge = True
		}
		PROPELLANT
		{
			name = LiquidFuel
			ratio = 0.2
			DrawGauge = True
		}
		atmosphereCurve
		{
			key = 0 80000 0 0

		}
	}
	//MODULE
	{
		name = FXModuleAnimateThrottle
		animationName = HeatAnimationSRB
		responseSpeed = 0.002
		dependOnEngineState = True
		dependOnThrottle = True
	}
	RESOURCE
	{
		name = ElectricCharge
		amount = 1000
		maxAmount = 1000
	}

	MODULE
	{
		name = ModuleTestSubject
		useStaging = True
		useEvent = True
		situationMask = 60
		CONSTRAINT
		{
			// disable all but home
			type = SITUATION
			value = 0
			body = _NotHome
			prestige = Trivial
		}
		CONSTRAINT
		{
			// disable all but home
			type = SITUATION
			value = 0
			body = _NotHome
			prestige = Significant
		}
		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 = 0
			situationMask = 8
			prestige = Significant
		}
		CONSTRAINT
		{
			type = SPEED
			test = LT
			value = 900
			situationMask = 8
			prestige = Significant
		}
		CONSTRAINT
		{
			type = SPEED
			test = GT
			value = 300
			situationMask = 8
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = SPEED
			test = LT
			value = 1200
			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
		}
	}
	MODULE
	{
		name = ModuleSurfaceFX
		thrustProviderModuleIndex = 0
		fxMax = 1
		maxDistance = 80
		falloff = 2
		thrustTransformName = MainThrust
	}
	//MODULE
	{
		name = ModuleDecouple
		ejectionForce = 250
		explosiveNodeID = top
		stagingToggleEnabledEditor = true
		stagingToggleEnabledFlight = true
	}
	MODULE
	{
		name = ModuleToggleCrossfeed
		crossfeedStatus = true
		toggleEditor = true
		toggleFlight = true
	}
	RESOURCE
	{
		name = MonoPropellant
		amount = 400
		maxAmount = 400
	}
	RESOURCE
	{
	 name = EnrichedUranium
	 amount = 1
	 maxAmount = 1
	}
	RESOURCE
	{
	 name = DepletedFuel
	 amount = 0
	 maxAmount = 1
	}
	MODULE
	{
		name = ModuleGenerator
		isAlwaysActive = true
		requiresAllinputs = true
		resourceThreshold = 0.01
		//activateGUIName = Main Power On
		//shutdownGUIName = Main Power Off
		efficiency = 95
		INPUT_RESOURCE
		{
			ResourceName = EnrichedUranium
			Ratio = 0.00000012
		}
		OUTPUT_RESOURCE
		{
			ResourceName = DepletedFuel
			Ratio = 0.00000018
			DumpExcess = true
		}			
		OUTPUT_RESOURCE
		{
			name = ElectricCharge
			rate = 1000.05
		} 
	}
	MODULE
	{
		name = ModuleLight
		lightName = Spotlight
		lightMeshRendererName = Lights
		useAnimationDim = True
		lightBrightenSpeed = 2.5
		lightDimSpeed = 2.5
		resourceAmount = 0.02
		//animationName = LandingGearMediumSpotlight
		useResources = True
	}
	
}
