diff --git a/GameData/ROEngines/Assets/BDB/Titan/bluedog_LR91_11_FourVernier.mu b/GameData/ROEngines/Assets/BDB/Titan/bluedog_LR91_11_FourVernier.mu new file mode 100644 index 00000000..c96846db Binary files /dev/null and b/GameData/ROEngines/Assets/BDB/Titan/bluedog_LR91_11_FourVernier.mu differ diff --git a/GameData/ROEngines/Assets/BDB/Titan/bluedog_LR91_3.mu b/GameData/ROEngines/Assets/BDB/Titan/bluedog_LR91_3.mu new file mode 100644 index 00000000..d6e9624c Binary files /dev/null and b/GameData/ROEngines/Assets/BDB/Titan/bluedog_LR91_3.mu differ diff --git a/GameData/ROEngines/Assets/BDB/Titan/bluedog_LR91_5_FourVernier.mu b/GameData/ROEngines/Assets/BDB/Titan/bluedog_LR91_5_FourVernier.mu new file mode 100644 index 00000000..9ba2c8fe Binary files /dev/null and b/GameData/ROEngines/Assets/BDB/Titan/bluedog_LR91_5_FourVernier.mu differ diff --git a/GameData/ROEngines/Compatibility/ROE-TexturesUnlimited.cfg b/GameData/ROEngines/Compatibility/ROE-TexturesUnlimited.cfg index 438b8568..08ae6d78 100644 --- a/GameData/ROEngines/Compatibility/ROE-TexturesUnlimited.cfg +++ b/GameData/ROEngines/Compatibility/ROE-TexturesUnlimited.cfg @@ -54,7 +54,12 @@ KSP_MODEL_SHADER:NEEDS[!zzz_Deferred] model = ROEngines/Assets/BDB/Titan/bluedog_LR87_11 model = ROEngines/Assets/BDB/Titan/bluedog_LR87_11_Single model = ROEngines/Assets/BDB/Titan/bluedog_LR87_11_Vac + model = ROEngines/Assets/BDB/Titan/bluedog_LR91_3 model = ROEngines/Assets/BDB/Titan/bluedog_LR91_5 + model = ROEngines/Assets/BDB/Titan/bluedog_LR91_11 + model = ROEngines/Assets/BDB/Titan/bluedog_LR91_3_SingleVernier + model = ROEngines/Assets/BDB/Titan/bluedog_LR91_5_FourVernier + model = ROEngines/Assets/BDB/Titan/bluedog_LR91_11_FourVernier model = ROEngines/Assets/BDB/Titan/bluedog_LR87_LH2_SL model = ROEngines/Assets/BDB/Titan/bluedog_LR87_LH2_V diff --git a/GameData/ROEngines/PartConfigs/LR91_4V_BDB.cfg b/GameData/ROEngines/PartConfigs/LR91_4V_BDB.cfg new file mode 100644 index 00000000..9c3df28a --- /dev/null +++ b/GameData/ROEngines/PartConfigs/LR91_4V_BDB.cfg @@ -0,0 +1,232 @@ +PART +{ + module = Part + name = ROE-LR91-4V + author = Cobaltwolf, Pap + + ROESetEngineDefaults = LIQUID_ENGINE + + // ============================================================================ + // Update Below + // ============================================================================ + + MODEL + { + model = ROEngines/Assets/BDB/Titan/bluedog_LR91_3 + } + MODEL + { + model = ROEngines/Assets/BDB/Titan/bluedog_LR91_5_FourVernier + } + MODEL + { + model = ROEngines/Assets/BDB/Titan/bluedog_LR91_11_FourVernier + } + + scale = 1.0 + rescaleFactor = 1.6 + node_stack_top = 0.0, 0.6379, 0.0, 0.0, 1.0, 0.0, 2 + node_stack_bottom = 0.0, -0.8625, 0.0, 0.0, -1.0, 0.0, 2 + + node_stack_interstage = 0.0, 0.3716, 0.0, 0.0, -1.0, 0.0, 2 + // stack, srfAttach, allowStack, allowSrfAttach, allowCollision + attachRules = 1,1,1,1,0 + + title = LR91 Series (4 Vernier) + manufacturer = Aerojet + description = The LR91 powered the second stage of Titan launchers. Exhaust from the gas generator provided roll control. + + tags = titan, lr91, lr-91, lr, 91 + + engineType = LR91 + + MODULE + { + name = ModuleEnginesRF + + THRUST_TRANSFORM + { + name = thrustTransform + multiplier = 0.99135 + } + + THRUST_TRANSFORM + { + name = vernierTransform + multiplier = 0.0021625 //one quarter the thrust of the single vernier? + } + } + + MODULE + { + name = ModuleGimbal + gimbalTransformName = gimbalTransform + } + + MODULE + { + name = ModuleSurfaceFX + thrustProviderModuleIndex = 0 + fxMax = 0.8 + maxDistance = 80 + falloff = 2 + thrustTransformName = thrustTransform + } + + MODULE + { + name = ModuleB9DisableTransform + transform = Titan1 + transform = Titan2 + transform = Titan3 + transform = fairing + transform = Fairing + transform = Shroud_1p5m + transform = Shroud_1p875m + } + + MODULE + { + name = ModuleB9PartSwitch + moduleID = nozzle + switcherDescription = Nozzle + switcherDescriptionPlural = Nozzles (auto-switched) + affectDragCubes = True + affectFARVoxels = True + SUBTYPE + { + name = AJ3 + transform = ROEngines/Assets/BDB/Titan/bluedog_LR91_3(Clone) + NODE + { + name = bottom + position = 0.0, -0.8344, 0.0 + } + } + SUBTYPE + { + name = AJ5 + transform = ROEngines/Assets/BDB/Titan/bluedog_LR91_5_FourVernier(Clone) + } + SUBTYPE + { + name = AJ11 + transform = ROEngines/Assets/BDB/Titan/bluedog_LR91_11_FourVernier(Clone) + NODE + { + name = bottom + position = 0.0, -0.9625, 0.0 + } + } + } + + MODULE + { + name = FXModuleLookAtConstraint + + CONSTRAINLOOKFX + { + targetName = pivot_1_Upper + rotatorsName = pivot_1_Lower + } + CONSTRAINLOOKFX + { + targetName = pivot_1_Lower + rotatorsName = pivot_1_Upper + } + CONSTRAINLOOKFX + { + targetName = pivot_2_Upper + rotatorsName = pivot_2_Lower + } + CONSTRAINLOOKFX + { + targetName = pivot_2_Lower + rotatorsName = pivot_2_Upper + } + } + + MODULE + { + name = FXModuleThrottleEffects + fxModuleNames = throttleColor + responseSpeed = 1.0 + dependOnEngineState = True + dependOnThrottle = True + } + + MODULE + { + name = ModuleColorChanger + moduleID = throttleColor + animRate = 1 + shaderProperty = _TintColor + includedRenderer = innerGlow + toggleInEditor = false + toggleInFlight = false + redCurve + { + key = 0 0 + key = 1 1 + } + greenCurve + { + key = 0 0 + key = 1 1 + } + blueCurve + { + key = 0 0 + key = 1 1 + } + alphaCurve + { + key = 0 0 + key = 1 1 + } + } +} +// Add the vernier Gimbal afterwards so it is not affected by the global config +@PART[ROE-LR91-4V]:AFTER[RealismOverhaulEngines] +{ + @title = LR91 (4 Vernier) + @MODULE[ModuleGimbal] + { + enableRoll = false + enableYaw = true + enablePitch = true + } + MODULE + { + name = ModuleGimbal + gimbalTransformName = vernierGimbal + gimbalRangeXP = 0 + gimbalRangeXN = 0 + gimbalRangeYP = 35 + gimbalRangeYN = 35 + useGimbalResponseSpeed = true + gimbalResponseSpeed = 25 + enableRoll = true + enableYaw = false + enablePitch = false + } + @MODULE[ModuleEngineConfigs] + { + @CONFIG,* + { + %LinkB9PSModule[nozzle] { subtype = AJ5 } + } + @CONFIG[LR91-AJ-1*],* + { + %LinkB9PSModule[nozzle] { %subtype = AJ11 } + } + @CONFIG[LR91-AJ-1] + { + %LinkB9PSModule[nozzle] { %subtype = AJ3 } + } + @CONFIG[LR91-AJ-3] + { + %LinkB9PSModule[nozzle] { %subtype = AJ3 } + } + } +} diff --git a/GameData/ROEngines/PartConfigs/LR91_BDB.cfg b/GameData/ROEngines/PartConfigs/LR91_BDB.cfg index b6c086b9..46227260 100644 --- a/GameData/ROEngines/PartConfigs/LR91_BDB.cfg +++ b/GameData/ROEngines/PartConfigs/LR91_BDB.cfg @@ -53,13 +53,13 @@ PART THRUST_TRANSFORM { name = thrustTransform - multiplier = 0.99 + multiplier = 0.99135 } THRUST_TRANSFORM { name = vernierFX - multiplier = 0.01 + multiplier = 0.00865 //Based on AJ-5, 865 lbf vernier, 100,000 lbf main chamber } } diff --git a/GameData/ROEngines/Waterfall/Hypergolic/LR91.cfg b/GameData/ROEngines/Waterfall/Hypergolic/LR91.cfg index b6bab26e..ae7a8ea1 100644 --- a/GameData/ROEngines/Waterfall/Hypergolic/LR91.cfg +++ b/GameData/ROEngines/Waterfall/Hypergolic/LR91.cfg @@ -1,4 +1,4 @@ -@PART[ROE-LR91]:BEFORE[ROWaterfall]:NEEDS[Waterfall] +@PART[ROE-LR91|ROE-LR91-4V]:BEFORE[ROWaterfall]:NEEDS[Waterfall] { ROWaterfall { @@ -87,7 +87,7 @@ { %rowaterfallVariant = kerolox25AR } - @CONFIG[LR91-AJ-?-Kero*] + @CONFIG[LR91-AJ-?-Kero*],* { %rowaterfallVariant = kerolox49AR } @@ -109,6 +109,28 @@ } } } +//Tweak plumes to fit 4-vernier version properly +@PART[ROE-LR91-4V]:BEFORE[ROWaterfall]:NEEDS[Waterfall] +{ + @ROWaterfall + { + @position[2] -= 0.175 + @ExtraTemplate,* + { + @transform = vernierTransform + @position = 0,0,0 + @scale = 0.75, 0.75, 0.75 + } + @MainPlumeVariant,* + { + @position[2] -= 0.175 + } + @MainPlumeVariant[kerolox25AR] + { + @position[2] = 0.02 + } + } +} @PART[ROE-LR91]:AFTER[zROWaterfall_Post]:NEEDS[Waterfall,B9PartSwitch] { @@ -132,3 +154,47 @@ } } } +@PART[ROE-LR91-4V]:AFTER[zROWaterfall_Post]:NEEDS[Waterfall,B9PartSwitch] +{ + @MODULE[ModuleB9PartSwitch]:HAS[#moduleID[rowaterfallMainPlumeSwitch]] + { + @SUBTYPE[kero*],* + { + @MODULE + { + @DATA + { + @TEMPLATE:HAS[#templateName[waterfall-hypergolic-vernier-upper-2]] + { + @templateName = waterfall-kerolox-vernier-2 + @position = 0,0,0 + @rotation = 0, 0, 0 + @scale = 1.35, 1.35, 1.35 + } + } + } + } + //for some reason the AJ-3 verniers have numbered vernier transforms, so make sure to get all of them... + @SUBTYPE[kerolox25AR] + { + @MODULE + { + @DATA + { + +TEMPLATE:HAS[#templateName[waterfall-kerolox-vernier-2]] + { + @overrideParentTransform = vernierTransform 1 + } + +TEMPLATE:HAS[#overrideParentTransform[vernierTransform?1]] + { + @overrideParentTransform = vernierTransform 2 + } + +TEMPLATE:HAS[#overrideParentTransform[vernierTransform?1]] + { + @overrideParentTransform = vernierTransform 3 + } + } + } + } + } +}