Skip to content

Commit

Permalink
NFSD Outpost (New) - Split NFSD away from Frontier Outpost (#840)
Browse files Browse the repository at this point in the history
* First version of NFSD station, wip

* More things for NFSD, layout done

* Move NFSD station to separate folder

* Make it spawn in-game.

* Atmos and stuff.

* More work on NFSD outpost, phase 3 basically done

* Try make it load roundstart? Station records do not work yet tho.

* Blanket-whitelist NFSD outpost for now in mapchecker

* Finalise phase 4 for NFSD Outpost

* Warp point

* Downsize NFSD on frontier outpost

* Make the intertia damping over 9000

* Add meteor shields

* Fix some missing decals

* Re-add anchor to NFSD (Saving grid overrides this)

* Add rotational/translational anchors to all POI grids and Frontier

* Alert! The detective detector detects detectives

* Update station proto

* Fix merge conflict properly this time

* No overflowjobs for NFSD outpost

---------

Co-authored-by: Dvir <[email protected]>
  • Loading branch information
TsjipTsjip and dvir001 committed Jan 27, 2024
1 parent 79dfed4 commit 49c4969
Show file tree
Hide file tree
Showing 19 changed files with 24,935 additions and 8,101 deletions.
1 change: 1 addition & 0 deletions .github/mapchecker/whitelist.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# POI's
Frontier: true
nfsd: true

anomalouslab:
- WallPlastitaniumIndestructible
Expand Down
18 changes: 18 additions & 0 deletions Content.Server/_NF/GameRule/NfAdventureRuleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ private void OnStartup(RoundStartingEvent ev)
var lab = "/Maps/_NF/POI/anomalouslab.yml";
var church = "Maps/_NF/POI/beacon.yml";
var grifty = "Maps/_NF/POI/grifty.yml";
var nfsdStation = "/Maps/_NF/POI/nfsd.yml";
var depotColor = new Color(55, 200, 55);
var civilianColor = new Color(55, 55, 200);
var lpbravoColor = new Color(200, 55, 55);
Expand Down Expand Up @@ -150,6 +151,23 @@ private void OnStartup(RoundStartingEvent ev)
_shuttle.SetIFFColor(depotUid3s[0], depotColor);
}

if (_map.TryLoad(mapId, nfsdStation, out var nfsdUids, new MapLoadOptions
{
Offset = _random.NextVector2(500f, 700f)
}))
{
// We should figure out if it is possible to add this grid to the latejoin listing.
// Hey turns out we can! (This is kinda copypasted from the lodge with some values filled in.)
if (_prototypeManager.TryIndex<GameMapPrototype>("nfsd", out var stationProto))
{
_station.InitializeNewStation(stationProto.Stations["nfsd"], nfsdUids);
}

var meta = EnsureComp<MetaDataComponent>(nfsdUids[0]);
_meta.SetEntityName(nfsdUids[0], "NFSD Outpost", meta);
_shuttle.SetIFFColor(nfsdUids[0], new Color(1f, 0.2f, 0.2f));
}

if (_map.TryLoad(mapId, tinnia, out var depotUid2s, new MapLoadOptions
{
Offset = tinniaOffset
Expand Down
15,453 changes: 7,359 additions & 8,094 deletions Resources/Maps/_NF/Outpost/frontier.yml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Resources/Maps/_NF/POI/anomalouslab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ entities:
- type: OccluderTree
- type: SpreaderGrid
- type: Shuttle
angularDamping: 999999
linearDamping: 999999
- type: GridPathfinding
- gravityShakeSound: !type:SoundPathSpecifier
path: /Audio/Effects/alert.ogg
Expand Down
2 changes: 2 additions & 0 deletions Resources/Maps/_NF/POI/arena.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ entities:
- type: OccluderTree
- type: SpreaderGrid
- type: Shuttle
angularDamping: 999999
linearDamping: 999999
- type: GridPathfinding
- gravityShakeSound: !type:SoundPathSpecifier
path: /Audio/Effects/alert.ogg
Expand Down
2 changes: 2 additions & 0 deletions Resources/Maps/_NF/POI/beacon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ entities:
- type: OccluderTree
- type: SpreaderGrid
- type: Shuttle
angularDamping: 999999
linearDamping: 999999
- type: GridPathfinding
- gravityShakeSound: !type:SoundPathSpecifier
path: /Audio/Effects/alert.ogg
Expand Down
4 changes: 2 additions & 2 deletions Resources/Maps/_NF/POI/cargodepot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ entities:
- fixtures: {}
type: Fixtures
- type: OccluderTree
- angularDamping: 999999
- type: Shuttle
angularDamping: 999999
linearDamping: 999999
type: Shuttle
- type: GridPathfinding
- gravityShakeSound: !type:SoundPathSpecifier
path: /Audio/Effects/alert.ogg
Expand Down
2 changes: 2 additions & 0 deletions Resources/Maps/_NF/POI/caseyscasino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ entities:
- type: OccluderTree
- type: SpreaderGrid
- type: Shuttle
linearDamping: 999999
angularDamping: 999999
- type: GridPathfinding
- gravityShakeSound: !type:SoundPathSpecifier
path: /Audio/Effects/alert.ogg
Expand Down
2 changes: 2 additions & 0 deletions Resources/Maps/_NF/POI/courthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ entities:
- type: OccluderTree
- type: SpreaderGrid
- type: Shuttle
linearDamping: 999999
angularDamping: 999999
- type: GridPathfinding
- gravityShakeSound: !type:SoundPathSpecifier
path: /Audio/Effects/alert.ogg
Expand Down
2 changes: 2 additions & 0 deletions Resources/Maps/_NF/POI/cove.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ entities:
- type: OccluderTree
- type: SpreaderGrid
- type: Shuttle
linearDamping: 999999
angularDamping: 999999
- type: GridPathfinding
- gravityShakeSound: !type:SoundPathSpecifier
path: /Audio/Effects/alert.ogg
Expand Down
2 changes: 2 additions & 0 deletions Resources/Maps/_NF/POI/grifty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ entities:
- type: OccluderTree
- type: SpreaderGrid
- type: Shuttle
linearDamping: 999999
angularDamping: 999999
- type: GridPathfinding
- gravityShakeSound: !type:SoundPathSpecifier
path: /Audio/Effects/alert.ogg
Expand Down
2 changes: 2 additions & 0 deletions Resources/Maps/_NF/POI/lodge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ entities:
- type: OccluderTree
- type: SpreaderGrid
- type: Shuttle
linearDamping: 999999
angularDamping: 999999
- type: GridPathfinding
- gravityShakeSound: !type:SoundPathSpecifier
path: /Audio/Effects/alert.ogg
Expand Down
2 changes: 2 additions & 0 deletions Resources/Maps/_NF/POI/lpbravo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ entities:
- type: OccluderTree
- type: SpreaderGrid
- type: Shuttle
linearDamping: 999999
angularDamping: 999999
- type: GridPathfinding
- gravityShakeSound: !type:SoundPathSpecifier
path: /Audio/Effects/alert.ogg
Expand Down
17,497 changes: 17,497 additions & 0 deletions Resources/Maps/_NF/POI/nfsd.yml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Resources/Maps/_NF/POI/northpole.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ entities:
- type: OccluderTree
- type: SpreaderGrid
- type: Shuttle
linearDamping: 999999
angularDamping: 999999
- type: GridPathfinding
- gravityShakeSound: !type:SoundPathSpecifier
path: /Audio/Effects/alert.ogg
Expand Down
2 changes: 2 additions & 0 deletions Resources/Maps/_NF/POI/tinnia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ entities:
- type: OccluderTree
- type: SpreaderGrid
- type: Shuttle
linearDamping: 999999
angularDamping: 999999
- type: GridPathfinding
- gravityShakeSound: !type:SoundPathSpecifier
path: /Audio/Effects/alert.ogg
Expand Down
5 changes: 0 additions & 5 deletions Resources/Prototypes/_NF/Maps/Outpost/frontier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@
availableJobs:
Passenger: [ -1, -1 ]
HeadOfPersonnel: [ 1, 1 ]
HeadOfSecurity: [ 1, 1 ]
SecurityGuard: [ 1, 1 ]
SeniorOfficer: [ 0, 0 ]
Brigmedic: [ 0, 0 ]
SecurityOfficer: [ 0, 0 ]
SecurityCadet: [ 0, 0 ]
StationTrafficController: [ 1, 1 ]
Valet: [ 1, 1 ]
Janitor: [ 1, 1 ]
Expand Down
22 changes: 22 additions & 0 deletions Resources/Prototypes/_NF/Maps/POI/nfsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
- type: gameMap
id: nfsd
mapName: 'NFSD Outpost'
mapPath: /Maps/_NF/POI/nfsd.yml
minPlayers: 0
stations:
nfsd:
stationProto: SecurityFrontierOutpost
components:
- type: StationNameSetup
mapNameTemplate: 'NFSD Outpost'
- type: StationJobs
overflowJobs: []
availableJobs:
HeadOfSecurity: [ 1, 1 ]
SeniorOfficer: [ 0, 0 ]
Brigmedic: [ 0, 0 ]
Detective: [ 0, 0 ]
SecurityOfficer: [ 0, 0 ]
SecurityCadet: [ 0, 0 ]
# Others:
Lawyer: [ 0, 0 ]
14 changes: 14 additions & 0 deletions Resources/Prototypes/_NF/Shipyard/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@
components:
- type: Transform

- type: entity
id: SecurityFrontierOutpost
parent:
- BaseStation # Copied from StandardFrontierStation
- BaseStationCargo # Cargo
- BaseStationJobsSpawning # Records and jobsspawning
- BaseStationRecords
- BaseStationShuttles # Can spawn shuttles via shipyard consoles
- BaseStationAlertLevels # Has a comms console
- BaseStationSiliconLawFrontierStation # No funny borg laws
noSpawn: true
components:
- type: Transform

- type: entity
id: StandardFrontierVessel
parent:
Expand Down

0 comments on commit 49c4969

Please sign in to comment.