Skip to content

Commit

Permalink
Add HM7 (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
al2me6 authored Jul 9, 2022
1 parent 4a40ce5 commit c226f6d
Show file tree
Hide file tree
Showing 9 changed files with 183 additions and 0 deletions.
Binary file added GameData/ROEngines/Assets/Al2Me6/hm7-diff.dds
Binary file not shown.
Binary file added GameData/ROEngines/Assets/Al2Me6/hm7-met.dds
Binary file not shown.
Binary file added GameData/ROEngines/Assets/Al2Me6/hm7-nrm.dds
Binary file not shown.
Binary file added GameData/ROEngines/Assets/Al2Me6/hm7.mu
Binary file not shown.
124 changes: 124 additions & 0 deletions GameData/ROEngines/PartConfigs/HM7_Al2Me6.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
PART
{
name = ROE-HM7
module = Part
author = Al2Me6
ROESetEngineDefaults = LIQUID_ENGINE

MODEL
{
model = ROEngines/Assets/Al2Me6/hm7
}
scale = 1
rescaleFactor = 1

node_stack_top = 0.0, 0.618, 0.0, 0.0, 1.0, 0.0, 1
node_stack_bottom = 0.0, -1.094, 0.0, 0.0, -1.0, 0.0, 1
bulkheadProfiles = size1

title = fixme
manufacturer = fixme
description = fixme
tags = fixme

attachRules = 1,1,1,1,0

dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2

heatConductivity = 0.06
skinInternalConductionMult = 4.0
emissiveConstant = 0.8

engineType = HM7

MODULE
{
name = ModuleEnginesRF
thrustVectorTransformName = thrustTransform
}
MODULE
{
name = ModuleGimbal
gimbalTransformName = gimbalTransform
}
MODULE
{
name = ModuleSurfaceFX
thrustProviderModuleIndex = 0
fxMax = 0.3
maxDistance = 30
falloff = 1.7
thrustTransformName = thrustTransform
}
MODULE
{
name = ModuleB9PartSwitch
moduleID = model
switcherDescription = Model (auto-switched)
SUBTYPE
{
name = hm7
transform = _hm7
}
SUBTYPE
{
name = hm7b
transform = _hm7b
NODE
{
name = bottom
position = 0, -1.390, 0
}
}
}
MODULE
{
name = FXModuleLookAtConstraint
CONSTRAINLOOKFX
{
targetName = actuator_upper_00
rotatorsName = actuator_lower_00
}
CONSTRAINLOOKFX
{
targetName = actuator_lower_00
rotatorsName = actuator_upper_00
}
CONSTRAINLOOKFX
{
targetName = actuator_upper_01
rotatorsName = actuator_lower_01
}
CONSTRAINLOOKFX
{
targetName = actuator_lower_01
rotatorsName = actuator_upper_01
}
}
}

@PART[ROE-HM7]:AFTER[RealismOverhaulEngines]
{
@MODULE[Module*EngineConfigs]
{
@CONFIG,* { %LinkB9PSModule[model] { subtype = hm7b } }
@CONFIG[HM-7] { @LinkB9PSModule[model] { @subtype = hm7 } }
}
}

KSP_MODEL_SHADER
{
name = ROE-HM7
model = ROEngines/Assets/Al2Me6/hm7

MATERIAL
{
shader = TU/Metallic
texture = _MainTex, ROEngines/Assets/Al2Me6/hm7-diff
texture = _BumpMap, ROEngines/Assets/Al2Me6/hm7-nrm
texture = _MetallicGlossMap, ROEngines/Assets/Al2Me6/hm7-met
}
}
1 change: 1 addition & 0 deletions GameData/ROEngines/PatchManager/ActiveMMPatches/HM7.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!PART:HAS[~name[ROE-*]&#engineType[HM7]&#category[Engine]]:BEFORE[zzzTagCleanup] {}
9 changes: 9 additions & 0 deletions GameData/ROEngines/PatchManager/ROE-PatchManager.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,15 @@ PatchManager
installedWithMod = True
}
PatchManager
{
modName = ROEngines
srcPath = ROEngines/PatchManager/PluginData/HM7.cfg
patchName = HM7
shortDescr = HM7
longDescr = Removes the duplicated HM7 engines from other mods.
installedWithMod = True
}
PatchManager
{
modName = ROEngines
srcPath = ROEngines/PatchManager/PluginData/Juno6k.cfg
Expand Down
48 changes: 48 additions & 0 deletions GameData/ROEngines/Waterfall/Hydrolox/HM7.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
@PART[ROE-HM7]:BEFORE[ROWaterfall]:NEEDS[Waterfall]
{
ROWaterfall
{
template = waterfall-hydrolox-upper-1
audio = pump-fed-light-1
defaultMainPlumeVariantName = hm7b
position = 0,0,0
rotation = 0, 0, 0
scale = 0.84, 0.84, 0.84
glow = ro-hydrolox-blue

MainPlumeVariant:NEEDS[B9PartSwitch]
{
name = hm7
template = waterfall-hydrolox-upper-1
position = 0,0,0
rotation = 0, 0, 0
scale = 0.774, 0.774, 0.774
recomputeGlowSize = true
}
}

@MODULE[ModuleEngineConfigs]:NEEDS[B9PartSwitch]
{
@CONFIG[HM-7]
{
%rowaterfallVariant = hm7
}
}
}

@PART[ROE-HM7]:AFTER[ROWaterfall]:NEEDS[Waterfall]
{
PLUME
{
name = Cryogenic_VernierOrange
transformName = exhaustTransform
localRotation = -90,0,0
localPosition = 0,-0.1,0
fixedScale = 0.8
}

@MODULE[ModuleEngines*]
{
%powerEffectName = Cryogenic_VernierOrange
}
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ I understand that some of you may want these other versions of engines back, so
* Gamma-301 (CRE by Beale)
* H-1C (Bluedog Design Bureau by CobaltWolf)
* H-1D (Bluedog Design Bureau by CobaltWolf)
* HM7 (Astral Manufactures by Al2Me6)
* J-2, J-2S (Bluedog Design Bureau by CobaltWolf)
* J-2T (Bluedog Design Bureau by CobaltWolf)
* J-2X (SSTU by ShadowMage)
Expand Down

0 comments on commit c226f6d

Please sign in to comment.