Serenity/Parts/Robotics/piston 04.cfg

From Kerbal Space Program Wiki
Jump to: navigation, search
This is the configuration file for 1P4 Telescoping Hydraulic Cylinder.
PART
{
	name = piston_04
	module = Part
	author = RoverDude
	MODEL
	{
		model = SquadExpansion/Serenity/Parts/Robotics/Assets/piston_04
	}
	rescaleFactor = 1
	node_stack_bottom = 0.0, -0.44406, 0.0, 0.0, -1.0, 0.0, 1
	node_stack_top = 0.0, 0.662193, 0.0, 0.0, 1.0, 0.0, 1
	node_attach = 0.0, -0.44406, 0.0, 0.0, -1.0, 0.0, 1
	TechRequired = actuators
	entryCost = 2200
	cost = 100
	category = Robotics
	subcategory = 0
	title = #autoLOC_8320056		//#autoLOC_8320056 = 1P4 Telescoping Hydraulic Cylinder
	manufacturer = #autoLOC_501651		//#autoLOC_501651 = Moving Parts Experts Group
	description = #autoLOC_8320065		//#autoLOC_8320065 = A small telescoping piston.  Eye protection is mandetory when working with this part.
	// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
	attachRules = 1,1,1,1,0
	mass = 0.048
	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.214,0.771,0.1992, 0.214,0.771,0.1992, 0.04395,0.9961,0.6198, 0.04395,0.9971,0.09733, 0.2148,0.775,0.4095, 0.2147,0.775,0.4095, -7.4E-05,0.1091,0, 0.2096,1.106,0.2095
		cube = 50, 0.3761, 0.756, 0.18795, 0.3761, 0.756, 0.18795, 0.04395, 0.9961, 1.2184, 0.04395, 0.9971, 0.099515, 0.3765, 0.7728, 0.2971, 0.37645, 0.77275, 0.2971, -7.4e-05, 0.70905, 0.0, 0.2096, 2.306, 0.2095
		cube = 100, 0.5382,0.741,0.1767, 0.5382,0.741,0.1767, 0.04395,0.9961,1.817, 0.04395,0.9971,0.1017, 0.5382,0.7706,0.1847, 0.5382,0.7705,0.1847, -7.4E-05,1.309,0, 0.2096,3.506,0.2095
	}
	MODULE
	{
		name = ModuleRoboticServoPiston
		servoTransformName = TopJoint
		servoSrfMeshNames = capTransform
		baseTransformName = BottomJoint
		slaveTransformNames = Sleave0, Sleave1
		servoAttachNodes = top
		traverseVelocityLimits = 0.02, 2
		hardMinMaxLimits = 0, 2.4
		softMinMaxExtension = 0, 2.4
		mainAxis = Y
		servoMass = 0.25
		maxMotorOutput = 100
		positionSpringMutliplier = 100
		positionDampingMutliplier = 20
		motorizedMassPerKN = 0.00045
		motorizedCostPerDriveUnit = 0.5
		efficiency = 0.75
		baseResourceConsumptionRate = 0.02
		referenceConsumptionVelocity = 2
		// 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 = #4b7c9a
			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 = 55
	}
}