Serenity/Parts/Robotics/piston 02.cfg

From Kerbal Space Program Wiki
Revision as of 16:46, 19 October 2024 by ArnePeirs (talk | contribs) (Add config)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
This is the configuration file for 1P2 Hydraulic Cylinder.
PART
{
	name = piston_02
	module = Part
	author = RoverDude
	MODEL
	{
		model = SquadExpansion/Serenity/Parts/Robotics/Assets/piston_02
	}
	rescaleFactor = 1
	node_stack_bottom = 0.0, -0.420726, 0.0, 0.0, -1.0, 0.0, 1
	node_stack_top = 0.0, 0.643867, 0.0, 0.0, 1.0, 0.0, 1
	node_attach = 0.0, -0.420726, 0.0, 0.0, -1.0, 0.0, 1
	TechRequired = advConstruction
	entryCost = 1000
	cost = 50
	category = Robotics
	subcategory = 0
	title = #autoLOC_8320050		//#autoLOC_8320050 = 1P2 Hydraulic Cylinder
	manufacturer = #autoLOC_501651		//#autoLOC_501651 = Moving Parts Experts Group
	description = #autoLOC_8320051		//#autoLOC_8320051 = A small piston.  Useful for many things, especially height-challenged Kerbals.
	// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
	attachRules = 1,1,1,1,0
	mass = 0.032
	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.1669,0.7906,0.1986, 0.1669,0.7906,0.1986, 0.04346,0.9961,0.6001, 0.04346,0.9971,0.09918, 0.167,0.7954,0.2002, 0.167,0.7956,0.2002, -7.395E-05,0.1116,4.47E-08, 0.2085,1.065,0.2083
		cube = 50, 0.21905, 0.78175, 0.1914, 0.21905, 0.78175, 0.1914, 0.04346, 0.9961, 0.80205, 0.04346, 0.9971, 0.09817, 0.2245, 0.7774, 0.19535, 0.2245, 0.77745, 0.19615, -7.395e-05, 0.3116, 4.47e-08, 0.2085, 1.465, 0.2083
		cube = 100, 0.2712,0.7729,0.1842, 0.2712,0.7729,0.1842, 0.04346,0.9961,1.004, 0.04346,0.9971,0.09716, 0.282,0.7594,0.1905, 0.282,0.7593,0.1921, -7.395E-05,0.5116,4.47E-08, 0.2085,1.865,0.2083
	}
	MODULE
	{
		name = ModuleRoboticServoPiston
		servoTransformName = TopJoint
		servoSrfMeshNames = capTransform
		baseTransformName = BottomJoint
		servoAttachNodes = top
		traverseVelocityLimits = 0.01, 1
		hardMinMaxLimits = 0,0.8
		softMinMaxExtension = 0,0.8
		mainAxis = Y
		servoMass = 0.25
		maxMotorOutput = 100
		positionSpringMutliplier = 100
		positionDampingMutliplier = 20
		motorizedMassPerKN = 0.0002
		motorizedCostPerDriveUnit = 1
		efficiency = 0.75
		baseResourceConsumptionRate = 0.01
		referenceConsumptionVelocity = 1
		// 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
	}
}