Turn stuff on and off when MH is installed

This commit is contained in:
ChrisAdderley 2019-02-25 16:18:54 -08:00
parent 0841833260
commit 57dc1a992b
10 changed files with 194 additions and 10 deletions

View File

@ -0,0 +1,17 @@
// Patches applying art changes to Making History decouplers
// Contents:
- TD-18 Decoupler ()
// TD-18 Decoupler
@PART[] {
@author = Chris Adderley (Nertea)
!mesh = DELETE
!MODEL {}
MODEL {
model = ReStock/Assets/Coupling/restock-decoupler-1875-1
}
%rescaleFactor = 1
}

View File

@ -0,0 +1,16 @@
// Patches applying art changes to Making History separators
// Contents:
- TS-18 Separator ()
// TS-18 Separator
@PART[] {
@author = Chris Adderley (Nertea)
!mesh = DELETE
!MODEL {}
MODEL {
model = ReStock/Assets/Coupling/restock-separator-1875-1
}
%rescaleFactor = 1
}

View File

@ -0,0 +1,14 @@
// Patches applying art changes to Making History RCS tanks
// Contents:
// - ()
// Spherical Radial Tiny Tank
@PART[]
{
@author = Chris Adderley (Nertea)
!mesh = DELETE
!MODEL {}
MODEL {
model = ReStock/Assets/FuelTank/restock-fuel-tank-rcs-radial-tiny-1
}
}

View File

@ -0,0 +1,118 @@
// Patches applying art changes to Making History fairings
// Contents:
- AE-FF1.5 Airstream Protective Shell (1.875m) (fairingSize1p5)
@PART[fairingSize1p5]
{
@author = Chris Adderley (Nertea)
!mesh = DELETE
!MODEL {}
MODEL {
model = ReStock/Assets/Payload/restock-fairing-base-1875-1
}
MODEL
{
model = Squad/Parts/Aero/fairings/AutoTruss
scale = 1.5,1.5,1.5
position = 0.0,0.22,0.0
}
@MODULE[ModuleProceduralFairing]
{
@pivot = 0,0.151, 0
@TextureURL = ReStock/Assets/Payload/restock-fairing-25-1
@CapTextureURL = ReStock/Assets/Payload/restock-fairing-cap-1
@TextureNormalURL = ReStock/Assets/Payload/restock-fairing-25-1-n
}
@MODULE[ModulePartVariants]
{
@VARIANT[White]
{
!TEXTURE {}
!EXTRA_INFO {}
TEXTURE
{
materialName=FairingIconShell
mainTextureURL = ReStock/Assets/Payload/restock-fairing-125-1
}
EXTRA_INFO
{
FairingsTextureURL= ReStock/Assets/Payload/restock-fairing-125-1
FairingsNormalURL= ReStock/Assets/Payload/restock-fairing-125-1-n
CapTextureURL = ReStock/Assets/Payload/restock-fairing-cap-1
}
GAMEOBJECTS
{
FairingBase1875White = true
FairingBase1875Orange = false
FairingBase1875BlackWhite = false
}
}
@VARIANT[Grey]
{
!TEXTURE {}
!EXTRA_INFO {}
TEXTURE
{
materialName=FairingIconShell
mainTextureURL = ReStock/Assets/Payload/restock-fairing-125-1
}
EXTRA_INFO
{
FairingsTextureURL= ReStock/Assets/Payload/restock-fairing-125-1
FairingsNormalURL= ReStock/Assets/Payload/restock-fairing-125-1-n
CapTextureURL = ReStock/Assets/Payload/restock-fairing-cap-1
}
GAMEOBJECTS
{
FairingBase1875White = false
FairingBase1875Orange = false
FairingBase1875BlackWhite = true
}
}
@VARIANT[Dark?Grey]
{
!TEXTURE {}
!EXTRA_INFO {}
TEXTURE
{
materialName=FairingIconShell
mainTextureURL = ReStock/Assets/Payload/restock-fairing-125-1-orange
}
EXTRA_INFO
{
FairingsTextureURL= ReStock/Assets/Payload/restock-fairing-125-1-orange
FairingsNormalURL= ReStock/Assets/Payload/restock-fairing-125-1-n
CapTextureURL = ReStock/Assets/Payload/restock-fairing-cap-1-orange
}
GAMEOBJECTS
{
FairingBase1875White = false
FairingBase1875Orange = true
FairingBase1875BlackWhite = false
}
}
}
MODULE
{
name = ModuleRestockModifyFairingMaterials
COLOR_PROPERTY
{
name = _Color
color = 1.0, 1.0, 1.0, 1.0
}
COLOR_PROPERTY
{
name = _SpecColor
color = 0.753, 0.753, 0.753, 1.0
}
FLOAT_PROPERTY
{
name = _Shininess
value = 0.3
}
}
}

View File

@ -18,7 +18,7 @@
- RC-L01 Remote Guidance Unit (Nertea)
- RC-001S Remote Guidance Unit (Nertea)
- Control
- .625m reaction wheel (Andrew Cassidy)
- 0.625m reaction wheel (Andrew Cassidy)
- RV-105 RCS Thruster Block (Nertea)
- Place-Anywhere 7 Linear RCS Port (Nertea)
- Vernor Engine (Nertea)

View File

@ -38,6 +38,9 @@ PART
fx_gasBurst_white = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, decouple
sound_decoupler_fire = decouple
/// Flag to disable this part if MH is installed
MHReplacement = True
MODULE
{
name = ModuleDecouple

View File

@ -38,6 +38,9 @@ PART
fx_gasBurst_white = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, decouple
sound_decoupler_fire = decouple
/// Flag to disable this part if MH is installed
MHReplacement = True
MODULE
{
name = ModuleDecouple

View File

@ -1,6 +1,5 @@
// ReStock+ 0.1.0
// Super tiny radial RCS tank
PART
{
name = restock-fuel-tank-rcs-radial-tiny-1
@ -45,6 +44,9 @@ PART
breakingForce = 50
breakingTorque = 50
/// Flag to disable this part if MH is installed
MHReplacement = True
// Resources
RESOURCE
{

View File

@ -74,6 +74,10 @@ PART
bulkheadProfiles = size1p5
tags = #LOC_RestockPlus_restock-fairing-base-1875-1_tags
/// Flag to disable this part if MH is installed
MHReplacement = True
MODULE
{
name = ModuleProceduralFairing

View File

@ -0,0 +1,7 @@
// Hides all the MH replacing parts if MH is installed
@PART[*]:HAS[MHReplacement[True]]:FOR[zReStockPlus]:NEEDS[SquadExpansion/MakingHistory]
{
TechHidden = True
category = none
subcategory = 0
}