From ed1c646425a08f6fc0b8c79207f358928c6544b0 Mon Sep 17 00:00:00 2001 From: pasalvetti Date: Sat, 30 Nov 2024 12:51:01 +0100 Subject: [PATCH] Fixes the inflatable heatshield not having ablator --- README.md | 1 + .../patches/inflatable_heatshield.patch | 44 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 plugin_template/patches/inflatable_heatshield.patch diff --git a/README.md b/README.md index 1c4da2e..8fe57a3 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ This project aims to bring together community bug fixes for Kerbal Space Program - **Time Warp Thrust Fix** by [SunSerega](https://github.com/SunSerega) - Fixes the bug where thrust under time warp was sometimes not working despite draining fuel. - **Save/Load DateTime Fix** by [bizzehdee](https://github.com/bizzehdee) - Displays dates and times of save files in the correct locale format. - **Tracking Station Debris Name Fix** by [polo](https://github.com/pasalvetti) - Replaces the object's guid with a human-readable name: "Debris of [ship name]". +- **Inflatable heatshield Fix** by [polo](https://github.com/pasalvetti) - Fixes the inflatable heatshield not having ablator". ## Planned fixes To see what fixes are planned to be implemented, you can visit the [Issues page](https://github.com/KSP2Community/CommunityFixes/issues) on the project's GitHub. diff --git a/plugin_template/patches/inflatable_heatshield.patch b/plugin_template/patches/inflatable_heatshield.patch new file mode 100644 index 0000000..1dab0a9 --- /dev/null +++ b/plugin_template/patches/inflatable_heatshield.patch @@ -0,0 +1,44 @@ +:parts #heatshield_2v_inflatable { + resourceContainers: +[ + { + name: "Ablator", + capacityUnits: 0.8, + initialUnits: 0.8, + NonStageable: false + } + ]; + +Module_Heatshield { + +Data_Heatshield { + IsDeployed: false; + IsAblating: false; + HasEnoughResources: false; + AblatorRatio: 1.0; + AblatorTonnesPerSecond: 1.0; + FluxRemoved: 0.0; + ShieldingDirectionScale: 1.0; + IsAblatorExhausted: false; + requiredResources: [ + { + Rate: 0.5, + ResourceName: "Ablator", + AcceptanceThreshold: 0.001 + } + ]; + AblationTempThreshold: 1000.0; + AblationMaximumOverThreshold: 50.0; + PyrolysisLossFactor: 0.00000016; + ShieldingScale: 1.0; + ShieldingDirection: { + x: 0.0, + y: -1.0, + z: 0.0 + }; + DisabledWhenRetracted: true; + UseChar: true; + CharMaterialName: "heatshield_2v_inflatable"; + CharMin: 0.0; + CharMax: 1.0; + AblatorMaxValue: 1.0; + } + } +} \ No newline at end of file