PART
{
// Kerbal Space Program - Part Config
// Shuttle Engine
// 

// --- general parameters ---
name = km_ssme_rs25s
module = Part
author = dtobi

// --- asset parameters ---
mesh = model.mu
scale = 1.0



// --- FX definitions ---

//fx_exhaustFlame_yellow_small = 0.0, -10.0, 0.0, 0.0, 1.0, 0.0, running
//fx_exhaustFlame_blue = 0.0, -4.0, 0.0, 0.0, 1.0, 0.0, running
//fx_exhaustLight_yellow = 0.0, 4.0, 0.0, 0.0, 0.0, 1.0, running
//fx_smokeTrail_light = 0.0, 4.0, 0.0, 0.0, 1.0, 0.0, running
//fx_exhaustSparks_flameout = 0.0, 4.0, 0.0, 0.0, 1.0, 0.0, flameout

// --- Sound FX definition ---

sound_vent_medium = engage
sound_rocket_hard = running
sound_vent_soft = disengage
sound_explosion_low = flameout

// --- editor parameters ---
TechRequired = veryHeavyRocketry
entryCost = 24000
cost = 2320
category = Propulsion
subcategory = 0
title = RX-25s Shuttle Main Engine
manufacturer = Klockheed Martian
description = Looks like the real thang! 

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

// --- standard part parameters ---
mass = 1.6
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 7
maxTemp = 3600

stagingIcon = LIQUID_ENGINE
 
NODE
{
    name = top
    transform = node_top
} 
 
//MODULE
//{
//	name = ModuleEngines
//	thrustVectorTransformName = exhaust
//	exhaustDamage = True
//	ignitionThreshold = 0.1
//	minThrust = 0
//	maxThrust = 400
//	heatProduction = 570
//	fxOffset = 0, 0, 1
//	PROPELLANT
//	{
//		name = LiquidFuel
//      	ratio = 0.9
//		DrawGauge = True
//	}
//	PROPELLANT
//	{
//		name = Oxidizer
//		ratio = 1.1
//	}
//	atmosphereCurve
// 	{
//   	 key = 0 380
//  	 key = 1 330
// 	}
//	
//}

// START FX

  EFFECTS
    {
        powerflame
        {
            MODEL_MULTI_PARTICLE
            {
                name = flamethrust
                modelName = Klockheed_Martian_SSE/FX/engine/ssmeflame
                transformName = exhaust
                emission = 0.0 0.1
                emission = 0.5 0.25
                emission = 0.75 0.75
                emission = 1.0 1.0
                speed = 0.0 0.40
                speed = 1.0 1.0
				size  = 0.0 0.3
				size  = 1.0 0.7
				localOffset = 0, 0, -3
            }
            AUDIO
            {
                channel = Ship
                clip = sound_rocket_hard
                volume = 0.0 0.0
                volume = 1.0 1.0
                pitch = 0.0 0.2
                pitch = 1.0 1.0
                loop = true
            }
        }
        powersmoke
        {
            PREFAB_PARTICLE
            {
                name = flamethrust2
                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
            }
        }
        engage
        {
            AUDIO
            {
                channel = Ship
                clip = sound_vent_medium
                volume = 1.0
                pitch = 2.0
                loop = false
            }
        }
        disengage
        {
            AUDIO
            {
                channel = Ship
                clip = sound_vent_soft
                volume = 1.0
                pitch = 2.0
                loop = false
            }
        }
        flameout
        {
            AUDIO
            {
                channel = Ship
                clip = sound_explosion_low
                volume = 1.0
                pitch = 2.0
                loop = false
            }
        }
    }
    MODULE
    {
	name = ModuleEnginesFX
	//engineID = rocketengine
	runningEffectName = powersmoke
	directThrottleEffectName = powerflame
	thrustVectorTransformName = exhaust
	exhaustDamage = True
	ignitionThreshold = 0.1
	minThrust = 0
	maxThrust = 400
	heatProduction = 570
	fxOffset = 0, 0, 1
	PROPELLANT
	{
		name = LiquidFuel
      	ratio = 0.9
		DrawGauge = True
	}
	PROPELLANT
	{
		name = Oxidizer
		ratio = 1.1
	}
	atmosphereCurve
 	{
   	 key = 0 380
  	 key = 1 330
 	}
	
}
	

// END FX


MODULE
{
    name = KM_Gimbal
	gimbalTransformName = gimbal
	//yawGimbalRange = 11
	yawGimbalRange = 0
	pitchGimbalRange = 11
	enableRoll = true
}

MODULE
{
    name = KM_PreLaunchEffect
	effectName = PreLaunchEffectEngine
}
	
	MODULE
{
	name = ModuleAlternator	
	RESOURCE
	{
		name = ElectricCharge
		rate = 1.0
	}
}
MODULE
{
	name = ModuleAnimateHeat
	ThermalAnim = ssme
}

RESOURCE
{
	name = ElectricCharge
	amount = 0
	maxAmount = 0
	isTweakable = false
    hideFlow = true
}
}
