// wos-A9-cockpit-nose.cfg v1.1.1.0
// Wernher's Old Stuff (WOS)
// created: 
// updated: 11 Dec 2022

// this file: CC BY-SA 4.0 by zer0Kerbal
// ghosted

PART
{
	name = wos-A9-cockpit-nose
	// A9CockpitNose
	module = Part
	author = TD and zer0Kerbal

	MODEL
	{
		model = WernhersOldStuff/Assets/A9Cockpit
	}
	rescaleFactor = 0.64
	bulkheadProfiles = size1
	
	vesselType = Ship
	CrewCapacity = 1
	
	INTERNAL
	{
		name =  wos-iva-a9
	}

	node_stack_bottom = 0.0, -0.512, 0.0, 0.0, -1.0, 0.0  //3.088-3.6
	//node_attach = 0.0, 0.0, 5.12, 0.0, 0.0, -1.0, 1
	attachRules = 1,0,1,1,0

	TechRequired = start
	entryCost = 5800
	cost = 1600
	category = Pods
	subcategory = 0

	title = #WOS-A9-cockpit-nose-titl
	manufacturer = #WOS-Agency-titl
	description = #WOS-A9-cockpit-nose-desc
	tags = #autoLOC_500309 // aero aircraft cmg command control ?eva fly gyro ?iva moment pilot plane react space stab steer torque

	mass = 1

	dragModelType = default
	maximum_drag = 0.08
	minimum_drag = 0.08
	angularDrag = 1

	crashTolerance = 40

	maxTemp = 1100
	skinMaxTemp = 2000

	MODULE
	{
		name = ModuleCommand
		minimumCrew = 1
		hasHibernation = false
		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 = ModuleReactionWheel
		actionGUIName = #autoLOC_502014 // Toggle RW
		authorityLimiter = 100.0
		PitchTorque = 0.2
		YawTorque = 0.2
		RollTorque = 0.2
		torqueResponseSpeed = 15 // 30f
		RESOURCE
		{
			name = ElectricCharge
			rate = 0.0045 // (x+y+z)/100
		}
	}

	EFFECTS
	{
		deploy
		{
			AUDIO
			{
				channel = Ship
				clip = Squad/Sounds/elev_start
				volume = 0 0
				volume = 1 0.5
				pitch = 0.95
			}
			AUDIO_LOOP
			{
				channel = Ship
				clip = Squad/Sounds/elev_loop
				volume = 0 0
				volume = 1 0.5
				pitch = 0.75
			}
		}
		deployed
		{
			AUDIO
			{
				channel = Ship
				clip = Squad/Sounds/elev_stop
				volume = 0 0
				volume = 1 0.5
				pitch = 0.75
			}
		}
		retract
		{
			AUDIO
			{
				channel = Ship
				clip = Squad/Sounds/elev_stop
				volume = 0 0
				volume = 1 0.5
				pitch = 1.0
			}
			AUDIO_LOOP
			{
				channel = Ship
				clip = Squad/Sounds/elev_loop
				volume = 0 0
				volume = 1 0.5
				pitch = 0.75
			}
		}
		retracted
		{
			AUDIO
			{
				channel = Ship
				clip = Squad/Sounds/elev_start
				volume = 0 0
				volume = 1 0.5
				pitch = 0.95
			}
		}
	}
	
	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 // 1.5
		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 = 1.3
		canBeTransferredToInVessel = True
		canTransferInVessel = True
		showStatus = True
	}

	MODULE
	{
		name = ModuleColorChanger
		shaderProperty = _EmissiveColor
		animRate = 0.8
		animState = false
		useRate = true
		toggleInEditor = true
		unfocusedRange = 5
		toggleName = #autoLOC_502011 // Toggle Lights
		eventOnName = #autoLOC_502012 // Lights On
		eventOffName = #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
		}
	}

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

	RESOURCE
	{
		name = LiquidFuel
		amount = 7.5
		maxAmount = 7.5
	}

	MODULE
	{
		name = ModulePartVariants
		baseVariant = BnW
		// primaryColor = #ffffff
		// secondaryColor = #000000
		// baseDisplayName = Black and White Test Pattern
		// baseThemeName = BnW
		VARIANT
		{
			name = Green
			displayName = #WOS-theme-green-name
			themeName = Green
			primaryColor = #324335
			secondaryColor = #324335
			TEXTURE
			{
				mainTextureURL = WernhersOldStuff/Assets/V2-Extras_green
				_BumpMap = WernhersOldStuff/Assets/V2-Extras_NRM
				shader = KSP/Bumped	Specular	
			}
		}
		VARIANT
		{
			name = YellownBlack
			displayName = #WOS-theme-YnB-name
			themeName = YellownBlack // YnB
			primaryColor = #c4b723
			secondaryColor = #000000
			TEXTURE
			{
				mainTextureURL = WernhersOldStuff/Assets/V2-Extras_YnB
				_BumpMap = WernhersOldStuff/Assets/V2-Extras_NRM
				shader = KSP/Bumped Specular			
			}
		}
		VARIANT
		{
			name = Camo
			displayName = #WOS-theme-Camo-name // Tarnanstrich
			themeName = Camo
			primaryColor = #9f7700
			secondaryColor = #324335
			TEXTURE
			{
				mainTextureURL = WernhersOldStuff/Assets/V2-Extras_camo
				_BumpMap = WernhersOldStuff/Assets/V2-Extras_NRM
				shader = KSP/Bumped Specular			
			}
		}		
		VARIANT
		{
			name = Camp
			displayName = #WOS-theme-Camp-name // LGBTPride
			themeName = Camp
			primaryColor = #750787
			secondaryColor = #ffed00
			TEXTURE
			{
				mainTextureURL = WernhersOldStuff/Assets/V2-Extras_P
				_BumpMap = WernhersOldStuff/Assets/V2-Extras_NRM
				shader = KSP/Bumped Specular			
			}
		}		
	}
}