Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pioneer Vernier Solid Motor #215

Merged
merged 2 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file added GameData/ROEngines/Assets/ItsRyan/Smooth-NRM.dds
Binary file not shown.
207 changes: 207 additions & 0 deletions GameData/ROEngines/PartConfigs/PioneerVernier.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
// Vernier motor from Pioneer 0/1
// ===============================================================
//
// Length: 4.25 in
// Diameter: .75 in
// Mass: 1.5 lb // Approximated from known weights: (43.7 total propulsion - 24lb TX-8 - 7lb vernier adapter) / 8
// Dry Mass: 1 lb // - Approximate weight of 120ml solid fuel. Volume from cylinder size.
// Thrust: 13 lb // Total impulse based on propellant load and relealized delta-v on Pioneer 1 mission
// Burn Time: 16s //
// ISP: 235
//
// 1958 NASA/USAF Space Probes (ABLE-1): https://ntrs.nasa.gov/citations/19990008156
//
// =================================================


PART
{
author = itsRyan
name = PioneerVernier
module = Part

RSSROConfig = True

MODEL
{
model = ROEngines/Assets/ItsRyan/PioneerVernier
scale = 1.0, 1.0, 1.0
}

rescaleFactor = 1.0
scale = 1.0

CoMOffset = 0.0, 1.1, 0.0

node_stack_top = 0.0,0.108,0.0,0.0,1.0,0.0,0
node_stack_bottom = 0.0,0.0,0.0,0.0,-1.0,0.0,0

fx_exhaustFlame_white_tiny = 0.0, -.12673, 0.0, 0.0, 1.0, 0.0, running

sound_vent_soft = engage
sound_rocket_soft = running
sound_vent_soft = disengage
sound_explosion_low = flameout

TechRequired = start
entryCost = 0
cost = 1
category = Engine
subcategory = 0
title = Pioneer Adjustment Motor
manufacturer = STL
description = TBD

attachRules = 1,0,1,1,0

dragModelType = default
maximum_drag = 0.01
minimum_drag = 0.005
angularDrag = 2
crashTolerance = 10
breakingForce = 10000
breakingTorque = 10000
stagingIcon = SOLID_BOOSTER

skinTempTag = Steel
internalTempTag = Steel

engineType = PioneerVernier

MODULE
{
name = ModuleEnginesRF
thrustVectorTransformName = thrustTransform

EngineType = SolidBooster
allowShutdown = False
throttleLocked = True
}

MODULE
{
name = FXModuleAnimateThrottle
animationName = SRBs
responseSpeed = 0.001
dependOnEngineState = True
dependOnThrottle = True
}
}


@PART[PioneerVernier]:FOR[RealismOverhaul]:NEEDS[TextureReplacer,!TexturesUnlimited]
{
MODULE
{
name = TRReflection
shader = Reflective/VertexLit
meshes = core, base
color = 0.5 0.5 0.5
interval = 2
}
}

KSP_TEXTURE_SET:NEEDS[TexturesUnlimited]
{
name = RO-PioneerVernier

MATERIAL
{
shader = TU/Metallic
keyword = TU_STOCK_SPEC

texture = _MainTex, ROTanks/Assets/Textures/Metal-DIFF
texture = _BumpMap, ROTanks/Assets/Textures/Smooth-NRM

PROPERTY
{
name = _Color
// Higher numbers are lighter
color = 1.8, 1.8, 1.8
}
PROPERTY
{
name = _Metal
// 0 = not metallic, 1 = mirror finish
float = 1
}
PROPERTY
{
name = _Smoothness
// 0 = most blurry, 1 = not blurry
float = 0.9
}
}
}

KSP_TEXTURE_SET:NEEDS[TexturesUnlimited] {
name = RO-PioneerVernier_Recolor
recolorable = true

MATERIAL
{
shader = TU/Metallic
texture = _MainTex, ROTanks/Assets/Textures/Metal-DIFF
texture = _BumpMap, ROTanks/Assets/Textures/Smooth-NRM
texture = _MetallicGlossMap, ROTanks/Assets/Textures/Smooth-METAL
texture = _MaskTex, ROEngines/Assets/ItsRyan/PioneerVernier-MASK
ryanc55 marked this conversation as resolved.
Show resolved Hide resolved
keyword = TU_RECOLOR
vector = _DiffuseNorm,0.5,0.5,0.5
vector = _MetalNorm,0.5,0.5,0.5
vector = _SmoothnessNorm,0.5,0.5,0.5
}
COLORS
{
mainColor = 223,223,223,176,255,255
secondColor = 223,223,223,176,255,255
detailColor = 223,223,223,176,255,255
}
}

@PART[PioneerVernier]
{
MODULE
{
name = ModulePartVariants
baseVariant = RO-Silver


VARIANT
{
name = RO-PioneerVernier-Recolor
displayName = TU Recolor
primaryColor = Silver
SecondaryColor = Black

EXTRA_INFO
{
textureSet = RO-PioneerVernier_Recolor
}
}

VARIANT
{
name = RO-Silver
themeName = Silver
displayName = Stainless
primaryColor = White
secondaryColor = Black

EXTRA_INFO
{
textureSet = RO-PioneerVernier
}
}
}

MODULE:NEEDS[TexturesUnlimited]
{
name = TUPartVariant
}

MODULE:NEEDS[TexturesUnlimited]
{
name = SSTURecolorGUI
}
}

36 changes: 36 additions & 0 deletions GameData/ROEngines/RealPlume/PioneerVernier_RealPlume.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// ==================================================
// PioneerVernier Real Plumes
// ==================================================

@PART[PioneerVernier]:BEFORE[RealPlume]:NEEDS[!Waterfall]
{
PLUME
{
name = Solid-Upper
transformName = thrustTransform
flarePosition = 0.0, 0.0, 0.02
flareScale = 0.003
plumePosition = 0.0, 0.0, 0.06
plumeScale = 0.015
smokeScale = 0.01
slagScale = 0.01
//fixedScale = 1.0
energy = 1.0
speed = 1.0
emissionMult = 0.5
}

@MODULE[ModuleEngines*]
{
!runningEffectName = NULL
!fxOffset = NULL
}

@MODULE[ModuleEngineConfigs]
{
@CONFIG,*
{
%powerEffectName = Solid-Upper
}
}
}
12 changes: 12 additions & 0 deletions GameData/ROEngines/Waterfall/SRM/PioneerVernier.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@PART[PioneerVernier]:BEFORE[ROWaterfall]:NEEDS[Waterfall]
{
ROWaterfall
{
template = rowaterfall-srm-vac-1
audio = srm-1
position = 0,0,0
rotation = 0, 0, 0
scale = 0.012, 0.012, 0.012
glow = ro-srm
}
}