Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFSD Outpost (New) - Split NFSD away from Frontier Outpost #840

Merged
merged 30 commits into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
291daa4
First version of NFSD station, wip
TsjipTsjip Dec 27, 2023
8656d33
Merge remote-tracking branch 'upstream/master' into nfsd-station
TsjipTsjip Dec 27, 2023
7d4312e
More things for NFSD, layout done
TsjipTsjip Dec 29, 2023
8190870
Merge remote-tracking branch 'upstream/master' into nfsd-station
TsjipTsjip Jan 7, 2024
a7bfeab
Move NFSD station to separate folder
TsjipTsjip Jan 7, 2024
45d86fc
Make it spawn in-game.
TsjipTsjip Jan 7, 2024
5036d65
Atmos and stuff.
TsjipTsjip Jan 7, 2024
3d6dcf1
Merge remote-tracking branch 'upstream/master' into nfsd-station
TsjipTsjip Jan 7, 2024
162e332
Merge remote-tracking branch 'upstream/master' into nfsd-station
TsjipTsjip Jan 9, 2024
a96d33b
More work on NFSD outpost, phase 3 basically done
TsjipTsjip Jan 10, 2024
4ff9f0a
Try make it load roundstart? Station records do not work yet tho.
TsjipTsjip Jan 10, 2024
298772d
Blanket-whitelist NFSD outpost for now in mapchecker
TsjipTsjip Jan 10, 2024
dc7d15b
Finalise phase 4 for NFSD Outpost
TsjipTsjip Jan 11, 2024
7c150bc
Warp point
TsjipTsjip Jan 11, 2024
8f4d78d
Merge remote-tracking branch 'upstream/master' into nfsd-station
TsjipTsjip Jan 12, 2024
3c03f89
Merge remote-tracking branch 'upstream/master' into nfsd-station
TsjipTsjip Jan 17, 2024
d392771
Downsize NFSD on frontier outpost
TsjipTsjip Jan 17, 2024
effd9ae
Merge remote-tracking branch 'upstream/master' into nfsd-station
TsjipTsjip Jan 21, 2024
ff122bb
Make the intertia damping over 9000
TsjipTsjip Jan 21, 2024
aa19939
Add meteor shields
TsjipTsjip Jan 21, 2024
6530f18
Fix some missing decals
TsjipTsjip Jan 22, 2024
5431dc1
Merge remote-tracking branch 'upstream/master' into nfsd-station
TsjipTsjip Jan 22, 2024
f0e20c9
Re-add anchor to NFSD (Saving grid overrides this)
TsjipTsjip Jan 22, 2024
427006c
Add rotational/translational anchors to all POI grids and Frontier
TsjipTsjip Jan 22, 2024
579b1ef
Alert! The detective detector detects detectives
TsjipTsjip Jan 23, 2024
12e943e
Update station proto
TsjipTsjip Jan 23, 2024
a7bbffa
Merge branch 'master' into nfsd-station
TsjipTsjip Jan 24, 2024
70d3234
Merge branch 'master' into nfsd-station
dvir001 Jan 25, 2024
2fb2e01
Fix merge conflict properly this time
TsjipTsjip Jan 25, 2024
2eeffd5
No overflowjobs for NFSD outpost
TsjipTsjip Jan 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
TsjipTsjip marked this conversation as resolved.
Show resolved Hide resolved
// 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 ]
TsjipTsjip marked this conversation as resolved.
Show resolved Hide resolved
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 ]
TsjipTsjip marked this conversation as resolved.
Show resolved Hide resolved
# 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
Loading