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

	// --- asset parameters ---
	MODEL
	{
		model = Space199950/Parts/MoonWagon
	}

	rescaleFactor = 1
	Buoyancy = 1
	// --- node definitions: Position X, Position Y, Position Z, Up X, Up Y, Up Z
	node_stack_wheel1 = 0.7224, 1.0045, 0.27012, 1.0, 0.0, 0.0, 0
	node_stack_wheel2 = 0.7224, 0.50542, 0.27012, 1.0, 0.0, 0.0, 0
	node_stack_wheel3 = 0.7224, 0.004516, 0.27012, 1.0, 0.0, 0.0, 0
	node_stack_wheel9 = 0.7224, -0.49548, 0.27012, 1.0, 0.0, 0.0, 0
	node_stack_wheel0 = 0.7224, -0.99548, 0.27012, 1.0, 0.0, 0.0, 0

	node_stack_wheel4 = -0.7224, 1.0045, 0.27012, -1.0, 0.0, 0.0, 0
	node_stack_wheel5 = -0.7224, 0.50542, 0.27012, -1.0, 0.0, 0.0, 0
	node_stack_wheel6 = -0.7224, 0.004516, 0.27012, -1.0, 0.0, 0.0, 0
	node_stack_wheel7 = -0.7224, -0.49548, 0.27012, -1.0, 0.0, 0.0, 0
	node_stack_wheel8 = -0.7224, -0.99548, 0.27012, -1.0, 0.0, 0.0, 0

	node_stack_roof = 0.0, 0.0, -0.9707, 0.0, 0.0, -1.0, 0
	node_stack_belly = 0.0, 0.0, 0.28175, 0.0, 0.0, 1.0, 1
	node_stack_tail = 0.0, -1.2521, -0.066985, 0.0, -1.0, 0.0, 0
	node_stack_nose = 0.0, 1.3596, -0.066985, 0.0, 1.0, 0.0, 0

	// --- editor parameters ---
	TechRequired  = fieldScience
	entryCost = 10000
	cost = 9500
	category = Pods
	subcategory = 0
	title = Moon Wagon50
	manufacturer = CJ Aeronautics
	description = An ATV wagon 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. 

	// 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 = 5
	bulkheadProfiles = size1, srf
	tags = rover buggy moonbuggy eagle transporter cck-EG50
	
	// internals, resources, effects, modules

   	 INTERNAL

    	{

        	name = MoonWagon50IVA
    	}
        MODULE

        {

        	name = ModuleCommand

        	minimumCrew = 1        
        
        }




	//MODULE
	{
		name = ModuleAnimateGeneric
		animationName = Moonbuggy_lights
		layer = 9
		startEventGUIName = Head Lights ON
		endEventGUIName = Head Lights OFF
		actionGUIName = Toggle Head Lights
		defaultActionGroup = Light
	}	

	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 = belly
		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 = Lights
		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
		}
	}
	MODULE
	{
		name = ModuleLight
		lightName = Spotlight
		lightMeshRendererName = Lights
		useAnimationDim = True
		lightBrightenSpeed = 2.5
		lightDimSpeed = 2.5
		resourceAmount = 0.02
		//animationName = LandingGearMediumSpotlight
		useResources = True
	}

}
