Serenity/Parts/Robotics/piston 01.cfg

From Kerbal Space Program Wiki
Jump to: navigation, search
This is the configuration file for 3P6 Hydraulic Cylinder.
PART
{
	name = piston_01
	module = Part
	author = RoverDude
	MODEL
	{
		model = SquadExpansion/Serenity/Parts/Robotics/Assets/piston_01
	}
	rescaleFactor = 1
	node_stack_bottom = 0.0, -0.85214, 0.0, 0.0, -1.0, 0.0, 1
	node_stack_top = 0.0, 1.30408, 0.0, 0.0, 1.0, 0.0, 1
	node_attach = 0.0, -0.85214, 0.0, 0.0, -1.0, 0.0, 1
	
	TechRequired = advConstruction
	entryCost = 2500
	cost = 300
	category = Robotics
	subcategory = 0
	title = #autoLOC_8320053		//#autoLOC_8320053 = 3P6 Hydraulic Cylinder
	manufacturer = #autoLOC_501651		//#autoLOC_501651 = Moving Parts Experts Group
	description = #autoLOC_8320054		//#autoLOC_8320054 = A large piston.  Can double in length,but still has an inferiority complex toward to the telescoping variants.
	// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
	attachRules = 1,1,1,1,0
	mass = 0.16
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 1
	crashTolerance = 12
	breakingForce = 200
	breakingTorque = 200
	maxTemp = 2000 // = 5000
	bulkheadProfiles = size0
	tags = #autoLOC_8320052 //#autoLOC_8320052 = robot actuator piston
	
	DRAG_CUBE
	{
		cube = 0, 0.9947,0.7773,0.3783, 0.9947,0.7773,0.3783, 0.3813,0.998,1.105, 0.3813,0.999,0.1005, 0.996,0.7817,0.4006, 0.9959,0.7818,0.4006, -0.0002191,0.2181,2.98E-08, 0.6176,2.129,0.6171
		cube = 50, 1.28735, 0.7789, 0.3815, 1.28735, 0.7789, 0.3815, 0.3813, 0.998, 1.508, 0.3813, 0.999, 0.096475, 1.317, 0.7747, 0.38615, 1.31695, 0.7748, 0.38615, -0.0002191, 0.61805, 2.98e-08, 0.6176, 2.929, 0.6171
		cube = 100, 1.58,0.7805,0.3847, 1.58,0.7805,0.3847, 0.3813,0.998,1.911, 0.3813,0.999,0.09245, 1.638,0.7677,0.3717, 1.638,0.7678,0.3717, -0.0002191,1.018,2.98E-08, 0.6176,3.729,0.6171
	}
	MODULE
	{
		name = ModuleRoboticServoPiston
		servoTransformName = TopJoint
		servoSrfMeshNames = capTransform
		baseTransformName = BottomJoint
		servoAttachNodes = top
		traverseVelocityLimits = 0.05, 5
		hardMinMaxLimits = 0,1.6
		softMinMaxExtension = 0,1.6
		mainAxis = Y
		servoMass = 0.25
		maxMotorOutput = 800
		positionSpringMutliplier = 100
		positionDampingMutliplier = 20
		motorizedMassPerKN = 0.0004
		motorizedCostPerDriveUnit = 0.5
		efficiency = 0.75
		baseResourceConsumptionRate = 0.05
		referenceConsumptionVelocity = 5
		// if RESOURCE is used, negative power is simply dumped
		RESOURCE
		{
			name = ElectricCharge
			rate = 1
		}
		// INPUT_RESOURCE is by default equivalent to RESOURCE
		//INPUT_RESOURCE
		//{
		//	name = ElectricCharge
		//	rate = 1
		//}
		//OUTPUT_RESOURCE is required to reclaim energy from negative power
		//OUTPUT_RESOURCE
		//{
		//	name = ElectricCharge
		//	rate = 1
		//}
	}
	MODULE
	{
		name = ModulePartVariants
		baseVariant = Gray with Stripes
		baseThemeName = Gray with Stripes
		baseDisplayName = #autoLOC_8320084	//#autoLOC_8320084 = Gray with Stripes
		useMultipleDragCubes = false
		VARIANT
		{
			name = Gray with Stripes
			primaryColor = #999999
			secondaryColor = #b08b39
			displayName = #autoLOC_8320084	//#autoLOC_8320084 = Gray with Stripes
			GAMEOBJECTS
			{
				PistonStripes = true
			}
		}
		VARIANT
		{
			name = Gray
			displayName = #autoLOC_8007101 // autoLOC_8007101 = Gray
			themeName = Gray
			primaryColor = #999999
			TEXTURE
			{
				mainTextureURL = SquadExpansion/Serenity/Parts/Robotics/Assets/Rotor_01_diffuse_plain
			}
			GAMEOBJECTS
			{
				PistonStripes = false
			}
		}
		
	}
	MODULE
	{
		name = ModuleResourceAutoShiftState
		affectedResourceName = ElectricCharge
		affectedModuleName = ModuleRoboticServoPiston
		resourceShutOffHandler = true
		resourceStartUpHandler = true
		resourceShutOffStartUpUsePercent = true
		resourceShutOffAmount = 0
		resourceShutOffPercent = 0
		resourceStartUpAmount = 0
		resourceStartUpPercent = 5
	}
	MODULE
	{
		name = ModuleCargoPart
		packedVolume = 850
	}
}