PART
{
	name = CJBubbleFly
	module = Part
	author = ColdJ
	MODEL
	{
		model = BubbleCJ/Bub
	}
	
	
	scale = 1
	rescaleFactor = 1
	node_attach = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 1
	TechRequired = aerospaceTech
	entryCost = 7600
	cost = 3800
	category = Pods
	subcategory = 0
	title = Bubble Patrol
	manufacturer = Oblivion
	description = Patrol Craft
	attachRules = 1,1,1,1,1
	mass = 0.80
	dragModelType = default
	maximum_drag = 0.1
	minimum_drag = 0.1
	angularDrag = 2.0
	crashTolerance = 500
	maxTemp = 1400
	skinMaxTemp = 2400
	vesselType = Ship
	CrewCapacity = 2
	bulkheadProfiles = srf
	tags = bubble pod oblivion

	INTERNAL
	{
		name = BubbleCJ_IVA
	}
	MODULE
	{
		name = ModuleCommand
		minimumCrew = 1
	}
	RESOURCE
	{
		name = ElectricCharge
		amount = 150
		maxAmount = 150
	}
	MODULE
	{
		name = ModuleReactionWheel
		PitchTorque = 6
		YawTorque = 2
		RollTorque = 3
		RESOURCE
		{
			name = ElectricCharge
			rate = 0.45
		}
	}
	RESOURCE
	{
	 name = EnrichedUranium
	 amount = 1
	 maxAmount = 1
	}
	RESOURCE
	{
	 name = DepletedFuel
	 amount = 0
	 maxAmount = 1
	}
	MODULE
	{
		name = ModuleGenerator
		isAlwaysActive = true
		requiresAllinputs = true
		resourceThreshold = 0.01
		//activateGUIName = Main Power On
		//shutdownGUIName = Main Power Off
		efficiency = 95
		INPUT_RESOURCE
		{
			ResourceName = EnrichedUranium
			Ratio = 0.00000012
		}
		OUTPUT_RESOURCE
		{
			ResourceName = DepletedFuel
			Ratio = 0.00000018
			DumpExcess = true
		}			
		OUTPUT_RESOURCE
		{
			name = ElectricCharge
			rate = 1000.05
		} 
	}


	MODULE
	{
		name = ModuleScienceExperiment
		experimentID = crewReport 
		experimentActionName = #autoLOC_502009 //#autoLOC_502009 = Crew Report
		resetActionName = #autoLOC_502010 //#autoLOC_502010 = Discard Crew Report
		reviewActionName = #autoLOC_502200 //#autoLOC_502200 = Review Report
		useStaging = False
		useActionGroups = True
		hideUIwhenUnavailable = True
		rerunnable = True
		xmitDataScalar = 1.0
		usageReqMaskInternal = 5
		usageReqMaskExternal = -1
	}
	MODULE
	{
		name = ModuleScienceContainer
		reviewActionName = #autoLOC_502201 //#autoLOC_502201 = Review Stored Data
		storeActionName = #autoLOC_502202 //#autoLOC_502202 = Store Experiments
		evaOnlyStorage = True
		storageRange = 2.0
	}

	MODULE
	{
		name = ModuleConductionMultiplier
		modifiedConductionFactor = 0.003
		convectionFluxThreshold = 3000
	}

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

	
	MODULE
	{
		name = ModuleLiftingSurface
		useInternalDragModel = True
		deflectionLiftCoeff = 2.0
		dragAtMaxAoA = 3.0
		dragAtMinAoA = 0.0
	}
	MODULE
	{
		name = ModuleInventoryPart
		InventorySlots = 1
		packedVolumeLimit = 70
	}




	MODULE
	{
		name = ModuleGenerator
		isAlwaysActive = true
		requiresAllinputs = false
		resourceThreshold = 0.01
		efficiency = 95
			
			OUTPUT_RESOURCE
			{
			   name = MonoPropellant
			   rate = 1.0
			}    
	}
	MODULE
	{
		name = ModuleGimbal
		gimbalTransformName = MainThrust
		gimbalRange = 2
	}
	MODULE
	{
		name = ModuleEnginesFX
		engineID = Ion
		thrustVectorTransformName = MainThrust
		exhaustDamage = False
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 60
		heatProduction = 0
		powerEffectName = IonPlume
		EngineType = Electric
		PROPELLANT
		{
			name = ElectricCharge
			ratio = 0.1
			DrawGauge = True
			minResToLeave = 1.0
		}

		atmosphereCurve
		{
			key = 0 9000 0 0 
		}
		// Jet params
		atmChangeFlow = True
		useVelCurve = True
		useAtmCurve = True
		flowMultCap = 1.1
		machLimit = 1.75
		machHeatMult = 20.0
		velCurve
		{
			key = 0 1 0 0
			key = 0.35 0.932 0 0
			key = 1 1.13 0.4510796 0.4510796
			key = 1.75 1.5 0 0
			key = 2 1.38 -1.126258 -1.126258
			key = 2.5 0 0 0
		}
		atmCurve
		{
			key = 0 0 1.069445 0.7244952
			key = 0.072 0.08 1.472049 1.472049
			key = 0.17 0.21 1.227685 1.227685
			key = 0.34 0.39 1.01426 1.01426
			key = 0.44 1 0.969697 0.969697
			key = 1 0.8 0.969697 0.969697
		}
	}

	EFFECTS
	{		
		IonPlume
		{
			AUDIO
			{
				channel = Ship
				clip = BubbleCJ/Sounds/TieLoud2
				volume = 0.0 0.0
				volume = 0.05 0.20
				volume = 1.0 1.0
				pitch = 0.2 0.4
				pitch = 1.0 0.6
				loop = true
			}
	
		}

	}
	MODULE
	{
		name = FXModuleAnimateThrottle
		animationName = colorAnimation
		dependOnEngineState = True
		responseSpeed = 0.5
		engineName = Ion
		dependOnThrottle = True
		layer = 2
	}

	MODULE
	{
		name = ModuleAnimateGenericEffects 
		animationName = Gear
		startEventGUIName = Gear Up 
		endEventGUIName = Gear Down 
		actionGUIName = Gear
		defaultActionGroup = Gear
		layer = 1
		deployEffectName = deploy

		postDeployEffectName = deployed
 
		postDeployEffectLength = 5.0
		retractEffectName = retract

		postRetractEffectName = retracted
 
		postRetractEffectLength = 5.0

		animSpeed = 1

	
	}

	EFFECTS
	{
		deploy
		{
			AUDIO
			{
				channel = Ship
				clip = BubbleCJ/Sounds/Gear
				volume = 0 0
				volume = 1 0.7
				pitch = 0.75
			}
			AUDIO_LOOP
			{
				channel = Ship
				clip = BubbleCJ/Sounds/Gear
				volume = 0 0
				volume = 1 0.7
				pitch = 0.55
			}
		}
		deployed
		{
			AUDIO
			{
				channel = Ship
				clip = BubbleCJ/Sounds/Lock
				volume = 0 0
				volume = 1 0.7
				pitch = 0.50
			}
		}
		retract
		{
			AUDIO
			{
				channel = Ship
				clip = BubbleCJ/Sounds/Gear
				volume = 0 0
				volume = 1 0.7
				pitch = 0.60
			}
			AUDIO_LOOP
			{
				channel = Ship
				clip = BubbleCJ/Sounds/Gear
				volume = 0 0
				volume = 1 0.7
				pitch = 0.50
			}
		}
		retracted
		{
			AUDIO
			{
				channel = Ship
				clip = BubbleCJ/Sounds/Lock
				volume = 0 0
				volume = 1 0.7
				pitch = 0.75
			}
		}
	}

	MODULE
	{
		name = ModuleAnimateGenericEffects
		animationName = Rotate
		layer = 9
		startEventGUIName = Hover On
		endEventGUIName = Hover OFF
		actionGUIName = Toggle Hover
		deployEffectName = deploy

		postDeployEffectName = deployed
 
		postDeployEffectLength = 5.0
		retractEffectName = retract

		postRetractEffectName = retracted
 
		postRetractEffectLength = 5.0

		animSpeed = 1


	}
	MODULE
	{
		name = ModuleAnimateGeneric
		animationName = Doors
		layer = 8
		startEventGUIName = Doors Open
		endEventGUIName = Doors Close
		actionGUIName = Toggle Doors
	}

	MODULE
	{
		name = FXModuleAnimateThrottle
		animationName = Rotor
		responseSpeed = 0.05
		layer = 3
		dependOnEngineState = True
		dependOnThrottle = True
		weightOnOperational = True
		affectTime = false
		baseAnimSpeed = 200.0		// base + (throttle setting * multiplier)
		baseAnimSpeedMult = 800
		playInEditor = False
		animWrapMode = 2  	//	Default = 0	Once = 1		Clamp = 1	Loop = 2		PingPong = 4	ClampForever = 8
	}
	MODULE
	{
		name = ModuleLight
		lightName = spotlight
		lightMeshRendererName = Lamp
		useAnimationDim = true
		lightBrightenSpeed = 2.5
		lightDimSpeed = 2.5
		resourceAmount = 0.005
		animationName = LightAnimation
		useResources = true
		canBlink = true
		blinkhMin = 0.2
		blinkMax = 2
		disableColorPicker = false
	}
}
