You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Improve performance
- Improved performance of ModuleAutoCutDrogue by harmony patching events to fire when the chutes deploy instead of polling every frame.
* Update ModuleAutoCutDrogue.cs
- Moved if statement for checking if drogue cutting has already happened this frame, would prevent setting triggered to true previously.
* Rearange if statement
- Actually check if auto cutting drogues is enabled & rearange if statement to check the simple booleans first.
* Update workflow via CKAN
- Updated workflow files to set `use-ckan` to true to install the harmony dependency.
* Update ModuleAutoCutDrogue.cs
- Reversed if in repack chute event so simple boolean gets evaluated first, might save a tiny amount of time.
Copy file name to clipboardExpand all lines: GameData/KSPCommunityPartModules/KSPCommunityPartModules.ckan
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ description: >-
9
9
10
10
This mod is meant as community project, so feel free to propose additional module ideas by opening an issue, or contribute with a pull request on GitHub.
Copy file name to clipboardExpand all lines: Source/Modules/ModuleAutoCutDrogue.cs
+58-14Lines changed: 58 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
Originally By: Jsolson
5
5
Originally For: Bluedog Design Bureau
6
6
*/
7
+
usingHarmonyLib;
8
+
usingSystem;
7
9
usingSystem.Linq;
8
10
usingUnityEngine;
9
11
@@ -22,6 +24,10 @@ class ModuleAutoCutDrogue : PartModule
22
24
publicbooltriggered=false;
23
25
24
26
privateModuleParachutechute=null;
27
+
28
+
// Technically this creates an edge case where if two loaded vessels deploy a main parachute at the same time only one of the vessels will cut its drogue chutes,
29
+
// but I feel like its unlikely enough to not warrent the effort required to fix it.
0 commit comments