// llp-pod-dragon-2.cfg v0.9.99.0
// Launch Pack (LLP)
// created: 07 Dec 2014
// updated: 13 Mar 2023

// this file: CC BY-ND 4.0 by Lazarus Luan and zer0Kerbal
PART
{
	name = llp-pod-dragon-2
	oldName = LazTekDragonV2
	module = Part
	author = Lazarus Luan and zer0Kerbal

	MODEL { model = LazTek/LaunchPack/Assets/llp-pod-dragon-2 }
	scale = 1.0
	rescaleFactor = 0.85
	bulkheadProfiles = size2

	vesselType = Ship
	CrewCapacity = 7
	INTERNAL { name = DragonV2Command }

	attachRules = 1,0,1,1,0
	node_stack_top = 0.0, 2.05, 0.0, 0.0, 1.0, 0.0, 1, 1
	node_stack_bottom = 0.0, -0.795, 0.0, 0.0, -1.0, 0.0, 1, 1
	node_stack_dock = 0.0, 1.8, 0.0, 0.0, 1.0, 0.0, 0, 1
	node_attach = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0, 1

	TechRequired = metaMaterials
	entryCost = 36000
	cost = 6000
	category = Pods
	subcategory = 0

	title = #LLP-pod-dragon-2-titl
	manufacturer = #LTD-Agency-titl
	description = #LLP-pod-dragon-2-desc
	tags = #autoLOC_500336 // aero aircraft armageddon bruce cmg command control ?eva fly gyro ?iva moment pilot plane react shuttle space stab steer torque willis

	mass = 4
	fuelCrossFeed = True

	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.1
	angularDrag = 2

	crashTolerance = 50
	breakingForce = 300
	breakingTorque = 300

	maxTemp = 1500
	skinMaxTemp = 2700
	emissiveConstant = 0.9

	MODULE
	{
		name = ModuleCommand
		minimumCrew = 0
		hasHibernation = True
		hibernation = False
		hibernateOnWarp = True
		hibernationMultiplier = 0.00125
		defaultControlPointDisplayName = #autoLOC_6011003 // Default
		RESOURCE
		{
			name = ElectricCharge
			rate = 0.005
		}
		CONTROLPOINT
		{
			name = reverse
			displayName = #autoLOC_6011004 // Reversed
			orientation = 0,0,180
		}
	}


	MODULE
	{
		name = ModuleSAS
		SASServiceLevel = 3
	}

	MODULE
	{
		name = ModuleReactionWheel
		actionGUIName = #autoLOC_502014 // Toggle RW
		authorityLimiter = 100
		PitchTorque = 10
		YawTorque = 10
		RollTorque = 10
		torqueResponseSpeed = 40
		RESOURCE
		{
			name = ElectricCharge
			rate = 0.25 // was 0.8
		}
	}

	MODULE
	{
		name = ModuleRCS
		thrusterTransformName = RCSthruster
		thrusterPower = 1
		resourceName = MonoPropellant
		atmosphereCurve
		{
			key = 0 290
			key = 1 200
		}
	}

	MODULE
	{
		name = ModuleAnimateGeneric
		animationName = DragonGear
		startEventGUIName = #LTD-MAG-leg-strt
		endEventGUIName = #LTD-MAG-leg-stop
		actionGUIName = #LTD-MAG-leg-actn
		eventAvailableEditor = True
		eventAvailableFlight = True
		eventAvailableEVA = True
		evaDistance = 10
		allowDeployLimit = True
		revClampDirection = False
		revClampSpeed = True
		revClampPercent = True
	}

	MODULE
	{
		name = ModuleAnimateGeneric
		animationName = CabinLights
		startEventGUIName = #LTD-MAG-lights-int-strt
		endEventGUIName = #LTD-MAG-lights-int-stop
		actionGUIName = #LTD-MAG-lights-int-actn
		eventAvailableEditor = True
		eventAvailableFlight = True
		eventAvailableEVA = True
		evaDistance = 10
		allowDeployLimit = True
		revClampDirection = False
		revClampSpeed = True
		revClampPercent = True
	}

	MODULE
	{
		name = ModuleAnimateGeneric
		animationName = OuterLights
		startEventGUIName = #LTD-MAG-lights-ext-strt
		endEventGUIName = #LTD-MAG-lights-ext-stop
		actionGUIName = #LTD-MAG-lights-ext-actn
		eventAvailableEditor = True
		eventAvailableFlight = True
		eventAvailableEVA = True
		evaDistance = 10
		allowDeployLimit = True
		revClampDirection = False
		revClampSpeed = True
		revClampPercent = True
	}

	MODULE
	{
		name = ModuleAnimateGeneric
		animationName = DockingLight
		startEventGUIName = #LTD-MAG-lights-dock-strt
		endEventGUIName = #LTD-MAG-lights-dock-stop
		actionGUIName = #LTD-MAG-lights-dock-actn
		eventAvailableEditor = True
		eventAvailableFlight = True
		eventAvailableEVA = True
		evaDistance = 10
		allowDeployLimit = True
		revClampDirection = False
		revClampSpeed = True
		revClampPercent = True
	}

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

	MODULE
	{
		name = ModuleScienceContainer	
		reviewActionName = #autoLOC_502201 // Review Stored Data
		storeActionName = #autoLOC_502202 // Store Experiments
		evaOnlyStorage = True // i.e. can nearby regular vessels also do this, or EVA only
		storageRange = 7.0
		allowRepeatedSubjects = True
		canBeTransferredToInVessel = True
		canTransferInVessel = True
		showStatus = True
	}

	MODULE
	{
		name = ModuleColorChanger
		shaderProperty = _EmissiveColor
		animRate = 0.8
		animState = false
		useRate = true
		toggleInEditor = true
		toggleInFlight = true
		toggleInFlight = true
		unfocusedRange = 5
		toggleName = #autoLOC_502011 //#autoLOC_502011 = Toggle Lights
		eventOnName = #autoLOC_502012 //#autoLOC_502012 = Lights On
		eventOffName = #autoLOC_502013 //#autoLOC_502013 = 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 = 1.0
		packetSize = 2
		packetResourceCost = 12.0
		requiredResource = ElectricCharge
		antennaPower = 5000
		optimumRange = 2500
		packetFloor = .1
		packetCeiling = 5
	}
	
	MODULE
	{
		name = ModuleInventoryPart
		InventorySlots = 4
		packedVolumeLimit = 800
	}

	MODULE
	{
		name = FlagDecal
		textureQuadName = flagSurface
	}

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

	RESOURCE
	{
		name = MonoPropellant
		amount = 1200
		maxAmount = 2000
	}

}

	// MODULE
	// {
	// 	name = ModuleHeatShield
	// 	direction = 0, -1, 0
	// 	reflective = 0.05	
	// 	ablative = AblativeShielding
	// 	{
	// 		key = 650 0 0 0
	// 		key = 1000 64 0 0
	// 		key = 3000 80 0 0
	// 	}
	// 	dissipation
	// 	{
	// 		key = 300 0 0 0
	// 		key = 500 180 0 0
	// 	}
	// }

	// RESOURCE
	// {
	// 	name = AblativeShielding
	// 	amount = 1250
	// 	maxAmount = 1250
	// }

	// MODULE
	// {
		
	// 	name = ModuleLandingLeg

	// 	animationName = DragonGear
	// 	wheelColliderName = wheelCollider
	// 	suspensionTransformName = LowerLegs
	// 	orientFootToGround = false
	// 	landingFootName = Foot
	// 	alignFootUp = false
	// 	suspensionUpperLimit = 0.85
	// 	impactTolerance = 200
	// 	suspensionSpring = 5
	// 	suspensionDamper = 2
	// }
