
PART
{
// --- general parameters ---
name = SWDCSS4mFairingBase
module = Part
author = TheShadow1138

// --- asset parameters ---
MODEL
{
  model = ShadowWorks/Parts/AdaptersAndFairings/DCSS4mFairingBase
}
rescaleFactor = 1.0


// --- node definitions ---
node_stack_top = 0.0, 0.656, 0.0, 0.0, 1.0, 0.0, 2
node_stack_bottom = 0.0, -0.30, 0.0, 0.0, -1.0, 0.0, 3


// --- FX definitions ---

fx_gasBurst_white = 0.0, 0.3, 0.0, 0.0, 1.0, 0.0, deploy


// --- Sound FX definition ---

sound_vent_large = deploy

// --- editor parameters ---
TechRequired = heavierRocketry
entryCost = 9200
cost = 850
category = Payload
subcategory = 0
title = BCSS 2.42m Fairing Base SW-FB-01A
manufacturer = ShadowWorks
description = A 2.42m fairing base for the 2.42m Bastet Cryogenic Second Stage to protect your Bastet IV launched payloads.  This fairing base has an integrated staging-disabled decoupler allowing you to directly attach payloads to the fairing base without the need for an extra decoupler.

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

// --- standard part parameters ---
mass = 0.475
thermalMassModifier = 4.0 // from stock fairings
skinMassPerArea = 4.0 // from stock fairings
skinInternalConductionMult = 0.25 // from stock fairings
emissiveConstant = 0.95 // from stock fairings
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 0.2
crashTolerance = 9
breakingForce = 1200
breakingTorque = 1200
maxTemp = 2600
bulkheadProfiles = size3 // from stock 3.75m fairings
stageOffset = 1
childStageOffset = 1
tags = aero cap cargo cone contain fairing payload protect delta iv bastet dcss shadowworks

	MODULE
	{
		name = ModuleProceduralFairing
		
		nSides = 64
		nArcs = 2
		TextureURL = Squad/Parts/Aero/fairings/fairings_diff
		CapTextureURL = Sqpad/Parts/Aero/fairings/fairingsCap
		
		panelGrouping = 3
		pivot = 0,0.3,0
		axis = 0,1,0
		
		baseRadius = 1.21
		maxRadius = 6
		capRadius = 0.375
		snapThreshold = 0.25
		
		xSectionHeightMin = 0.3
		xSectionHeightMax = 4
		
		edgeSlide = 0.15
		edgeWarp = 0.02
		noseTip = 0.5
		
		UnitAreaMass = 0.06
		UnitAreaCost = 18
	}
	MODULE
	{
		name = ModuleCargoBay
		DeployModuleIndex = 0
		closedPosition = 0
		lookupRadius = 2.5
		partTypeName = Fairing
		
		// nodeOuterAftID = bottom
		// nodeInnerAftID = top
	}

	MODULE
	{
		name = ModuleDecouple
		explosiveNodeID = top
		isOmniDecoupler = false
		ejectionForce = 10
		stagingEnabled = false
	}

	MODULE
	{
		name = ModuleTestSubject
		useStaging = True
		useEvent = False
		situationMask = 127
		CONSTRAINT
		{
			type = ATMOSPHERE
			value = True
		}
		CONSTRAINT
		{
			type = REPEATABILITY
			value = ALWAYS
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = REPEATABILITY
			value = BODYANDSITUATION
			prestige = Significant
		}
		CONSTRAINT
		{
			type = REPEATABILITY
			value = ONCEPERPART
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = ALTITUDE
			test = GT
			value = 0 // this just registers altitude as something to care about
			situationMask = 8
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = GT
			value = 4000
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = LT
			value = 8000
			prestige = Trivial
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = GT
			value = 2000
			prestige = Significant
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = LT
			value = 4000
			prestige = Significant
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = GT
			value = 1000
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = ALTITUDEENV
			test = LT
			value = 2000
			prestige = Exceptional
		}
		CONSTRAINT
		{
			type = SPEED
			test = LT
			value = 2000
			situationMask = 8
		}
		CONSTRAINT
		{
			type = ALTITUDE
			test = LT
			value = 300000
			situationMask = 16
			body = _NotSun
		}
		CONSTRAINT
		{
			type = ALTITUDE
			test = LT
			value = 600000
			situationMask = 32
			body = _NotSun
		}
	}

	
}





