Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Remove world loader from outpost STC terminals, bus shuttle console. (n…
Browse files Browse the repository at this point in the history
…ew-frontiers-14#2339)

* Remove world loader from outpost STC terminals

* Disables world loader on the bus
  • Loading branch information
whatston3 authored Oct 27, 2024
1 parent c5bf903 commit 43e4efb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Content.Server/Worldgen/Components/WorldLoaderComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,11 @@ public sealed partial class WorldLoaderComponent : Component
/// </summary>
[ViewVariables(VVAccess.ReadWrite)] [DataField("radius")]
public int Radius = 128;

/// <summary>
/// Frontier: if true, this loader is disabled, and will not be used
/// </summary>
[ViewVariables(VVAccess.ReadWrite)] [DataField]
public bool Disabled;
}

3 changes: 3 additions & 0 deletions Content.Server/Worldgen/Systems/WorldControllerSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ public override void Update(float frameTime)

while (loaderEnum.MoveNext(out var uid, out var worldLoader, out var xform))
{
if (worldLoader.Disabled) // Frontier: disable world loading
continue; // Frontier

var mapOrNull = xform.MapUid;
if (mapOrNull is null)
continue;
Expand Down
2 changes: 2 additions & 0 deletions Resources/Maps/_NF/Shuttles/Bus/publicts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ entities:
- type: Transform
pos: 0.5,1.5
parent: 8756
- type: WorldLoader
disabled: true
- proto: DefibrillatorCabinetFilled
entities:
- uid: 27
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@
- type: AccessReader
access: [["StationTrafficController"]]
- type: ActivatableUIRequiresAccess
- type: WorldLoader
disabled: true
radius: 0 # Just in case.

- type: entity
parent: [BaseStructureDisableToolUse, BaseStructureIndestructible, BaseStructureAccessReaderImmuneToEmag, BaseComputerShuttle, BaseComputerTraffic]
Expand Down

0 comments on commit 43e4efb

Please sign in to comment.