PART
{

name = SWAltairAscent
module = Part
author = TheShadow1138

// --- asset parameters ---


MODEL
{
	model=ShadowWorks/Parts/Altair/AltairAscent			
}
rescaleFactor = 0.85

// --- node definitions ---
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
//node_stack_top = 0.0, 1.275, 0.0, 0.0, 1.0, 0.0, 1
//node_stack_bottom = 0.0, -0.28, 0.0, 0.0, -1.0, 0.0, 1

node_stack_top = 0.0, 1.583, 0.0, 0.0, 1.0, 0.0, 2
node_stack_bottom = 0.0, -0.921, 0.0, 0.0, -1.0, 0.0, 3

// --- FX definitions ---

fx_exhaustFlame_blue_small = 0.0, -5.8, 0.0, 0.0, 1.0, 0.0, running
fx_exhaustLight_blue = 0.0, -5.96, 0.0, 0.0, 0.0, 1.0, running
fx_exhaustSparks_flameout = 0.0, -5.9, 0.0, 0.0, 0.0, 1.0, flameout
fx_smokeTrail_light = 0.0, -5.9, 0.0, 0.0, 1.0, 0.0, running

// --- Sound FX definition ---

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

// --- editor parameters ---
TechRequired = commandModules
entryCost = 8200
cost = 5500
category = Pods
subcategory = 0
title = Horus Ascent Module SW-CM-02
manufacturer = ShadowWorks
description = Horus Ascent Module is the ascent stage of the Horus Munar Lander.  It possesses integrated RCS thrusters, and an integrated ascent engine.  With a maximum occupancy of 4 Kerbals, it is the perfect for landing your crew on the Mun, or Minmus, and getting them back safely from the surface.

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

stageOffset = 1
childStageOffset = 1

// --- standard part parameters ---
mass = 1.2
dragModelType = default
maximum_drag = 0.20
minimum_drag = 0.15
angularDrag = 2
crashTolerance = 12
breakingForce = 1000
breakingTorque = 1000
maxTemp = 2600
thermalMassModifier = 1
bulkheadProfiles = size3
vesselType = Lander
//stagingIcon = COMMAND_POD
tags = command pod control pilot steer torque lander mun moon altair horus orion osiris shadowworks

// --- internal setup ---
CrewCapacity = 4

MODULE
{
    name = FlagDecal
    textureQuadName = FlagDecal
}


INTERNAL
{
name = SWAltairIVA
}

MODULE
{
	name = ModuleCommand
	minimumCrew = 2
}
MODULE
{
	name = ModuleSAS
	SASServiceLevel = 3
}
MODULE
{
	name = ModuleProbeControlPoint
	minimumCrew = 1
	multiHop = True
}
MODULE
{
	name = ModuleKerbNetAccess
	MinimumFoV = 5
	MaximumFoV = 90
	AnomalyDetection = 0.3
	DISPLAY_MODES
	{
		Mode = Biome,#autoLOC_438890 //#autoLOC_438890 = Biome
		Mode = Terrain,#autoLOC_438839 //#autoLOC_438839 = Terrain
	}
}

RESOURCE
{
	name = ElectricCharge
	amount = 200
	maxAmount = 200
}

MODULE
{
	name = ModuleReactionWheel
	PitchTorgue = 18
	YawTorque = 18
	RollTorque = 18
	RESOURCE
	{
		name = ElectricCharge
		rate = 1.4
	}
}

RESOURCE
{
	name = MonoPropellant
	amount = 100
	maxAmount = 100
}




	EFFECTS
	{
		running
		{
			AUDIO_MULTI_POOL
			{
				channel = Ship
				transformName = rcsThruster
				clip = sound_rocket_mini
				volume = 0.0 0.0
				volume = 0.1 0.0
				volume = 0.5 0.025
				volume = 1.0 0.1
				pitch = 0.0 0.75
				pitch = 1.0 1.5
				loop = true
			}
			MODEL_MULTI_PARTICLE
			{
				modelName = Squad/FX/Monoprop_small
				transformName = rcsThruster
				emission = 0.0 0.0
				emission = 0.1 0.0
				emission = 1.0 1.0
				speed = 0.0 0.8
				speed = 1.0 1.0
				localRotation = -90, 0, 0
			}
		}		
	}
MODULE
{
	name = ModuleRCSFX
	stagingEnabled = False
	thrusterTransformName = rcsThruster
	thrusterPower = 1.25
	resourceName = MonoPropellant
	fxOffset = 0, 0, 0.0
	resourceFlowMode = STAGE_PRIORITY_FLOW
	runningEffectName = running
	atmosphereCurve
 	{
   	 key = 0 250
  	 key = 1 210
 	}
}



MODULE
{
	name = ModuleScienceExperiment	
	
	experimentID = crewReport
	
	experimentActionName = #autoLOC_502009 //#autoLOC_502009 = Crew Report
	resetActionName = #autoLOC_502010 //#autoLOC_502010 = Discard Crew Report
	reviewActionName = #autoLOC_502200 //#autoLOC_502200 = Review Crew Report
	
	useStaging = False	
	useActionGroups = True
	hideUIwhenUnavailable = True	
	rerunnable = True
	
	xmitDataScalar = 1.0
	usageReqMaskInternal = 5
	usageReqMaskInternal = -1
}


MODULE
{
	name = ModuleScienceContainer
	
	reviewActionName = #autoLOC_502201 //#autoLOC_502201 = Review Stored Data
	storeActionName = #autoLOC_502202 //#autoLOC_502202 = Store Experiments
	evaOnlyStorage = True
	storageRange = 2.0
}


	MODULE
	{
		name = ModuleColorChanger
		shaderProperty = _EmissiveColor
		animRate = 0.8
		animState = false
		useRate = true
		toggleInEditor = true
		toggleInFlight = true
		toggleInFlight = true
		unfocusedRange = 5
		toggleName = Toggle Lights
		eventOnName = #autoLOC_6001409 	//#autoLOC_6001409 = Lights On
		eventOffName = #autoLOC_6001408 	//#autoLOC_6001408 = Lights Off
		toggleAction = True
		defaultActionGroup = Light
		redCurve
		{
			key = 0 0 0 3
			key = 1 1 0 0
		}
		greenCurve
		{
			key = 0 0 0 1
			key = 1 1 1 0
		}
		blueCurve
		{
			key = 0 0 0 0
			key = 1 0.7 1.5 0
		}
		alphaCurve
		{
			key = 0 1
		}
	}

	MODULE
	{
		name = ModuleDataTransmitter
		antennaType = INTERNAL
		packetInterval = 0.75
		packetSize = 2
		packetResourceCost = 12.0
		requiredResource = ElectricCharge
		antennaPower = 5000
		antennaRange = 2500
		packetFloor = 0.1
		packetCeiling = 5
	}
	MODULE
	{
		name = ModuleDataTransmitter
		antennaType = DIRECT
		packetInterval = 0.6
		packetSize = 2
		packetResourceCost = 3.0
		requiredResource = ElectricCharge
		DeployFxModules = 0
		antennaPower = 5000000
		antennaCombinable = True
	}

MODULE
{
	name = ModuleEngines
	engineID = SWAltairAE
	thrustVectorTransformName = thrustTransform
	exhaustDamage = True
	ignitionThreshold = 0.1
	minThrust = 0
	maxThrust = 40.75
	heatProduction = 230
	fxOffset = 0, 0, 0.5
	PROPELLANT
	{
		name = LiquidFuel
       	        ratio = 0.9
		DrawGauge = True
	}
	PROPELLANT
	{
		name = Oxidizer
		ratio = 1.1
	}
	atmosphereCurve
 	{
   	 key = 0 550
  	 key = 1 550
 	}
	
}

MODULE
{
	name = ModuleGimbal
	gimbalTransformName = thrustTransform
	gimbalRange = 3
}

RESOURCE
{
 name = LiquidFuel
 amount = 150
 maxAmount = 150
}

RESOURCE
{
 name = Oxidizer
 amount = 184
 maxAmount = 184
}

	MODULE
	{
		name = ModuleResourceConverter
		ConverterName = #autoLOC_502022 //#autoLOC_502022 = Fuel Cell
		StartActionName = #autoLOC_502023 //#autoLOC_502023 = Start Fuel Cell
		StopActionName = #autoLOC_502024 //#autoLOC_502024 = Stop Fuel Cell
		ToggleActionName = #autoLOC_502025 //#autoLOC_502025 = Toggle Fuel Cell
		FillAmount = 0.95
		AutoShutdown = false
		GeneratesHeat = false
		UseSpecialistBonus = false
 
		 
		INPUT_RESOURCE
		{
			ResourceName = LiquidFuel
			Ratio = 0.0009
			FlowMode = NO_FLOW
		}
		INPUT_RESOURCE
		{
			ResourceName = Oxidizer
			Ratio = 0.0011
			FlowMode = NO_FLOW
		}
		OUTPUT_RESOURCE
		{
			ResourceName = ElectricCharge
			Ratio = 1.0
			DumpExcess = True
		}
	}

	
	
}
