// llp-pod-cargo.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-cargo
	oldName = LazTekDragonCargo
	module = Part
	author = Lazarus Luan and zer0Kerbal

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

	vesselType = Probe
	CrewCapacity = 0

	attachRules = 1,0,1,1,0
	node_stack_top = 0.0, 1.555, 0.0, 0.0, 1.0, 0.0, 2, 1
	node_stack_bottom = 0.0, -0.6, 0.0, 0.0, -1.0, 0.0, 2, 1
	node_stack_cargo = 0.0, -0.45, 0.0, 0.0, 1.0, 0.0, 1, 1
	node_stack_dock = 0.0, 1.68, 0.0, 0.0, 1.0, 0.0, 0, 1, 1
	node_attach = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0, 1

	TechRequired = metaMaterials
	entryCost = 34000
	cost = 2500
	category = Pods
	subcategory = 0

	title = #LLP-dragon-cargo-titl
	manufacturer = #LTD-Agency-titl
	description = #LLP-dragon-cargo-desc
	tags = #autoLOC_500330 // aero aircraft cmg command control fly gyro kerbnet moment plane probe react sas satellite space stab steer torque

	mass = 2

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

	crashTolerance = 20
	breakingForce = 200
	breakingTorque = 200

	maxTemp = 2500

	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 = ModuleKerbNetAccess
		EnhancedSituationMask = 24
		EnhancedMinimumFoV = 45
		EnhancedMaximumFoV = 135
		MinimumFoV = 10
		MaximumFoV = 20
		AnomalyDetection = 0.48
		DISPLAY_MODES
		{
			Mode = Biome,#autoLOC_438890 //#autoLOC_438890 = Biome
			Mode = Terrain,#autoLOC_438839 //#autoLOC_438839 = Terrain
		}
	}

	MODULE
	{
		name = ModuleDataTransmitter
		antennaType = INTERNAL
		packetInterval = 1.0
		packetSize = 2
		packetResourceCost = 12.0
		requiredResource = ElectricCharge
		antennaPower = 5000
		optimumRange = 2500
		packetFloor = .1
		packetCeiling = 5
	}

	EFFECTS
	{
		running
		{
			AUDIO_MULTI_POOL
			{
				channel = Ship
				transformName = RCSthruster
				clip = sound_rocket_mini
				volume = 0.0 0.0
				volume = 0.02 0.1
				volume = 0.5 0.1
				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
		resourceName = MonoPropellant
		resourceFlowMode = STAGE_PRIORITY_FLOW
		runningEffectName = running
		atmosphereCurve
		{
			key = 0 260
			key = 1 160
			key = 4 0.001
		}
	}

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

	MODULE
	{
		name = ModuleAnimateGeneric
		animationName = BlueLights
		startEventGUIName = #LTD-MAG-lights-blue-strt
		endEventGUIName = #LTD-MAG-lights-blue-stop
		actionGUIName = #LTD-MAG-lights-blue-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 // Docking Lights On
		endEventGUIName = #LTD-MAG-lights-dock-stop // Docking Lights Off
		actionGUIName = #LTD-MAG-lights-dock-actn // Toggle docking lights
		eventAvailableEditor = True
		eventAvailableFlight = True
		eventAvailableEVA = True
		evaDistance = 10
		allowDeployLimit = True
		revClampDirection = False
		revClampSpeed = True
		revClampPercent = True
	}

	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
	}

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

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

	MODULE
	{
		name = FlagDecal
		textureQuadName = flagSurface
	}

}
	// 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 = 950
	// 	maxAmount = 950
	// }