Jump to content

Multiple Modulegimbal


Recommended Posts

Hi all and happy new year,

I need to make this engine work with multiple transform for gimbal

3ehcst1.jpg

and here the cfg file

PART
{
	name = DSTMS_Engine_LFO
	module = Part
	author = BadSector
	scale = 1
	rescaleFactor = 1.0
	MODEL
	{
		model = DarkSideTechnology/MotherShips/Assets/EngineLFO
	}
	
	node_stack_top = 0.0, 0, 0.0, 0.0, 1.0, 0.0, 5
	node_stack_bottom = 0.0, -6.1, 0.0, 0.0, -1.0, 0.0, 5
	
	TechRequired = nuclearPropulsion
	entryCost = 1360000
	cost = 224000
	category = Engine
	subcategory = 0
	title = Atomic Engine 7.5m
	manufacturer = DarkSideTechnology Industries
	description = Bimodal high efficency nuclear engine
	
	// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
	attachRules = 1,0,1,1,1
	

	heatConductivity = 0.06 
	skinInternalConductionMult = 4.0
	emissiveConstant = 0.85 
	radiatorMax = 0.35

	mass = 60
	thermalMassModifier = 0.5
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 2
	crashTolerance = 12
	maxTemp = 2700
	bulkheadProfiles = size5
	
	thermalMassModifier = 0.5
	
	bulkheadProfiles = size5
	
	EFFECTS
	{
		running_closed
		{
			AUDIO
			{
				channel = Ship
				clip = sound_rocket_hard
				volume = 0.0 0.0
				volume = 1.0 1.0
				pitch = 0.0 0.2
				pitch = 1.0 1.0
				loop = true
			}
	
			MODEL_MULTI_PARTICLE
			{
				modelName = Squad/FX/ksX_Exhaust
				transformName = thrustTransform
				emission = 0.0 0.0
				emission = 0.05 0.0
				emission = 0.075 0.25
				emission = 1.0 1.25
				speed = 0.0 0.5
				speed = 1.0 1.2
			}
		}
		power_open
		{
			AUDIO
			{
				channel = Ship
				clip = sound_rocket_spurts
				volume = 0.0 0.0
				volume = 0.1 0.5
				volume = 1 1
				pitch = 0 0.5
				pitch = 1 1
				loop = true
			}
			MODEL_MULTI_PARTICLE
			{
				modelName = Squad/FX/ks25_Exhaust
				transformName = thrustTransform
				emission = 0.0 0.0
				emission = 0.05 0.0
				emission = 0.075 0.25
				emission = 1.0 1.25
				speed = 0.0 0.5
				speed = 1.0 1.2
			}
		}
		running_open
		{
			AUDIO
			{
				channel = Ship
				clip = sound_jet_deep
				volume = 0.0 0.0
				volume = 0.1 0.5
				volume = 1 1
				pitch = 0 1
				pitch = 1 1.25
				loop = true
			}
		}
		engage
		{
			AUDIO
			{
				channel = Ship
				clip = sound_vent_soft
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
		flameout
		{
			PREFAB_PARTICLE
			{
				prefabName = fx_exhaustSparks_flameout_2
				transformName = thrustTransform
				oneShot = true
			}
			AUDIO
			{
				channel = Ship
				clip = sound_explosion_low
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
	}

	MODULE
	{
		name = MultiModeEngine
		primaryEngineID = Regular
		secondaryEngineID = Afterburner
	}
	MODULE
	{
		name = ModuleEnginesFX
		engineID = Regular
		EngineType = Nuclear
		runningEffectName = running_closed
		thrustVectorTransformName = thrustTransform
		exhaustDamage = True
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 1800
		heatProduction = 2000
		PROPELLANT
		{
			name = LiquidFuel
			ratio = 1
			DrawGauge = True
		}
		atmosphereCurve
	 	{
		 	 key = 0 1500
			 key = 1 850
			 key = 2 400
			 key = 10 1
		}
	}
	MODULE
	{
		name = ModuleEnginesFX
		engineID = Afterburner
		powerEffectName = power_open
		thrustVectorTransformName = thrustTransform
		exhaustDamage = True
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 5000
		heatProduction = 2500
		PROPELLANT
		{
			name = LiquidFuel
			ratio = 0.9
			DrawGauge = True
		}
		PROPELLANT
		{
			name = Oxidizer
			ratio = 1.1
			DrawGauge = True
		}
		atmosphereCurve
	 	{
			key = 0 455
			key = 0.4 430 
			key = 1 350
			key = 10 1
	 	}	
	}
	
	
	MODULE
	{
		name = ModuleJettison
		jettisonName = fairings
		bottomNodeName = bottom
		isFairing = True
		jettisonedObjectMass = 1
		jettisonForce = 5
		jettisonDirection = 0 0 1
	}

	MODULE
	{
		name = ModuleGimbal
		gimbalTransformName = LFONozzle
		gimbalRange = 5
 		gimbalResponseSpeed = 8
 		useGimbalResponseSpeed = true
	}
	
	MODULE
	{
		name = FXModuleAnimateThrottle
		animationName = Throttle
		dependOnEngineState = False
		responseSpeed = 0.5
		dependOnThrottle = True
	}	

//	MODULE
//	{
//		name = ModuleAnimateHeat
//		ThermalAnim = LANTR_overheat
//	}

	MODULE
	{
		name = ModuleAlternator	
		RESOURCE
		{
			name = ElectricCharge
			rate = 100.0
		}
	}
}

Modulegimbal don't seems to work with none of those nozzle

Thanks for every suggestion

Regards

Badsector

Edited by Badsector
updates
Link to comment
Share on other sites

Ok i have find that, if i put transform animations after the gimbal module, those animated parts lock the gimbal module, in my example LFONozzle is the gimbal and engine0nozzle,1,2,3,4 are animated.

The same part without animations work fine.

Thanks for every suggestion

Link to comment
Share on other sites

What do you mean by transform animations? KSP doesn't require any kind of animation for module gimbal to work. 

Parent LFO_Nozzle, LFO_Nozzle.001,........ under an empty transform so they copy its rotation. Use that transform in the .cfg as your module gimbal. That should work. You can use more than one module gimbal if you need it.

Your cfg doesn't show any module gimbal or closing brackets so I'm going to assume that isn't your entire cfg.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...