File tree Expand file tree Collapse file tree 5 files changed +11
-6
lines changed
GameData/Sigma/Replacements/Suits/Plugins Expand file tree Collapse file tree 5 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1+ **v0.3.1**
2+
3+ - Fixed JetPacks
4+
5+
16**v0.3.0**
27
38- Updated to KSP 1.4.3
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ public class CustomSuit : CustomObject
1111 float ? helmetLowPressure = null ;
1212 float ? helmetHighPressure = null ;
1313 float ? jetpackMaxGravity = null ;
14+ bool hideJetPack = false ;
1415 bool jetpackDeployed = true ;
1516 bool helmetHidden = false ;
1617 KerbalEVA eva = null ;
@@ -73,7 +74,10 @@ void Start()
7374 if ( HighLogic . LoadedScene == GameScenes . FLIGHT && eva != null )
7475 {
7576 if ( jetpackMaxGravity != null )
77+ {
7678 TimingManager . UpdateAdd ( TimingManager . TimingStage . Normal , JetPack ) ;
79+ hideJetPack = FlightGlobals . ship_geeForce > jetpackMaxGravity ;
80+ }
7781 if ( helmetLowPressure != null || helmetHighPressure != null )
7882 TimingManager . UpdateAdd ( TimingManager . TimingStage . Normal , Helmet ) ;
7983 if ( Nyan . forever )
@@ -83,11 +87,7 @@ void Start()
8387
8488 void JetPack ( )
8589 {
86- if
87- (
88- ( ( eva . JetpackDeployed || eva . IsChuteState ) && ! jetpackDeployed ) ||
89- ( ! eva . JetpackDeployed && ! eva . IsChuteState && jetpackDeployed == FlightGlobals . ship_geeForce > jetpackMaxGravity )
90- )
90+ if ( hideJetPack && jetpackDeployed != ( eva . JetpackDeployed || eva . IsChuteState ) )
9191 {
9292 jetpackDeployed = ! jetpackDeployed ;
9393
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace Suits
88 [ KSPAddon ( KSPAddon . Startup . Instantly , true ) ]
99 internal class Version : MonoBehaviour
1010 {
11- public static readonly System . Version number = new System . Version ( "0.3.0 " ) ;
11+ public static readonly System . Version number = new System . Version ( "0.3.1 " ) ;
1212
1313 void Awake ( )
1414 {
You can’t perform that action at this time.
0 commit comments