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

Migration #34374

Closed
wants to merge 1,125 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1125 commits
Select commit Hold shift + click to select a range
1340d87
Merge branch 'longpast' of https://github.com/Pixeltheaertist/Trieste…
Pixeltheaertist Dec 15, 2024
79f9873
Merge pull request #140 from Pixeltheaertist/longpast
Pixeltheaertist Dec 15, 2024
25f7bb1
Update PlanktonSystem.cs
Pixeltheaertist Dec 16, 2024
a1e3543
Update PlanktonSystem.cs
Pixeltheaertist Dec 16, 2024
4b2dd51
Update PlanktonSystem.cs
Pixeltheaertist Dec 16, 2024
22f5684
Update PlanktonSystem.cs
Pixeltheaertist Dec 16, 2024
8691754
Update PlanktonComponent.cs
Pixeltheaertist Dec 16, 2024
c7833a4
Update PlanktonSystem.cs
Pixeltheaertist Dec 16, 2024
c775120
Update PlanktonComponent.cs
Pixeltheaertist Dec 16, 2024
0616761
Update PlanktonSystem.cs
Pixeltheaertist Dec 16, 2024
18bb922
Update PlanktonSystem.cs
Pixeltheaertist Dec 16, 2024
82a2199
Update PlanktonComponent.cs
Pixeltheaertist Dec 16, 2024
073c4ec
Update PlanktonSystem.cs
Pixeltheaertist Dec 16, 2024
58c14b6
aaa
Pixeltheaertist Dec 17, 2024
20ddfbe
Update PlanktonComponent.cs
Pixeltheaertist Dec 17, 2024
d2f8615
Update PlanktonSystem.cs
Pixeltheaertist Dec 17, 2024
89e7e31
Update PlanktonSystem.cs
Pixeltheaertist Dec 17, 2024
7e393f5
Update SolutionTransferSystem.cs
Pixeltheaertist Dec 17, 2024
136eed4
Update SolutionTransferSystem.cs
Pixeltheaertist Dec 17, 2024
d8426f0
Update SolutionTransferSystem.cs
Pixeltheaertist Dec 17, 2024
db1ff69
Update SolutionTransferSystem.cs
Pixeltheaertist Dec 17, 2024
b1f6e76
Update PlanktonSystem.cs
Pixeltheaertist Dec 17, 2024
bd22cb0
Update PlanktonSystem.cs
Pixeltheaertist Dec 17, 2024
d72af13
Update PlanktonSystem.cs
Pixeltheaertist Dec 17, 2024
541c15a
Update PlanktonComponent.cs
Pixeltheaertist Dec 17, 2024
f1c6093
plankton!
Pixeltheaertist Dec 19, 2024
5a1468d
Create togglegeneration.ftl
Pixeltheaertist Dec 19, 2024
fe5fa65
Create PlanktonScannerSystem.cs
Pixeltheaertist Dec 19, 2024
ed47877
Create PlanktonScannerComponent.cs
Pixeltheaertist Dec 19, 2024
06c4161
Delete Content.Server/Planktonics/PlanktonComponent.cs
Pixeltheaertist Dec 19, 2024
02e369f
Update PlanktonSystem.cs
Pixeltheaertist Dec 19, 2024
a75c748
Create scanplankton.ftl
Pixeltheaertist Dec 19, 2024
b8bd03b
Update scanplankton.ftl
Pixeltheaertist Dec 19, 2024
7aacae3
Update scanplankton.ftl
Pixeltheaertist Dec 19, 2024
037bddf
Update PlanktonScannerSystem.cs
Pixeltheaertist Dec 19, 2024
779c98e
Update PlanktonScannerComponent.cs
Pixeltheaertist Dec 19, 2024
f76911c
Create PlanktonScanner.yml
Pixeltheaertist Dec 19, 2024
ab83ffb
Update PlanktonScannerSystem.cs
Pixeltheaertist Dec 19, 2024
d6f05fc
Update PlanktonScannerSystem.cs
Pixeltheaertist Dec 19, 2024
097298d
Update PlanktonScannerSystem.cs
Pixeltheaertist Dec 19, 2024
55fd286
Update PlanktonScannerSystem.cs
Pixeltheaertist Dec 19, 2024
0c8097f
Update PlanktonScannerSystem.cs
Pixeltheaertist Dec 19, 2024
7e2f085
Update PlanktonComponent.cs
Pixeltheaertist Dec 19, 2024
5921ddf
Update PlanktonScannerComponent.cs
Pixeltheaertist Dec 19, 2024
b5dc6bd
Update PlanktonScannerSystem.cs
Pixeltheaertist Dec 19, 2024
81a1166
Update scanplankton.ftl
Pixeltheaertist Dec 19, 2024
f3ba9b8
Update PlanktonSystem.cs
Pixeltheaertist Dec 20, 2024
ede1f3a
Update PlanktonScannerComponent.cs
Pixeltheaertist Dec 20, 2024
bc9712d
Update scanplankton.ftl
Pixeltheaertist Dec 20, 2024
8419220
Update scanplankton.ftl
Pixeltheaertist Dec 20, 2024
e1937cc
Update PlanktonScannerSystem.cs
Pixeltheaertist Dec 20, 2024
c9fbdf0
Update PlanktonScannerComponent.cs
Pixeltheaertist Dec 20, 2024
77093c0
Update PlanktonScannerSystem.cs
Pixeltheaertist Dec 20, 2024
b35d267
Update PlanktonScanner.yml
Pixeltheaertist Dec 20, 2024
d4309cc
Create meta.json
Pixeltheaertist Dec 20, 2024
2d98d35
plankton scanner resprite
Pixeltheaertist Dec 20, 2024
31e2847
Rename icon.png to icon.png
Pixeltheaertist Dec 20, 2024
087505e
Delete Resources/Textures/Objects/Specific/Planktonics directory
Pixeltheaertist Dec 20, 2024
340f242
Create meta.json
Pixeltheaertist Dec 20, 2024
d04e618
Add files via upload
Pixeltheaertist Dec 20, 2024
d789200
Update PlanktonScanner.yml
Pixeltheaertist Dec 20, 2024
c4ebadd
Create PlanktonVial.yml
Pixeltheaertist Dec 20, 2024
98665ac
Create PlanktonSeparatorComponent.cs
Pixeltheaertist Dec 20, 2024
e43ee50
Create PlanktonSeparator
Pixeltheaertist Dec 20, 2024
91c3eee
Rename PlanktonSeparator to PlanktonSeparator.yml
Pixeltheaertist Dec 20, 2024
43fb21b
Update SolutionTransferSystem.cs
Pixeltheaertist Dec 20, 2024
8f7fa80
Update PlanktonSeparator.yml
Pixeltheaertist Dec 20, 2024
449c1bd
Update scanplankton.ftl
Pixeltheaertist Dec 20, 2024
41ebbd5
Update scanplankton.ftl
Pixeltheaertist Dec 20, 2024
644c64c
Update PlanktonScannerComponent.cs
Pixeltheaertist Dec 20, 2024
e2d0244
Update PlanktonScannerSystem.cs
Pixeltheaertist Dec 20, 2024
311be16
Update PlanktonScannerSystem.cs
Pixeltheaertist Dec 20, 2024
8d9fe00
Update PlanktonScannerSystem.cs
Pixeltheaertist Dec 20, 2024
ee4546c
Update scanplankton.ftl
Pixeltheaertist Dec 20, 2024
0469d15
Update PlanktonScannerSystem.cs
Pixeltheaertist Dec 20, 2024
4d8c3d0
Update scanplankton.ftl
Pixeltheaertist Dec 20, 2024
fa2036f
Update PlanktonScannerSystem.cs
Pixeltheaertist Dec 20, 2024
45efd3e
Update PlanktonSystem.cs
Pixeltheaertist Dec 20, 2024
c2ca05f
Update PlanktonSystem.cs
Pixeltheaertist Dec 20, 2024
bde5abd
Update PlanktonSystem.cs
Pixeltheaertist Dec 20, 2024
32dbb48
Update PlanktonSystem.cs
Pixeltheaertist Dec 20, 2024
12ab25e
fish now need to breath water
Lyroth001 Dec 31, 2024
3a58088
fish now need to breath water
Lyroth001 Dec 31, 2024
e50fbf7
Merge pull request #141 from lyrothDev/fishFix
Pixeltheaertist Dec 31, 2024
2a42870
aa
Pixeltheaertist Jan 4, 2025
6f1c0ab
Merge branch 'planktonics' of https://github.com/Pixeltheaertist/Trie…
Pixeltheaertist Jan 4, 2025
d56225d
aaaa
Pixeltheaertist Jan 4, 2025
59f3ede
Update DockingSystem.Shuttle.cs
Pixeltheaertist Jan 6, 2025
5e78129
Update chemicals.yml
Pixeltheaertist Jan 6, 2025
01b1317
Update AtmosphereSystem.HighPressureDelta.cs
Pixeltheaertist Jan 6, 2025
2902717
upload water sound
Pixeltheaertist Jan 6, 2025
102120a
Update base.yml
Pixeltheaertist Jan 6, 2025
d1d36fa
Add files via upload
Pixeltheaertist Jan 6, 2025
b4e19ee
Update AmbientSoundSystem.cs
Pixeltheaertist Jan 6, 2025
34ee885
Update hardsuit-helmets.yml
Pixeltheaertist Jan 6, 2025
8725da1
Create RustableComponent.cs
Pixeltheaertist Jan 6, 2025
7e411f1
Update RustableComponent.cs
Pixeltheaertist Jan 6, 2025
7d0595e
Update walls.yml
Pixeltheaertist Jan 6, 2025
c88ff0c
Delete Resources/Audio/Ambience/abisea1.mp3
Pixeltheaertist Jan 6, 2025
2300833
Update audio.yml
Pixeltheaertist Jan 6, 2025
695f45b
Update audio.yml
Pixeltheaertist Jan 6, 2025
1b51363
Update audio.yml
Pixeltheaertist Jan 6, 2025
2bb3746
Create OnSweetwater.cs
Pixeltheaertist Jan 6, 2025
998877b
Create SweetwaterComponent.cs
Pixeltheaertist Jan 6, 2025
bca6152
Update audio.yml
Pixeltheaertist Jan 6, 2025
e2e5189
Update audio.yml
Pixeltheaertist Jan 6, 2025
2c6c0db
Create safeharbor.yml
Pixeltheaertist Jan 6, 2025
2967987
Create preset-safeharbor.ftl
Pixeltheaertist Jan 6, 2025
22684d5
Update preset-safeharbor.ftl
Pixeltheaertist Jan 6, 2025
985d20f
Update game_presets.yml
Pixeltheaertist Jan 6, 2025
745e5cb
Update game_presets.yml
Pixeltheaertist Jan 6, 2025
0da203a
Update game_presets.yml
Pixeltheaertist Jan 6, 2025
5d28070
Update game_presets.yml
Pixeltheaertist Jan 6, 2025
547829c
Create DivingBellComponent.cs
Pixeltheaertist Jan 6, 2025
821f914
Update ShuttleSystem.FasterThanLight.cs
Pixeltheaertist Jan 6, 2025
d18b21c
special shuttle sounds
Pixeltheaertist Jan 6, 2025
3fab928
Update ShuttleSystem.FasterThanLight.cs
Pixeltheaertist Jan 6, 2025
4d2b5e7
Update arrivals.yml
Pixeltheaertist Jan 6, 2025
5f0a4f6
Add files via upload
Pixeltheaertist Jan 6, 2025
4a47953
Create trieste.yml
Pixeltheaertist Jan 6, 2025
ab4605c
Update nukieplanet.yml
Pixeltheaertist Jan 6, 2025
b7d5f1d
aa
Pixeltheaertist Jan 6, 2025
998fcef
Merge branch 'floatsam' of https://github.com/Pixeltheaertist/Trieste…
Pixeltheaertist Jan 6, 2025
ca096bc
aa
Pixeltheaertist Jan 7, 2025
4575801
aa
Pixeltheaertist Jan 7, 2025
47490b0
aa
Pixeltheaertist Jan 7, 2025
e6cd71a
aa
Pixeltheaertist Jan 7, 2025
4bbacb5
Merge pull request #143 from Pixeltheaertist/floatsam
Pixeltheaertist Jan 7, 2025
a6cb7f7
Merge pull request #142 from Pixeltheaertist/tweaks
Pixeltheaertist Jan 7, 2025
529db3c
Borg Water change
Lyroth001 Jan 7, 2025
fd092e9
Merge pull request #145 from Lyroth001/patch-1
Pixeltheaertist Jan 7, 2025
47649a7
aa
Pixeltheaertist Jan 8, 2025
07c78d5
Merge branch 'master' of https://github.com/Pixeltheaertist/Trieste-Port
Pixeltheaertist Jan 8, 2025
9636d53
aaa
Pixeltheaertist Jan 8, 2025
da318ec
Create floatsam.yml
Pixeltheaertist Jan 8, 2025
fb24198
Create ReactorFlicker.cs
Pixeltheaertist Jan 8, 2025
d6879d9
Update floatsam.yml
Pixeltheaertist Jan 8, 2025
0eda06e
Create EventReactorComponent.cs
Pixeltheaertist Jan 8, 2025
f199171
Update EventReactorComponent.cs
Pixeltheaertist Jan 8, 2025
d0f19f4
Create floatsam.ftl
Pixeltheaertist Jan 8, 2025
79310b7
Update EventReactorComponent.cs
Pixeltheaertist Jan 8, 2025
bc29ca2
Update ReactorFlicker.cs
Pixeltheaertist Jan 8, 2025
1bc5616
Update and rename ReactorFlicker.cs to EventReactorSystem.cs
Pixeltheaertist Jan 8, 2025
4019515
Update floatsam.ftl
Pixeltheaertist Jan 8, 2025
a9ed719
Update floatsam.ftl
Pixeltheaertist Jan 8, 2025
5f051b4
Update floatsam.ftl
Pixeltheaertist Jan 8, 2025
d2c8012
Update EventReactorSystem.cs
Pixeltheaertist Jan 8, 2025
851babd
Update EventReactorSystem.cs
Pixeltheaertist Jan 8, 2025
1b59dc3
Update floatsam.ftl
Pixeltheaertist Jan 8, 2025
e17c9ec
Update EventReactorComponent.cs
Pixeltheaertist Jan 8, 2025
850f88c
Update EventReactorSystem.cs
Pixeltheaertist Jan 8, 2025
6401612
Update safeharbor.yml
Pixeltheaertist Jan 9, 2025
2e96f0e
Create safeharbor.yml
Pixeltheaertist Jan 9, 2025
c0f10de
Update safeharbor.yml
Pixeltheaertist Jan 9, 2025
5a16229
Update nanotrasen.yml
Pixeltheaertist Jan 9, 2025
0bac448
Delete Resources/Prototypes/Maps/sweetwater.yml
Pixeltheaertist Jan 9, 2025
baef002
Update safeharbor.yml
Pixeltheaertist Jan 9, 2025
8449568
Update laws.ftl
Pixeltheaertist Jan 9, 2025
7a55023
Update war-declarator.ftl
Pixeltheaertist Jan 9, 2025
6b93693
Update NewPlayer.xml
Pixeltheaertist Jan 9, 2025
44aad93
Update sea.yml
Pixeltheaertist Jan 9, 2025
42fc29d
Update sea.yml
Pixeltheaertist Jan 9, 2025
32c4fef
Update floatsam.yml
Pixeltheaertist Jan 9, 2025
db382b2
Update floatsam.yml
Pixeltheaertist Jan 9, 2025
2f15a5e
aa
Pixeltheaertist Jan 9, 2025
1aaed79
Merge branch 'floatsam2' of https://github.com/Pixeltheaertist/Triest…
Pixeltheaertist Jan 9, 2025
c949ef5
aa
Pixeltheaertist Jan 9, 2025
45522f0
Update sea.yml
Pixeltheaertist Jan 10, 2025
d7c242d
Update mimic.yml
Pixeltheaertist Jan 10, 2025
fe837b2
Update events.yml
Pixeltheaertist Jan 10, 2025
083376f
Update timed.yml
Pixeltheaertist Jan 10, 2025
594a2af
Update mobs.yml
Pixeltheaertist Jan 10, 2025
0a067aa
Update mobs.yml
Pixeltheaertist Jan 10, 2025
e9ed2ef
Update harpoon_gun.yml
Pixeltheaertist Jan 10, 2025
3965774
Update harpoons.yml
Pixeltheaertist Jan 10, 2025
47c70d8
Update migration.yml
Pixeltheaertist Jan 10, 2025
cb5389f
Update battery_guns.yml
Pixeltheaertist Jan 10, 2025
4279588
Update ladder.yml
Pixeltheaertist Jan 10, 2025
c8fa514
Update migration.yml
Pixeltheaertist Jan 10, 2025
26e1339
Update telecomms.yml
Pixeltheaertist Jan 10, 2025
0994d1b
Update encryption_keys.yml
Pixeltheaertist Jan 10, 2025
235a1b3
Update trident.yml
Pixeltheaertist Jan 10, 2025
d6473f6
Update migration.yml
Pixeltheaertist Jan 10, 2025
1ab1a60
Update bombs.yml
Pixeltheaertist Jan 10, 2025
d2849a9
Update grenades.yml
Pixeltheaertist Jan 10, 2025
5b58e00
Update nanotrasen.yml
Pixeltheaertist Jan 10, 2025
0926132
Update nanotrasen.yml
Pixeltheaertist Jan 10, 2025
22a6370
Update migration.yml
Pixeltheaertist Jan 10, 2025
b8d0407
Update gas_canisters.yml
Pixeltheaertist Jan 10, 2025
175eecd
Update mechs.yml
Pixeltheaertist Jan 10, 2025
86ce458
Update mechs.yml
Pixeltheaertist Jan 10, 2025
99f9bc4
Update humanoid.yml
Pixeltheaertist Jan 10, 2025
d0cdf07
Update migration.yml
Pixeltheaertist Jan 10, 2025
fc1b309
Update humanoid.yml
Pixeltheaertist Jan 10, 2025
c64b310
Update migration.yml
Pixeltheaertist Jan 10, 2025
10432e0
Update generators.yml
Pixeltheaertist Jan 10, 2025
216dd54
Update pinpointer.yml
Pixeltheaertist Jan 10, 2025
d21cc57
Update dat_fukken_disk.yml
Pixeltheaertist Jan 10, 2025
986ce00
Update PlanktonScanner.yml
Pixeltheaertist Jan 10, 2025
e9f903f
Update clusterbang.yml
Pixeltheaertist Jan 10, 2025
e0bc0b4
Update powercells.yml
Pixeltheaertist Jan 10, 2025
038c132
Update uplinknt_catalog.yml
Pixeltheaertist Jan 10, 2025
1330019
Update migration.yml
Pixeltheaertist Jan 10, 2025
46a82a2
Update migration.yml
Pixeltheaertist Jan 10, 2025
1a4037b
Update gas_tanks.yml
Pixeltheaertist Jan 10, 2025
7f9dd5f
Update survival.yml
Pixeltheaertist Jan 10, 2025
a9a901f
Update atmos_blocker.yml
Pixeltheaertist Jan 10, 2025
0a60de3
Update debug.yml
Pixeltheaertist Jan 10, 2025
4ffc8f7
Update migration.yml
Pixeltheaertist Jan 10, 2025
e97f20c
Update jellid.yml
Pixeltheaertist Jan 10, 2025
6594670
Update jellid.yml
Pixeltheaertist Jan 10, 2025
48213d6
Update jellid.yml
Pixeltheaertist Jan 10, 2025
bb46c4f
Update jellid.yml
Pixeltheaertist Jan 10, 2025
e489f56
Update migration.yml
Pixeltheaertist Jan 10, 2025
99198e4
Update migration.yml
Pixeltheaertist Jan 10, 2025
ee80ff2
Update paper.yml
Pixeltheaertist Jan 10, 2025
8d4c7a6
Update migration.yml
Pixeltheaertist Jan 10, 2025
e970319
Update FallingDestination.yml
Pixeltheaertist Jan 10, 2025
5793439
Update migration.yml
Pixeltheaertist Jan 10, 2025
402a4ac
Update migration.yml
Pixeltheaertist Jan 10, 2025
990d65b
Update jobs.yml
Pixeltheaertist Jan 10, 2025
e129fcd
Update migration.yml
Pixeltheaertist Jan 10, 2025
053bc4f
Update seawreck.yml
Pixeltheaertist Jan 10, 2025
2403911
Update piezo.yml
Pixeltheaertist Jan 10, 2025
2ad1151
Update piezoshard.yml
Pixeltheaertist Jan 10, 2025
648e517
Update migration.yml
Pixeltheaertist Jan 10, 2025
9cbf604
Update migration.yml
Pixeltheaertist Jan 10, 2025
0a7169f
Update walls.yml
Pixeltheaertist Jan 10, 2025
b933fcb
Update polaroid.yml
Pixeltheaertist Jan 10, 2025
8abd569
Update migration.yml
Pixeltheaertist Jan 10, 2025
4c26bd6
Update migration.yml
Pixeltheaertist Jan 10, 2025
194dd37
Update toys.yml
Pixeltheaertist Jan 10, 2025
8274098
Update sea.yml
Pixeltheaertist Jan 10, 2025
d7420c0
Update meat.yml
Pixeltheaertist Jan 10, 2025
b4954c2
Update meal_recipes.yml
Pixeltheaertist Jan 10, 2025
7cfea27
Update migration.yml
Pixeltheaertist Jan 10, 2025
80793cd
Update eva-helmets.yml
Pixeltheaertist Jan 10, 2025
0c90f15
Update migration.yml
Pixeltheaertist Jan 10, 2025
df28245
Update softsuits.yml
Pixeltheaertist Jan 10, 2025
a4ad362
Update asteroid.yml
Pixeltheaertist Jan 10, 2025
9e56245
Update migration.yml
Pixeltheaertist Jan 10, 2025
c4501fc
Update cargo_gifts.yml
Pixeltheaertist Jan 10, 2025
15d9c04
Update cargo-gifts.ftl
Pixeltheaertist Jan 10, 2025
be6ac60
Update cargo_gifts.yml
Pixeltheaertist Jan 10, 2025
d345f95
Update events.yml
Pixeltheaertist Jan 10, 2025
8739ddf
Update immovable-rod.ftl
Pixeltheaertist Jan 10, 2025
8d0306f
Update CCVars.cs
Pixeltheaertist Jan 10, 2025
f1ed965
Merge branch 'migration' of https://github.com/Pixeltheaertist/Triest…
Pixeltheaertist Jan 11, 2025
8cc04fa
a
Pixeltheaertist Jan 11, 2025
880dba4
aa
Pixeltheaertist Jan 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@ contact_links:
- name: Report a Security Vulnerability
url: https://github.com/space-wizards/space-station-14/blob/master/SECURITY.md
about: Please report security vulnerabilities privately so we can fix them before they are publicly disclosed.
- name: Request a Feature
url: https://discord.gg/rGvu9hKffJ
about: Submit feature requests on our Discord server (https://discord.gg/rGvu9hKffJ).
134 changes: 134 additions & 0 deletions Content.Client/Overlays/StaticSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
using Content.Shared.Inventory;
using Content.Shared.Inventory.Events;
using Robust.Client.Graphics;
using Robust.Client.Player;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;
using Content.Shared.Overlays;
using Robust.Shared.Timing;
using Robust.Client.Graphics;
using Robust.Shared.Enums;
using Content.Shared.Clothing;

namespace Content.Client.Overlays
{
public sealed class StaticViewerHudSystem : EntitySystem
{
[Dependency] private readonly IOverlayManager _overlayMan = default!;
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
[Dependency] private readonly IPlayerManager _player = default!;
[Dependency] private readonly IEntityManager _entityManager = default!;
[Dependency] private readonly IGameTiming _timing = default!;

private ShaderInstance _staticViewerShader = null!;
private StaticViewerOverlay _staticViewerOverlay = null!;


public StaticViewerHudSystem()
{
IoCManager.InjectDependencies(this);
}

public override void Initialize()
{
_staticViewerShader = _prototypeManager.Index<ShaderPrototype>("Grainy").Instance();

_staticViewerOverlay = new StaticViewerOverlay(_staticViewerShader, _entityManager, _player);

SubscribeLocalEvent<StaticViewerComponent, ComponentInit>(OnInit);
SubscribeLocalEvent<StaticViewerComponent, ComponentShutdown>(OnShutdown);
SubscribeLocalEvent<StaticViewerComponent, LocalPlayerAttachedEvent>(OnPlayerAttached);
SubscribeLocalEvent<StaticViewerComponent, LocalPlayerDetachedEvent>(OnPlayerDetached);
SubscribeLocalEvent<StaticViewerComponent, GotEquippedEvent>(OnEquipped);
SubscribeLocalEvent<StaticViewerComponent, GotUnequippedEvent>(OnUnequipped);
}

private void OnEquipped(Entity<StaticViewerComponent> ent, ref GotEquippedEvent args)
{
EnsureComp<StaticViewerComponent>(args.Equipee);
}

private void OnUnequipped(Entity<StaticViewerComponent> ent, ref GotUnequippedEvent args)
{
_entityManager.RemoveComponent<StaticViewerComponent>(args.Equipee);
}

private void OnPlayerAttached(Entity<StaticViewerComponent> ent, ref LocalPlayerAttachedEvent args)
{
_overlayMan.AddOverlay(_staticViewerOverlay);
}

private void OnPlayerDetached(Entity<StaticViewerComponent> ent, ref LocalPlayerDetachedEvent args)
{
_overlayMan.RemoveOverlay(_staticViewerOverlay);
}

private void OnInit(Entity<StaticViewerComponent> ent, ref ComponentInit args)
{
if (_player.LocalEntity == ent)
{
_overlayMan.AddOverlay(_staticViewerOverlay);
}
}

private void OnShutdown(Entity<StaticViewerComponent> ent, ref ComponentShutdown args)
{
if (_player.LocalEntity == ent)
{
_overlayMan.RemoveOverlay(_staticViewerOverlay);
}
}
}

public sealed class StaticViewerOverlay : Overlay
{
private readonly ShaderInstance _shaderInstance;
private readonly IEntityManager _entityManager;
private readonly IPlayerManager _playerManager;

public StaticViewerOverlay(ShaderInstance shaderInstance, IEntityManager entityManager, IPlayerManager playerManager)
{
_shaderInstance = shaderInstance;
_entityManager = entityManager;
_playerManager = playerManager;
}

public override OverlaySpace Space => OverlaySpace.WorldSpace;
public override bool RequestScreenTexture => true;

protected override bool BeforeDraw(in OverlayDrawArgs args)
{
var playerEntity = _playerManager.LocalEntity;

if (!playerEntity.HasValue)
return false;

if (!_entityManager.TryGetComponent(playerEntity.Value, out EyeComponent? eyeComp))
return false;

if (args.Viewport.Eye != eyeComp.Eye)
return false;

return true;
}

protected override void Draw(in OverlayDrawArgs args)
{
if (ScreenTexture == null)
return;

var handle = args.WorldHandle;

// Duplicate the shader instance to make it mutable
var mutableShaderInstance = _shaderInstance.Duplicate();

mutableShaderInstance.SetParameter("SCREEN_TEXTURE", ScreenTexture);

// Use the duplicated mutable shader
handle.UseShader(mutableShaderInstance);
handle.DrawRect(args.WorldBounds, Color.White);
handle.UseShader(null);
}
}
}

68 changes: 68 additions & 0 deletions Content.Server/Atmos/Components/InGasComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
using Content.Shared.Alert;
using Content.Shared.Damage;
using Content.Shared.FixedPoint;
using Robust.Shared.Prototypes;
using Content.Shared.Interaction;

namespace Content.Server.Atmos.Components;

/// <summary>
/// Component to handle non-breathing gas interactions.
/// Detects gasses around entities and applies effects. (this is currently for damage to borgs but ¯\_(ツ)_/¯)
/// </summary>
[RegisterComponent]
public sealed partial class InGasComponent : Component
{

/// <summary>
/// ID of gas to check for as an int. Defaults to water.
/// </summary>
[DataField("gasID"), ViewVariables(VVAccess.ReadWrite)]
public int GasId = 9;

/// <summary>
/// amount of gas needed to trigger effect in mols.
/// </summary>
[DataField("gasThreshold"), ViewVariables(VVAccess.ReadWrite)]
public float GasThreshold = 0.1f;

/// <summary>
/// Whether the entity is damaged by water.
/// By default things are not
/// </summary>
[DataField("damagedByGas"), ViewVariables(VVAccess.ReadWrite)]
public bool DamagedByGas = false;
/// <summary>
/// Damage caused by gas contact
/// </summary>
[DataField("damage"), ViewVariables(VVAccess.ReadWrite)]
public DamageSpecifier Damage = default!;

///<summary>
/// Prevents gibbing from gas damage, same purpose as the barotrauma one
/// </summary>
[DataField("maxDamage"), ViewVariables(VVAccess.ReadWrite)]
public FixedPoint2 MaxDamage = 200;

/// <summary>
/// Used to track when damage starts/stops. Used in logs + the alert.
/// </summary>
[DataField]
public bool TakingDamage = false;


/// <summary>
/// Tracks whether something is underwater specifically.
/// </summary>
[DataField]
public bool InWater = false;

/// <summary>
/// The alert to send when the entity is damaged by gas.
/// </summary>
[DataField]
public ProtoId<AlertPrototype> DamageAlert = "ShortCircuit";

[DataField]
public ProtoId<AlertCategoryPrototype> BreathingAlertCategory = "Breathing";
}
39 changes: 39 additions & 0 deletions Content.Server/Atmos/Components/InWaterEvent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
using JetBrains.Annotations;
using Content.Server.Atmos.EntitySystems;
using Content.Server.Atmos.Components;

namespace Content.Shared.Interaction;

/// <summary>
/// Raised when an entity enters water in the world.
/// </summary>
[PublicAPI]
public sealed class InWaterEvent : HandledEntityEventArgs
{
/// <summary>
/// The entity that entered the water.
/// </summary>
public EntityUid User { get; }

public InWaterEvent(EntityUid user)
{
User = user;
}
}

/// <summary>
/// Raised when an entity exits water in the world.
/// </summary>
[PublicAPI]
public sealed class OutOfWaterEvent : HandledEntityEventArgs
{
/// <summary>
/// The entity that exited the water.
/// </summary>
public EntityUid User { get; }

public OutOfWaterEvent(EntityUid user)
{
User = user;
}
}
10 changes: 10 additions & 0 deletions Content.Server/Atmos/Components/RustableComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace Content.Server.Atmos.Components;

/// <summary>
/// A component that describes objects (walls for example) that can be decayed and rusted by seawater
/// </summary>
[RegisterComponent]
public sealed partial class RustableComponent : Component
{

}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private void FixGridAtmosCommand(IConsoleShell shell, string argstr, string[] ar
return;
}

var mixtures = new GasMixture[7];
var mixtures = new GasMixture[8];
for (var i = 0; i < mixtures.Length; i++)
mixtures[i] = new GasMixture(Atmospherics.CellVolume) { Temperature = Atmospherics.T20C };

Expand Down Expand Up @@ -65,6 +65,10 @@ private void FixGridAtmosCommand(IConsoleShell shell, string argstr, string[] ar
mixtures[6].AdjustMoles(Gas.Nitrogen, Atmospherics.NitrogenMolesStandard);
mixtures[6].Temperature = 235f; // Little colder than an actual freezer but gives a grace period to get e.g. themomachines set up, should keep warm for a few door openings

// 7: Water
mixtures[7].AdjustMoles(Gas.Water, Atmospherics.WaterMolesStandard);
mixtures[7].Temperature = 40f; // god help us all

foreach (var arg in args)
{
if (!NetEntity.TryParse(arg, out var netEntity) || !TryGetEntity(netEntity, out var euid))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ namespace Content.Server.Atmos.EntitySystems
{
public sealed partial class AtmosphereSystem
{
private const int SpaceWindSoundCooldownCycles = 75;
private const int SpaceWindSoundCooldownCycles = 1000;

private int _spaceWindSoundCooldown = 0;

[ViewVariables(VVAccess.ReadWrite)]
public string? SpaceWindSound { get; private set; } = "/Audio/Effects/space_wind.ogg";
public string? WaterMoveSound { get; private set; } = "/Audio/Effects/water_move.ogg";

private readonly HashSet<Entity<MovedByPressureComponent>> _activePressures = new(8);

Expand Down Expand Up @@ -93,15 +94,37 @@ private void AddMobMovedByPressure(EntityUid uid, MovedByPressureComponent compo
private void HighPressureMovements(Entity<GridAtmosphereComponent> gridAtmosphere, TileAtmosphere tile, EntityQuery<PhysicsComponent> bodies, EntityQuery<TransformComponent> xforms, EntityQuery<MovedByPressureComponent> pressureQuery, EntityQuery<MetaDataComponent> metas)
{
// TODO ATMOS finish this
bool isWaterPresent = false;
bool isWaterTooMuch = false;

if (tile.Air != null)
{
// Check the moles of gasId 9 (water)
if (tile.Air.GetMoles(9) >= 10) // Adjust the last threshhold as needed
{
isWaterPresent = true;
}

if (tile.Air.GetMoles(9) >= 120)
{
isWaterTooMuch = true;
}

}

// Don't play the space wind sound on tiles that are on fire...
if (tile.PressureDifference > 15 && !tile.Hotspot.Valid)
{
if (_spaceWindSoundCooldown == 0 && !string.IsNullOrEmpty(SpaceWindSound))
if (_spaceWindSoundCooldown == 0 && !string.IsNullOrEmpty(SpaceWindSound) && !isWaterPresent && !isWaterTooMuch)
{
var coordinates = _mapSystem.ToCenterCoordinates(tile.GridIndex, tile.GridIndices);
_audio.PlayPvs(SpaceWindSound, coordinates, AudioParams.Default.WithVariation(0.125f).WithVolume(MathHelper.Clamp(tile.PressureDifference / 10, 10, 100)));
}
if (_spaceWindSoundCooldown == 0 && !string.IsNullOrEmpty(WaterMoveSound) && isWaterPresent && !isWaterTooMuch)
{
var coordinates = _mapSystem.ToCenterCoordinates(tile.GridIndex, tile.GridIndices);
_audio.PlayPvs(WaterMoveSound, coordinates, AudioParams.Default.WithVariation(0.125f).WithVolume(MathHelper.Clamp(tile.PressureDifference / 10, 10, 100)));
}
}


Expand Down
32 changes: 32 additions & 0 deletions Content.Server/Atmos/EntitySystems/FlammableSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
using Robust.Shared.Physics.Events;
using Robust.Shared.Physics.Systems;
using Robust.Shared.Random;
using Content.Shared.Hands;
using Content.Shared.Hands.Components;
using Content.Shared.Hands.EntitySystems;
using Content.Server.Chemistry.EntitySystems;

namespace Content.Server.Atmos.EntitySystems
{
Expand Down Expand Up @@ -83,6 +87,8 @@ public override void Initialize()
SubscribeLocalEvent<IgniteOnHeatDamageComponent, DamageChangedEvent>(OnDamageChanged);
}



private void OnMeleeHit(EntityUid uid, IgniteOnMeleeHitComponent component, MeleeHitEvent args)
{
foreach (var entity in args.HitEntities)
Expand All @@ -96,6 +102,7 @@ private void OnMeleeHit(EntityUid uid, IgniteOnMeleeHitComponent component, Mele
}
}


private void OnIgniteLand(EntityUid uid, IgniteOnCollideComponent component, ref LandEvent args)
{
RemCompDeferred<IgniteOnCollideComponent>(uid);
Expand Down Expand Up @@ -454,6 +461,31 @@ public override void Update(float frameTime)
Extinguish(uid, flammable);
}
}

var playerQuery = EntityQueryEnumerator<HandsComponent>();
while (playerQuery.MoveNext(out var playerUid, out var handsComponent))
{
if (!HasComp<JellidComponent>(playerUid))
{
continue;
}

if (handsComponent.ActiveHand?.HeldEntity is not EntityUid heldItem)
{
continue;
}

if (!TryComp<FlammableComponent>(heldItem, out var flammable))
{
continue;
}

AdjustFireStacks(heldItem, flammable.FireStacks, flammable);
if (flammable.FireStacks >= 0)
{
Ignite(heldItem, heldItem, flammable, playerUid);
}
}
}
}
}
Loading
Loading