PART
{
	// --- general parameters ---
	name = CJEagle50Buggy
	module = Part
	author = MajorTom, ColdJ

	// --- asset parameters ---
	MODEL
	{
		model = Space199950/Buggy/NewMoonbuggy6
	}

	rescaleFactor = 1
	Buoyancy = 1
	// --- node definitions: Position X, Position Y, Position Z, Up X, Up Y, Up Z
	node_stack_wheel1 = 0.55567, 0.58088, 0.27109, 1.0, 0.0, 0.0, 0
	node_stack_wheel2 = 0.55567, 0.0, 0.27109, 1.0, 0.0, 0.0, 0
	node_stack_wheel3 = 0.55567, -0.58088, 0.27109, 1.0, 0.0, 0.0, 0
	node_stack_wheel4 = -0.55567, 0.58088, 0.27109, -1.0, 0.0, 0.0, 0
	node_stack_wheel5 = -0.55567, 0.0, 0.27109, -1.0, 0.0, 0.0, 0
	node_stack_wheel6 = -0.55567, -0.58088, 0.27109, -1.0, 0.0, 0.0, 0
	node_stack_back = 0.0, -0.49225, -0.18187, 0.0, 0.0, -1.0, 0
	node_stack_front = 0.0, 0.0, 0.28145, 0.0, 0.0, 1.0, 1
	node_stack_tail = 0.0, 1.02225, 0.0, 0.0, 1.0, 0.0, 0
	node_stack_nose = 0.0, -0.82935, 0.0, 0.0, -1.0, 0.0, 0

	// --- editor parameters ---
	TechRequired  = fieldScience
	entryCost = 10000
	cost = 9500
	category = Pods
	subcategory = 0
	title = Moonbuggy50
	manufacturer = Alpha Engineering and CJ Aeronautics
	description = A compact ATV with mounting points for winches, tow bars, docking ports or even other ATVs. A built in impeller can push you through the water. Just as happy on the Mun but you may want to attach a monopropellant tank and RCS to control your flips and landings. For fun turn on the impeller get up to speed on land and then activate your Kerbal's parachute for some powered paragliding. Has a docking point on the underside that will mate to a stock docking port jnr.

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

	// --- standard part parameters ---
	mass = 0.50
	dragModelType = default
	maximum_drag = 0.20
	minimum_drag = 0.15
	angularDrag = 2
	crashTolerance = 450
	breakingForce = 2072
	breakingTorque = 2072
	maxTemp = 2000
	vesselType = Rover
	CoMOffset = 0.0, 0.0, 0.55
	CrewCapacity = 2
	bulkheadProfiles = size1, srf
	tags = rover buggy moonbuggy eagle transporter cck-EG50
	
	// internals, resources, effects, modules
        MODULE

        {

        	name = ModuleCommand

        	minimumCrew = 0        
        
        }




	MODULE
	{
		name = ModuleAnimateGeneric
		animationName = Moonbuggy_lights
		layer = 9
		startEventGUIName = Head Lights ON
		endEventGUIName = Head Lights OFF
		actionGUIName = Toggle Head Lights
		defaultActionGroup = Light
	}	
	MODULE
	{
		name = KerbalSeat
		seatPivotName = seatPivot1
		ejectDirection = -1.5, 0, 0
	}
	MODULE
	{
		name = KerbalSeat
		seatPivotName = seatPivot2
		ejectDirection = -1.5, 0, 0
	}
	RESOURCE
	{
		name = ElectricCharge
		amount = 2000
		maxAmount = 2000
	}
	RESOURCE
	{
		name = IntakeAir
		amount = 10
		maxAmount = 10
	}
	MODULE
	{
		name = ModuleReactionWheel
		
		PitchTorque = 7
		YawTorque = 5
		RollTorque = 5
		
		RESOURCE
		{
			name = ElectricCharge
			rate = 0.24
		}
	}	
	MODULE
	{
		name = ModuleScienceExperiment	
		
		experimentID = crewReport
		
		experimentActionName = Crew Report
		resetActionName = Discard Crew Report
		reviewActionName = Review Report
		
		useStaging = False	
		useActionGroups = True
		hideUIwhenUnavailable = True	
		rerunnable = True
		
		xmitDataScalar = 1.0
		
		usageReqMaskInternal = 5
		usageReqMaskExternal = -1
	}
	MODULE
	{
		name = ModuleScienceContainer
		
		reviewActionName = Review Stored Data
		storeActionName = Store Experiments
		evaOnlyStorage = True
		storageRange = 1.3
	}

	MODULE
	{
		name = ModuleGPS
	}
	MODULE
	{
		name = ModuleDockingNode
		referenceAttachNode = front
		nodeTransformName = dockingNode
    		//controlTransformName = controlNode
		aquireForce = 20.5
		aquireRange = 15
		captureRange = 10
		stagingEnabled = False
		ejectionForce = 10
		nodeType = size0, size1
	}
	MODULE
	{
		name = ModuleGenerator
		isAlwaysActive = true
		OUTPUT_RESOURCE
		{
			name = ElectricCharge
			rate = 0.3
		}
	}
	MODULE
	{
		name = ModuleGenerator
		isAlwaysActive = true
		OUTPUT_RESOURCE
		{
			name = IntakeAir
			rate = 5
		}
	}
	MODULE
	{
		name = ModuleEnginesFX
		engineID = Cruise
		thrustVectorTransformName = MainThrust
		exhaustDamage = False
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 5
		heatProduction = 0.01
		useEngineResponseTime = True
		engineAccelerationSpeed = 0.12
		engineDecelerationSpeed = 0.5
		fxOffset = 0, 0, 0.74
		spoolEffectName = running_turbine
		engineSpoolIdle = 0.05
		engineSpoolTime = 2.0
		EngineType = Turbine
		exhaustDamageMultiplier = 1
		clampPropReceived = True
		PROPELLANT
		{
			name = IntakeAir
			ignoreForIsp = True
			ratio = 22
		}
		PROPELLANT
		{
			name = ElectricCharge
			resourceFlowMode = STAGE_STACK_FLOW_BALANCE
			ratio = 1
			DrawGauge = True
		}
		atmosphereCurve
		{
			key = 0 6400 0 0
		}
		// Jet params
		atmChangeFlow = True
		useVelCurve = True
		useAtmCurve = True
		machLimit = 0.75
		machHeatMult = 3.5
		velCurve
		{
			key = 0 1 0 0
			key = 0.44 0.897 0 0
			key = 1 1 0.1988732 0.1988732
			key = 1.3 1.03 0 0
			key = 2 0.68 -1.065708 -1.065708
			key = 2.4 0 0 0
		}
		atmCurve
		{
			key = 0 0 0 0.7448742
			key = 0.072 0.13 2.075459 2.075459
			key = 0.16 0.28 1.464173 1.464173
			key = 0.42 0.578 0.93687 0.93687
			key = 1 1 0.5529748 0
		}
	}
	MODULE
	{
		name = ModuleAlternator
		RESOURCE
		{
			name = ElectricCharge
			rate = 1
		}
	}
	EFFECTS
	{		

		running_turbine
		{
			AUDIO
			{
				channel = Ship
				clip = sound_jet_deep
				volume = 0.0 0.0
				volume = 0.05 0.35
				volume = 1.0 0.5
				pitch = 0.0 0.6
				pitch = 0.05 0.8
				pitch = 1.0 1.5
				loop = true
			}
		}

	}

	MODULE
	{
		name = ModuleColorChanger
		shaderProperty = _EmissiveColor
		animRate = 0.8
		animState = false
		useRate = true
		toggleInEditor = true
		toggleInFlight = true
		toggleInFlight = true
		unfocusedRange = 5
		toggleName = #autoLOC_502011 //#autoLOC_502011 = Toggle Lights
		eventOnName = #autoLOC_6001409 	//#autoLOC_6001409 = Lights On
		eventOffName = #autoLOC_6001408 	//#autoLOC_6001408 = Lights Off
		toggleAction = True
		defaultActionGroup = Brake
		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
		}
	}

}
