-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #144 from InvalidArgument3/initialversion
respawnshipexperiments
- Loading branch information
Showing
10 changed files
with
4,136 additions
and
1,679 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,644 changes: 0 additions & 1,644 deletions
1,644
TSTSSESTweaks/Data/Prefabs/RespawnShip_V2_Sour_Lemon.sbc
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
51 changes: 51 additions & 0 deletions
51
TSTSSESTweaks/Data/Scripts/Tweaks/TotalVanillaRespawnShipDeath.cs.disabled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.