Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BCS Custom Modules #30

Merged
merged 2 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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