Skip to content

Commit

Permalink
BCS Custom Modules (#30)
Browse files Browse the repository at this point in the history
- Added ModuleDecoupleAtAltitude.
- Added ModuleBCSAirbags, a module to automatically deploy airbags if enabled.
  • Loading branch information
SofieBrink authored Oct 14, 2024
1 parent acbf10e commit 1409a13
Show file tree
Hide file tree
Showing 8 changed files with 488 additions and 25 deletions.
1 change: 1 addition & 0 deletions GameData/BoringCrewServices/BoringCrewServices.ckan
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ksp_version_min: '1.12.3'
author:
- Zorg
- DylanSemrau
- SofieBrink
depends:
- name: ModuleManager
- name: B9PartSwitch
Expand Down
17 changes: 17 additions & 0 deletions GameData/BoringCrewServices/Localization/en-us.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Localization
{
en-us
{
// ModuleDecoupleAtAltitude
#BCS_ArmJettison = Arm Auto Jettison
#BCS_DisarmJettison = Disarm Auto Jettison
#BCS_JettisonAltitude = Jettison Altitude

// ModuleBCSAirbag
#BCS_DeployAirbags = Deploy Airbags
#BCS_DeflateAirbags = Deflate Airbags
#BCS_ArmDeploy = Arm Auto Deploy
#BCS_DisarmDeploy = Disarm Auto Deploy
#BCS_DeployAltitude = Deploy Altitude
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,14 @@ PART

tags = Airbag Cushion Starliner ?BCS Boring

MODULE
{
name = ModuleAnimateGeneric
animationName = deploy
startEventGUIName = Deploy Airbag
endEventGUIName = Retract Airbag
actionGUIName = Toggle Airbag
eventAvailableEditor = true
eventAvailableFlight = true
eventAvailableEVA = true
}

MODULE
{
name = ModuleBCSAirbags
deployAnimationName = deploy
deflateAnimationEnd = 0.65
referenceNodeName = bottom
referenceParentNode = true
deployAboveLand = false
autoDeflateOnLand = false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,10 @@ PART
}
MODULE
{
name = ModuleAnimateGeneric
animationName = deploy
startEventGUIName = Deploy Airbags
endEventGUIName = Retract Airbags
actionGUIName = Toggle Airbags
restrictedNode = bottom
eventAvailableEditor = true
eventAvailableFlight = true
eventAvailableEVA = true
name = ModuleBCSAirbags
deployAnimationName = deploy
deflateAnimationEnd = 0.40
referenceNodeName = bottom
}
MODULE
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ PART
MODULE
{
name = ModuleDecouple
name = ModuleDecoupleAtAltitude
ejectionForce = 250
explosiveNodeID = top
stagingEnabled = False
stagingEnabled = True
menuName = #autoLOC_502004 //Jettison Heatshield
}
MODULE
{
Expand Down
13 changes: 11 additions & 2 deletions Source/BoringCrewServices.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,25 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Krafs.Publicizer">
<Version>1.0.3</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="KSPBuildTools" Version="0.0.2-alpha.4" />
</ItemGroup>
<ItemGroup>
<Compile Include="Modules\ModuleBCSAirbags.cs" />
<Compile Include="Modules\ModuleDecoupleAtAltitude.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="HOW_TO_BUILD.txt" />
<Publicize Include="Assembly-CSharp:KSP.UI.Screens.ProtoStageIcon.iconType" />
<Publicize Include="Assembly-CSharp:KSP.UI.Screens.ProtoStageIcon.customIconFilename" />
</ItemGroup>
<ItemGroup>
<Folder Include="Modules\" />
<Content Include="HOW_TO_BUILD.txt" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Loading

0 comments on commit 1409a13

Please sign in to comment.