Skip to content

Commit edb5c83

Browse files
authored
Merge pull request #64 from Sigma88/Suits
Suits
2 parents 442eedc + 02c646c commit edb5c83

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

Suits/Changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
**v0.3.1**
2+
3+
- Fixed JetPacks
4+
5+
16
**v0.3.0**
27

38
- Updated to KSP 1.4.3
Binary file not shown.
0 Bytes
Binary file not shown.

[Source]/SigmaReplacements/Suits/CustomSuit.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

[Source]/SigmaReplacements/Suits/Version.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)