PART
{

name = SWOrionPod
module = Part
author = TheShadow1138

// --- asset parameters ---


MODEL
{
	model=ShadowWorks/Parts/Orion/OrionPod			
}
rescaleFactor = 1.0

// --- 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, 0.683, 0.0, 0.0, 1.0, 0.0, 2
node_stack_bottom = 0.0, -0.512, 0.0, 0.0, -1.0, 0.0, 3
//node_stack_chute1 = 0.469, 0.683, 0.0, 0.0, 1.0, 0.0, 1 
//node_stack_chute2 = -0.469, 0.683, 0.0, 0.0, 1.0, 0.0, 1
//node_stack_chute3 = -0.235, 0.683, -0.406, -0.5, 0.0, -0.866, 1

NODE
{
	name = mainChute1
	transform = MainChuteNode1
	size = 1
	method = FIXED_JOINT
}
NODE
{
	name = mainChute2
	transform = MainChuteNode2
	size = 1
	method = FIXED_JOINT
}
NODE
{
	name = mainChute3
	transform = MainChuteNode3
	size = 1
	method = FIXED_JOINT
}


// --- editor parameters ---
TechRequired = commandModules
entryCost = 5000
cost = 5500
category = Pods
subcategory = 0
title = Osiris Command Module SW-CM-01
manufacturer = ShadowWorks
description = Osiris Command Module (MPCV), a next-generation command pod in the 3.125m size range.  Carries a maximum of 6 crew.  Built to accommodate those who wish to send 6 kerbals to space in a rather roomy capsule.  Comes in three finishes, Shiny, White, and Black.

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

stageOffset = 1
childStageOffset = 1

// --- standard part parameters ---
mass = 3.2
dragModelType = default
maximum_drag = 0.20
minimum_drag = 0.15
angularDrag = 1
crashTolerance = 12
breakingForce = 1000
breakingTorque = 1000
maxTemp = 3000
thermalMassModifier = 1
bulkheadProfiles = size3
stackSymmetry = 1
	
CoMOffset = 0.0, -0.9, 0.0
//	CoPOffset = 0.0, 0.1, 0.0
//	CoLOffset = 0.0, -0.1, 0.0
	bodyLiftMultiplier = 0.1
CenterOfBuoyancy = 0.0, 0.45, 0.0
CenterOfDisplacement = 0.0, -0.35, 0.0
buoyancy = 1.1
vesselType = Ship
//stagingIcon = COMMAND_POD
tags = command pod control pilot steer torque orion osiris shadowworks

// --- internal setup ---
CrewCapacity = 6

MODULE
{
	name = ModulePartVariants
	baseVariant = flightMirror
	baseDisplayName = Mirror Finish

	VARIANT
	{
		name = flightMirror
		displayName = Mirror Finish

		primaryColor = #cccccc
		secondaryColor = #cccccc

		TEXTURE
		{
			_MainTex = ShadowWorks/Parts/Orion/OrionReduxColor
			_BumpMap = ShadowWorks/Parts/Orion/OrionRedux_NRM
			_EmissiveColor = ShadowWorks/Parts/Orion/OrionReduxEmissive
			_SpecMap = ShadowWorks/Parts/Orion/OrionReduxSpecMap
			_Shininess = 0.85
		}
	}
	VARIANT
	{
		name = whiteFinish
		displayName = White Pod

		primaryColor = #ffffff
		secondaryColor = #ffffff

		TEXTURE
		{
			_MainTex = ShadowWorks/Parts/Orion/OrionReduxWhiteColor
			_BumpMap = ShadowWorks/Parts/Orion/OrionReduxAlt_NRM
			_EmissiveColor = ShadowWorks/Parts/Orion/OrionReduxEmissive
			_SpecMap = ShadowWorks/Parts/Orion/OrionReduxSpecMapAlt
			_Shininess = 0.4
		}
	}
	VARIANT
	{
		name = eftBlack
		displayName = EFT-1 Black

		primaryColor = #111111
		secondaryColor = #111111

		TEXTURE
		{
			_MainTex = ShadowWorks/Parts/Orion/OrionReduxEFTColor
			_BumpMap = ShadowWorks/Parts/Orion/OrionReduxAlt_NRM
			_EmissiveColor = ShadowWorks/Parts/Orion/OrionReduxEmissive
			_SpecMap = ShadowWorks/Parts/Orion/OrionReduxSpecMapAlt
			_Shininess = 0.4
		}
	}
}

MODULE
{
    name = FlagDecal
    textureQuadName = FlagTransform1
}


INTERNAL
{
name = SWOrionInt
}

MODULE
{
	name = ModuleCommand
	minimumCrew = 0
}

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
	rcsEnabled = False
	stagingEnabled = True
	thrusterTransformName = rcsThruster
	thrusterPower = 2.5
	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
	usageReqMaskExternal = -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
	}

	
	
}
