Skip to content

Commit

Permalink
Add G-1 (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
al2me6 committed Aug 19, 2023
1 parent 50f1eec commit a644415
Show file tree
Hide file tree
Showing 8 changed files with 201 additions and 0 deletions.
Binary file added GameData/ROEngines/Assets/Al2Me6/g1.mu
Binary file not shown.
Binary file added GameData/ROEngines/Assets/Al2Me6/g1_diff.dds
Binary file not shown.
Binary file added GameData/ROEngines/Assets/Al2Me6/g1_emit.dds
Binary file not shown.
Binary file added GameData/ROEngines/Assets/Al2Me6/g1_met.dds
Binary file not shown.
Binary file added GameData/ROEngines/Assets/Al2Me6/g1_nrm.dds
Binary file not shown.
167 changes: 167 additions & 0 deletions GameData/ROEngines/PartConfigs/G1_Al2Me6.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
PART
{
name = ROE-G1
module = Part
author = Al2Me6
ROESetEngineDefaults = LIQUID_ENGINE

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

node_stack_top = 0.0, 0.155, 0.0, 0.0, 1.0, 0.0, 1
node_stack_bottom = 0.0, -1.630, 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 = G1

MODULE
{
name = ModuleEnginesRF
thrustVectorTransformName = thrustTransform
}

MODULE
{
name = ModuleGimbal
gimbalTransformName = gimbal
}

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 = g1
}
SUBTYPE
{
name = g1a
transform = nozzle_ext
NODE
{
name = bottom
position = 0, -2.150, 0
}
}
}

MODULE
{
name = FXModuleLookAtConstraint
CONSTRAINLOOKFX
{
targetName = actuator_upper_0
rotatorsName = actuator_lower_0
}
CONSTRAINLOOKFX
{
targetName = actuator_lower_0
rotatorsName = actuator_upper_0
}
CONSTRAINLOOKFX
{
targetName = actuator_upper_1
rotatorsName = actuator_lower_1
}
CONSTRAINLOOKFX
{
targetName = actuator_lower_1
rotatorsName = actuator_upper_1
}
}

MODULE
{
name = FXModuleThrottleEffects
fxModuleNames = throttleColor
responseSpeed = 1.0
dependOnEngineState = True
dependOnThrottle = True
}

MODULE
{
name = ModuleColorChanger
moduleID = throttleColor
animRate = 1
shaderProperty = _EmissiveColor
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
}
}
}

@PART[ROE-G1]:AFTER[RealismOverhaulEngines]
{
@MODULE[Module*EngineConfigs]
{
@CONFIG[G-1] { %LinkB9PSModule[model] { subtype = g1 } }
@CONFIG[G-1A] { %LinkB9PSModule[model] { subtype = g1a } }
}
}

KSP_MODEL_SHADER
{
name = ROE-G1
model = ROEngines/Assets/Al2Me6/g1

MATERIAL
{
shader = TU/Metallic
texture = _MainTex, ROEngines/Assets/Al2Me6/g1_diff
texture = _BumpMap, ROEngines/Assets/Al2Me6/g1_nrm
texture = _MetallicGlossMap, ROEngines/Assets/Al2Me6/g1_met
texture = _Emission, ROEngines/Assets/Al2Me6/g1_emit
}
}
33 changes: 33 additions & 0 deletions GameData/ROEngines/Waterfall/Fluorine/G1.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
@PART[ROE-G1]:BEFORE[ROWaterfall]:NEEDS[Waterfall]
{
ROWaterfall
{
template = waterfall-rf-hydroflourine-upper
audio = pressure-fed-1
defaultMainPlumeVariantName = g1
transform = thrustTransform
position = 0,0,0
rotation = 0, 0, 0
scale = 0.84, 0.84, 0.84
glow = ro-rfstock-fluorine

MainPlumeVariant:NEEDS[B9PartSwitch]
{
name = g1a
template = waterfall-rf-hydroflourine-upper
transform = fxTransformExt
position = 0,0,0
rotation = 0, 0, 0
scale = 1.01, 1.01, 1.01
recomputeGlowSize = true
}
}

@MODULE[ModuleEngineConfigs]:NEEDS[B9PartSwitch]
{
@CONFIG[G-1A]
{
%rowaterfallVariant = g1a
}
}
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ I understand that some of you may want these other versions of engines back, so
* E-1 (Bluedog Design Bureau by Zorg)
* F-1 (Bluedog Design Bureau by CobaltWolf)
* F-1B (Bluedog Design Bureau by CobaltWolf)
* G-1 (Astral Manufactures by Al2Me6)
* Gamma-2 (CRE by Beale)
* Gamma-8 (CRE by Beale)
* Gamma-301 (CRE by Beale)
Expand Down

0 comments on commit a644415

Please sign in to comment.