RespawnShips
The RespawnShips SBC-file defines the respawn options available to the player in the spawn menu. It allows control over which respawn ship is available for what kind of location.
Wrapper & Entry Example
<?xml version="1.0"?>
<Definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RespawnShips>
<!-- One or more RespawnShip entries are placed here. -->
</RespawnShips>
</Definitions>
<Ship>
<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>
Moon
respawn ship, the rover-version of the survival pod.Elements
Element | Description |
---|---|
SubtypeIdString: |
This is the unique identifier by which this RespawnShip entry is differentiated from others. |
DisplayNameString: |
The reference to the RESX entry for the localized ingame name of the RespawnShip as shown in the Spawn -menu or a plaintext name, if RESX is not used.
|
IconString: |
This is the path to the icon file. The icon is displayed when this respawn ship is selected in the spawn screen.
The file must be either |
HelpTextLocalizationIdString: |
The localization ID of the help text displayed in the popup when selecting a spawn option in the respawn screen. This is a RESX entry.
If multiple respawn ships are valid for a planet, then the popup will not appear. |
PrefabString: |
The path to the prefab file of the grid that is to be used as the respawn ship.
Note that the linked prefab should always also be available in its serialized sbcB5 -format. |
PlanetTypesSubelement: |
The list of planets by their ID that this respawn ship will be offered as a respawn option for. This element can contain one or multiple subelements called PlanetType , which define single entries into the list:
<PlanetTypes>
<PlanetType>SomePlanetSubtype</PlanetType>
<PlanetType>SomeOtherSubtype</PlanetType>
</PlanetTypes>
If defined, it overrides all other location-related elements of this definition. If omitted, the planets offered are decided by the other related elements. It still obeys the atmosphere rules. |
UseForPlanetsWithoutAtmosphereBoolean: |
Whether the respawn ship should be offered as a respawn option for planets without atmospheres.
Note that for the purposes of modding, there is no distinction between moons and planets - both are categorized as planets by the game. |
UseForPlanetsWithAtmosphereBoolean: |
Whether the respawn ship should be offered as a respawn option for planets with atmospheres.
Note that for the purposes of modding, there is no distinction between moons and planets - both are categorized as planets by the game. |
MinimalAirDensityFloat: |
The minimal air density as a decimal that a planet needs to have as a prerequisite of the respawn ship being offered for this planet. |
PlanetDeployAltitudeFloat: |
The altitude in meters above ground if the respawn ship spawns on a planet. |
UseForSpaceBoolean: |
Whether the respawn ship should be offered as a respawn option for space. |
SpawnNearProceduralAsteroidsBoolean: |
Whether the respawn ship should spawn near asteroids.
This only works in conjunction with the SpawnPosition-setting. |
SpawnPositionFloatVector3:
|
The specific position in space this respawn ship should spawn.
If SpawnPosition is sufficiently close to a planet, the respawn ship will be spawned in the planet’s orbit with its height above ground determined by PlanetDeployAltitude. |
SpawnPositionDispersionMinInteger: |
The minimum distance from the defined SpawnPosition this respawn ship should spawn.
|
SpawnPositionDispersionMaxInteger: |
The maximum distance from the defined SpawnPosition this respawn ship should spawn.
|
InitialLinearVelocityFloatVector3:
|
The direction and speed of movement of the respawn ship when spawned.
Be aware that the grid orientation is independent from which way the main cockpit faces, thus settings here may lead to unexpected results. |
InitialAngularVelocityFloatVector3:
|
The direction and speed of rotation of the respawn ship when spawned.
Be aware that the grid orientation is independent from which way the main cockpit faces, thus settings here may lead to unexpected results. |
SpawnWithDefaultItemsBoolean: |
Whether or not the player starts with default items when spawning with this respawn ship.
This is overridden to off if the world setting Spawn with Tools is set to off. But if the world setting is on and this element is false , the player will start without tools when first spawning with this ship, but then with tools when respawning on a med station or survival kit. |
CooldownSecondsInteger: |
The length of time in seconds for which this spawn option cannot be picked again by the same player.
When multiple respawn ships are available, the lowest cooldown one will effectively apply to all of them! |