Skip to content

Commit

Permalink
Merge pull request #144 from InvalidArgument3/initialversion
Browse files Browse the repository at this point in the history
respawnshipexperiments
  • Loading branch information
InvalidArgument3 authored Oct 18, 2024
2 parents 460b8f5 + 1457004 commit 2344c98
Show file tree
Hide file tree
Showing 10 changed files with 4,136 additions and 1,679 deletions.
4 changes: 2 additions & 2 deletions Slipspace Engine/Data/CubeBlocks_Slipspace.sbc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<Definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CubeBlocks>
<!--

<Definition xsi:type="MyObjectBuilder_UpgradeModuleDefinition">
<Id>
<TypeId>UpgradeModule</TypeId>
Expand Down Expand Up @@ -48,7 +48,7 @@
<PCU>250</PCU>
<IsAirTight>true</IsAirTight>
</Definition>
-->

<Definition xsi:type="MyObjectBuilder_UpgradeModuleDefinition">
<Id>
<TypeId>UpgradeModule</TypeId>
Expand Down
1,644 changes: 0 additions & 1,644 deletions TSTSSESTweaks/Data/Prefabs/RespawnShip_V2_Sour_Lemon.sbc

This file was deleted.

4,003 changes: 4,003 additions & 0 deletions TSTSSESTweaks/Data/Prefabs/SpawnShuttle.sbc

Large diffs are not rendered by default.

Binary file added TSTSSESTweaks/Data/Prefabs/SpawnShuttle.sbcB5
Binary file not shown.
33 changes: 0 additions & 33 deletions TSTSSESTweaks/Data/RespawnShips.sbc

This file was deleted.

80 changes: 80 additions & 0 deletions TSTSSESTweaks/Data/RespawnShips_DeltaV.sbc
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0"?>
<Definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RespawnShips>
<Ship>
<Id>
<TypeId>RespawnShipDefinition</TypeId>
<SubtypeId>SpawnShuttle</SubtypeId>
</Id>
<DisplayName>DisplayName_RespawnPodSpace</DisplayName>
<Icon>Textures\GUI\Icons\RespawnShips\shuttle.png</Icon>
<CooldownSeconds>900</CooldownSeconds>
<Prefab>SpawnShuttle</Prefab>

<PlanetDeployAltitude>2000</PlanetDeployAltitude>

<UseForSpace>true</UseForSpace>

<InitialLinearVelocity x="0" y="0" z="0" />
<InitialAngularVelocity x="0.0" y="0.0" z="0.0" />

<HelpTextLocalizationId>RespawnScreeenHelpTextSpawn</HelpTextLocalizationId>
</Ship>









<Ship Enabled ="false">
<Id>
<TypeId>RespawnShipDefinition</TypeId>
<SubtypeId>RespawnPlanetPod</SubtypeId>
</Id>
<DisplayName>DisplayName_PlanetaryLander</DisplayName>
<Icon>Textures\GUI\Icons\RespawnShips\RespawnPlanetPod.png</Icon>
<CooldownSeconds>900</CooldownSeconds>
<Prefab>RespawnPlanetPod</Prefab>

<MinimalAirDensity>0.8</MinimalAirDensity>
<PlanetDeployAltitude>2000</PlanetDeployAltitude>
<UseForPlanetsWithAtmosphere>true</UseForPlanetsWithAtmosphere>

<InitialLinearVelocity x="0" y="-95" z="0" />
<InitialAngularVelocity x="0" y="0.5" z="0" />
<HelpTextLocalizationId>RespawnScreeenHelpTextSpawn</HelpTextLocalizationId>
</Ship>

<Ship Enabled ="false">
<Id>
<TypeId>RespawnShipDefinition</TypeId>
<SubtypeId>RespawnMoonPod</SubtypeId>
</Id>
<DisplayName>DisplayName_PlanetaryLander</DisplayName>
<Icon>Textures\GUI\Icons\RespawnShips\RespawnMoonPod.png</Icon>
<CooldownSeconds>900</CooldownSeconds>
<Prefab>RespawnMoonPod</Prefab>

<PlanetDeployAltitude>8</PlanetDeployAltitude>
<UseForPlanetsWithoutAtmosphere>true</UseForPlanetsWithoutAtmosphere>
<HelpTextLocalizationId>RespawnScreeenHelpTextSpawn</HelpTextLocalizationId>
</Ship>

<Ship Enabled ="false">
<Id>
<TypeId>RespawnShipDefinition</TypeId>
<SubtypeId>RespawnSpacePod</SubtypeId>
</Id>
<DisplayName>DisplayName_RespawnPodSpace</DisplayName>
<Icon>Textures\GUI\Icons\RespawnShips\RespawnSpacePod.png</Icon>
<CooldownSeconds>900</CooldownSeconds>
<Prefab>RespawnSpacePod</Prefab>

<UseForSpace>true</UseForSpace>
<HelpTextLocalizationId>RespawnScreeenHelpTextSpaceSpawn</HelpTextLocalizationId>
</Ship>
</RespawnShips>
</Definitions>
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sandbox.Definitions;
using VRage.Game.Components;
using Sandbox.ModAPI;
using VRage.Utils;

namespace TotalVanillaRespawnShipDeath
{
[MySessionComponentDescriptor(MyUpdateOrder.NoUpdate, priority: int.MaxValue)]
public class TotalVanillaRespawnShipDeath : MySessionComponentBase
{
public override void LoadData()
{
base.LoadData();
foreach (KeyValuePair<string, MyRespawnShipDefinition> k in MyDefinitionManager.Static.GetRespawnShipDefinitions())
{
if (k.Key == "RespawnPlanetPod")
{
k.Value.Enabled = false;
k.Value.Prefab.AvailableInSurvival = false;
k.Value.UseForSpace = false;
k.Value.UseForPlanetsWithAtmosphere = false;
k.Value.UseForPlanetsWithoutAtmosphere = false;
continue;
}
if (k.Key == "RespawnMoonPod")
{
k.Value.Enabled = false;
k.Value.Prefab.AvailableInSurvival = false;
k.Value.UseForSpace = false;
k.Value.UseForPlanetsWithAtmosphere = false;
k.Value.UseForPlanetsWithoutAtmosphere = false;
continue;
}
if (k.Key == "RespawnSpacePod")
{
k.Value.Enabled = false;
k.Value.Prefab.AvailableInSurvival = false;
k.Value.UseForSpace = false;
k.Value.UseForPlanetsWithAtmosphere = false;
k.Value.UseForPlanetsWithoutAtmosphere = false;
continue;
}
}
}
}
}
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2344c98

Please sign in to comment.