fix 45-degree RCS thrusters

This commit is contained in:
Izaya 2023-06-08 08:39:46 +10:00
parent bc4fc1f675
commit d6aefd87d7
2 changed files with 247 additions and 6 deletions

View File

@ -14,8 +14,8 @@
"repository": "https://git.shadowkat.net/izaya/KSP-mods",
},
"install" : [
{ "file" : "ksp-mods/SKSParts",
"install_to" : "GameData"
{ "file" : "ksp-mods/SKSParts/Parts",
"install_to" : "GameData/SKS"
}
],
"tags": [

View File

@ -1,6 +1,6 @@
// RCSBlock_v2
// RCSblock_01_small
+PART[RCSBlock_v2|RCSblock_01_small|restock-rcs-block-quad-angled-1|restock-rcs-block-quad-angled-mini-1]:AFTER[ReStock] {
+PART[RCSBlock_v2|RCSblock_01_small]:AFTER[ReStock] {
@name ^= :^.*$:SKS_$0_LFOX:
@title ^= :RV:LV:
@MODULE[ModuleRCSFX]
@ -29,3 +29,244 @@
}
}
}
// sorry I couldn't convince it to copy it properly so I'm just cloning it
// ReStock+ 0.1.0
// Quad RCS, side jets angled 45 degrees
PART:NEEDS[ReStockPlus]
{
// --- general parameters ---
name = SKS_lv105a_LFOX
module = Part
author = Chris Adderley (Nertea)
// --- asset parameters ---
MODEL
{
model = ReStockPlus/Assets/Control/restock-rcs-block-quad-angled-1
position = 0.0, 0.0, 0.0
scale = 1,1,1
rotation = 0, 0, 0
}
scale = 1
// --- node definitions ---
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
node_attach = 0.045212, -0.0, -0.00, 1.0, 0.0, 0.0
// --- editor parameters ---
TechRequired = advFlightControl
cost = 45
entryCost = 0
category = Control
//title = #LOC_RestockPlus_restock-rcs-block-quad-angled-1_title
title = LV-105-A RCS Thruster Block
manufacturer = #autoLOC_501631
description = #LOC_RestockPlus_restock-rcs-block-quad-angled-1_description
// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 0,1,0,0,0
// --- standard part parameters ---
mass = 0.04
dragModelType = default
maximum_drag = 0.001
minimum_drag = 0.001
angularDrag = 2
crashTolerance = 15
maxTemp = 1500
// --- rcs module parameters ---
bulkheadProfiles = srf
tags = #LOC_RestockPlus_restock-rcs-block-quad-angled-1_tags
EFFECTS
{
running
{
AUDIO_MULTI_POOL
{
channel = Ship
transformName = RCSjet
clip = sound_rocket_mini
volume = 0.0 0.0
volume = 0.1 0.0
volume = 0.5 0.025
volume = 1.0 0.1
pitch = 1.0
loop = true
}
MODEL_MULTI_PARTICLE
{
name = FX1
modelName = ReStock/FX/restock-fx-rcs-1
transformName = RCSjet
emission = 0.0 0.0
emission = 0.1 0.0
emission = 1.0 1.0
speed = 0.0 0.8
speed = 1.0 1.0
}
MODEL_MULTI_PARTICLE
{
name = fx2
modelName = ReStock/FX/restock-fx-rcs-1
transformName = RCSjet
emission = 0.0 0.0
emission = 0.2 0.0
emission = 1.0 1.0
speed = 0.0 1.0
speed = 1.0 1.0
localRotation = 0, 0, 0
localOffset = 0, 0.1, 0
}
}
}
MODULE
{
name = ModuleRCSFX
thrusterTransformName = RCSthruster
thrusterPower = 1
stagingEnabled = False
resourceFlowMode = STAGE_PRIORITY_FLOW
resourceName = LiquidFuel
runningEffectName = running
atmosphereCurve
{
key = 0 260
key = 1 86
}
PROPELLANT
{
name = LiquidFuel
ratio = 0.9
DrawGauge = True
resourceFlowMode = STAGE_PRIORITY_FLOW
}
PROPELLANT
{
name = Oxidizer
ratio = 1.1
resourceFlowMode = STAGE_PRIORITY_FLOW
}
}
MODULE
{
name = ModuleRestockDepthMask
maskTransform = 4AMask
}
}
// ReStock+ 0.1.0
// Mini Quad RCS, side jets angled 45 degrees
PART:NEEDS[ReStockPlus]
{
// --- general parameters ---
name = SKS_lv14a_LFOX
module = Part
author = Chris Adderley (Nertea)
// --- asset parameters ---
MODEL
{
model = ReStockPlus/Assets/Control/restock-rcs-block-quad-angled-mini-1
position = 0.0, 0.0, 0.0
scale = 1,1,1
rotation = 0, 0, 0
}
scale = 1
// --- node definitions ---
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
node_attach = 0.008, -0.0, -0.00, 1.0, 0.0, 0.0
// --- editor parameters ---
TechRequired = advFlightControl
cost = 16
entryCost = 0
category = Control
//title = #LOC_RestockPlus_restock-rcs-block-quad-angled-mini-1_title
title = LV-14-A RCS Thruster Block
manufacturer = #autoLOC_501631
description = #LOC_RestockPlus_restock-rcs-block-quad-angled-mini-1_description
// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 0,1,0,0,0
// --- standard part parameters ---
mass = 0.01
dragModelType = default
maximum_drag = 0.001
minimum_drag = 0.001
angularDrag = 2
crashTolerance = 15
maxTemp = 1500
// --- rcs module parameters ---
bulkheadProfiles = srf
tags = #LOC_RestockPlus_restock-rcs-block-quad-angled-mini-1_tags
EFFECTS
{
running
{
AUDIO_MULTI_POOL
{
channel = Ship
transformName = RCSjet
clip = sound_rocket_mini
volume = 0.0 0.0
volume = 0.1 0.0
volume = 0.5 0.025
volume = 1.0 0.1
pitch = 1.0
loop = true
}
MODEL_MULTI_PARTICLE
{
name = FX1
modelName = ReStockPlus/FX/restock-fx-rcs-mini-1
transformName = RCSjet
emission = 0.0 0.0
emission = 0.1 0.0
emission = 1.0 1.0
speed = 0.0 0.8
speed = 1.0 1.0
}
MODEL_MULTI_PARTICLE
{
name = fx2
modelName = ReStockPlus/FX/restock-fx-rcs-mini-1
transformName = RCSjet
emission = 0.0 0.0
emission = 0.2 0.0
emission = 1.0 1.0
speed = 0.0 1.0
speed = 1.0 1.0
localRotation = 0, 0, 0
localOffset = 0, 0.1, 0
}
}
}
MODULE
{
name = ModuleRCSFX
thrusterTransformName = RCSthruster
thrusterPower = 0.25
stagingEnabled = False
resourceFlowMode = STAGE_PRIORITY_FLOW
resourceName = LiquidFuel
runningEffectName = running
atmosphereCurve
{
key = 0 260
key = 1 86
}
PROPELLANT
{
name = LiquidFuel
ratio = 0.9
DrawGauge = True
resourceFlowMode = STAGE_PRIORITY_FLOW
}
PROPELLANT
{
name = Oxidizer
ratio = 1.1
resourceFlowMode = STAGE_PRIORITY_FLOW
}
}
MODULE
{
name = ModuleRestockDepthMask
maskTransform = Mini4AMask
}
}