// llp-trunk-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-trunk-dragon-2
	oldName = LazTekDragonV2Trunk
	module = Part
	author = Lazarus Luan and zer0Kerbal

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

	attachRules = 1,0,1,1,0
	node_stack_top = 0.0, 1.37, 0.0, 0.0, 1.0, 0.0, 2, 1
	node_stack_bottom = 0.0, -1.29, 0.0, 0.0, -1.0, 0, 2, 1
	node_stack_dock = 0.0, 0.77, 0.0, 0.0, 1.0, 0.0, 2, 1
	node_attach = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0, 1

	sound_decoupler_fire = decouple
	fx_gasBurst_white = 0.0, 0.217, 0.0, 0.0, 1.0, 0.0, decouple

	TechRequired = specializedElectrics
	entryCost = 21000
	cost = 2000
	category = FuelTank
	subcategory = 0

	title = #LLP-trunk-dragon-2-titl
	manufacturer = #LTD-Agency-titl
	description = #LLP-trunk-dragon-2-desc
	tags = #autoLOC_500609 // fueltank mono monopropellant propellant

	mass = 1.0
	fuelCrossFeed = False

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

	crashTolerance = 12

	maxTemp = 2000
	thermalMassModifier = 2.0
	emissiveConstant = 0.95
	heatConductivity = 0.04 // 1/3 the default

	stageOffset = 1
	childStageOffset = 1
	stagingIcon = FUEL_TANK //  MYSTERY_PART DECOUPLER_HOR

	MODULE
	{
		name = ModuleDecouple
		ejectionForce = 100
		ejectionForcePercent = 100
		explosiveNodeID = top
		fxGroupName = decouple
		staged = True
		stagingEnabled = True
		menuName = #autoLOC_6001443 // Decouple
		stagingEnableText = #autoLOC_240328 // Decoupler: Enable Staging
		stagingDisableText = #autoLOC_240329 // Decoupler: Disable Staging
		stagingToggleEnabledEditor = True
		stagingToggleEnabledFlight = True
	}

	MODULE
	{
		name = ModuleDeployableSolarPanel
		animationName = Take 001
		// raycastTransformName = suncatcher
		resourceName = ElectricCharge
		chargeRate = 30
		impactResistance = 2
		impactResistanceRetracted = 6
		extendActionName = #autoLOC_6001805 //#autoLOC_6001805 = Extend <<1>>
		retractActionName = #autoLOC_6001806 //#autoLOC_6001806 = Retract <<1>>
		extendpanelsActionName = #autoLOC_6001807 //#autoLOC_6001807 = Toggle <<1>>
		// powerCurve
	 	// {
		// 	key = 206000000000 0 0 0
		// 	key = 13599840256 1 0 0
		// 	key = 68773560320 0.5 0 0
		// 	key = 0 10 0 0
	 	// }
	}

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

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

}


	// MODULE
	// {
	// 	name = ModuleDeployableSolarPanel
	// 	sunTracking = false
	// 	raycastTransformName = suncatcher
	// 	pivotName = suncatcher
	// 	isBreakable = false
	// 	resourceName = ElectricCharge
	// 	chargeRate = 30
	// 	powerCurve
	// 	{
	// 		key = 206000000000 0 0 0
	// 		key = 13599840256 1 0 0
	// 		key = 68773560320 0.5 0 0
	// 		key = 0 10 0 0
	// 	}
	// }