PART
{
//Basic
	name = O_cockpit_window_C
	module = Part
	author = ClimberFX
	//mesh = O_cockpit_window_C.mu
	MODEL
	{
		model = Omicron/Parts/O_cockpit_window_C
	}
	rescaleFactor = 1.25
	tags = egg climberfx car omicron cockpit window glass

//Node
	//attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
	attachRules = 1,0,0,0,0
	node_stack_top = 0, 0, 0, 0, -1.0, 0, 0


//Cost & RD
	TechRequired = composites
	entryCost = 0
	cost = 600

//Description
	category = Utility
	subcategory = 0
	title = Omicron Cockpit Window C
	manufacturer = ClimberFX
	description = This is the cockpit window C. Safe use to protect Kerbals from Flies and Fires. and have independent windows, but don't open if the Kerbal in your side is without helmet!
	
//Drag
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.1
	angularDrag = .5

//Physical
	mass = 0.04
	//buoyancy = 0.375
	crashTolerance = 35
	breakingForce = 300
	breakingTorque = 300
	maxTemp = 3500
	fuelCrossFeed = False
	bulkheadProfiles = window

//Modules
	MODULE
	{
		name = ModuleLiftingSurface
		useInternalDragModel = False
		deflectionLiftCoeff = 0.25
		dragAtMaxAoA = 0.1
		dragAtMinAoA = 0.05
	}
	
	MODULE:NEEDS[TextureReplacer]
	{
	    name = TRReflection
//	    shader = Reflective/Bumped Diffuse
	    colour = 0.75 0.75 0.75
	    interval = 1
	    meshes = inner_window_dir outer_window_dir inner_window_esq outer_window_esq
	}

	MODULE
	{
//		name = ModuleAnimateGeneric
//		animationName = cockpit_glass_anim_C_dir
//		startEventGUIName = Open Cockpit Right Window
//		endEventGUIName = Close Cockpit Right Window
//		actionGUIName = Toggle Cockpit Right Window
//		actionAvailable = True
		
		name = FSanimateGeneric
		animationName = cockpit_glass_anim_C_dir
		animSpeed = 1
		startEventGUIName = Open Cockpit Right Window
		endEventGUIName = Close Cockpit Right Window
		toggleActionName = Toggle Cockpit Right Window
		startDeployed = False
		availableInEVA = True
		availableInVessel = True
		EVArange = 5
		playAnimationOnEditorSpawn = False

		fullyRetractedEffect = closed_window
		fullyDeployedEffect = no_sound
		startDeployEffect = open_window
		startRetractEffect = close_window
		layer = 0
		moduleID = 0
	}

	MODULE
	{
//		name = ModuleAnimateGeneric
//		animationName = cockpit_glass_anim_C_esq
//		startEventGUIName = Open Cockpit Left Window
//		endEventGUIName = Close Cockpit Left Window
//		actionGUIName = Toggle Cockpit Left Window
//		actionAvailable = True
		
		name = FSanimateGeneric
		animationName = cockpit_glass_anim_C_esq
		animSpeed = 1
		startEventGUIName = Open Cockpit Left Window
		endEventGUIName = Close Cockpit Left Window
		toggleActionName = Toggle Cockpit Left Window
		startDeployed = False
		availableInEVA = True
		availableInVessel = True
		EVArange = 5
		playAnimationOnEditorSpawn = False

		fullyRetractedEffect = closed_window2
		fullyDeployedEffect = no_sound
		startDeployEffect = open_window2
		startRetractEffect = close_window2
		layer = 1
		moduleID = 1
	}

//Effects
	EFFECTS
	{
		open_window
		{
			AUDIO
			{
			  channel = Ship
			  clip = Omicron/Sounds/window_open
			  volume = 0.0 0.0
			  volume = 1.0 2.0
			  pitch = 0.0 0.5
			  pitch = 1.0 1.0
			  loop = false
			}	
		}
		close_window
		{
			AUDIO
			{
			  channel = Ship
			  clip = Omicron/Sounds/window_close
			  volume = 0.0 0.0
			  volume = 1.0 2.0
			  pitch = 0.0 0.5
			  pitch = 1.0 1.0
			  loop = false
			}	
		}
		closed_window
		{
			AUDIO
			{
			  channel = Ship
			  clip = Omicron/Sounds/window_closed
			  volume = 0.0 0.0
			  volume = 1.0 2.0
			  pitch = 0.0 0.5
			  pitch = 1.0 1.0
			  loop = false
			}	
		}
		open_window2
		{
			AUDIO
			{
			  channel = Ship
			  clip = Omicron/Sounds/window_open
			  volume = 0.0 0.0
			  volume = 1.0 2.0
			  pitch = 0.0 0.5
			  pitch = 1.0 1.0
			  loop = false
			}	
		}
		close_window2
		{
			AUDIO
			{
			  channel = Ship
			  clip = Omicron/Sounds/window_close
			  volume = 0.0 0.0
			  volume = 1.0 2.0
			  pitch = 0.0 0.5
			  pitch = 1.0 1.0
			  loop = false
			}	
		}
		closed_window2
		{
			AUDIO
			{
			  channel = Ship
			  clip = Omicron/Sounds/window_closed
			  volume = 0.0 0.0
			  volume = 1.0 2.0
			  pitch = 0.0 0.5
			  pitch = 1.0 1.0
			  loop = false
			}	
		}
		no_sound
		{
			AUDIO
			{
			  channel = Ship
			  clip = Omicron/Sounds/empty
			  volume = 0.0 0.0
			  volume = 1.0 1.0
			  pitch = 0.0 0.5
			  pitch = 1.0 1.0
			  loop = false
			}	
		}
	}
}
