Files
wwdpublic/Content.Server/_Goobstation/Teleportation/Components/PocketDimensionComponent.cs
EctoplasmIsGood 344d24b05b Uplink Item Ports (#2128)
<!--
This is a semi-strict format, you can add/remove sections as needed but
the order/format should be kept the same
Remove these comments before submitting
-->

# Description

<!--
Explain this PR in as much detail as applicable

Some example prompts to consider:
How might this affect the game? The codebase?
What might be some alternatives to this?
How/Who does this benefit/hurt [the game/codebase]?
-->

Ports over a few items from Goob LRP, those being the dualettas, the
anaconda, and the pocket dimension plant pot

<!--
This is default collapsed, readers click to expand it and see all your
media
The PR media section can get very large at times, so this is a good way
to keep it clean
The title is written using HTML tags
The title must be within the <summary> tags or you won't see it
-->

<details><summary><h1>Media</h1></summary>
<p>

https://github.com/user-attachments/assets/72f66056-7eb1-4c93-92f5-d35ad4fcaf01

</p>
</details>

---

# Changelog

<!--
You can add an author after the `🆑` to change the name that appears
in the changelog (ex: `🆑 Death`)
Leaving it blank will default to your GitHub display name
This includes all available types for the changelog
-->

🆑
- add: Added the dualettas, two stylish pistols that can be dual wielded
- add: Added the anaconda, a robust syndicate handcannon that
automatically generates ammo
- add: Added the Pocket Dimension Plant, a normal looking potted plant
that actually has a pocket dimension linked to it

---------

Signed-off-by: EctoplasmIsGood <109397347+EctoplasmIsGood@users.noreply.github.com>
Co-authored-by: Your Name <EctoplasmIsGood@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Aviu00 <93730715+Aviu00@users.noreply.github.com>
Co-authored-by: Piras314 <p1r4s@proton.me>

(cherry picked from commit 0c4803719b27dab144373600b62bb1048affe53e)
2025-04-04 14:31:20 +03:00

58 lines
1.8 KiB
C#

using Content.Server.Teleportation;
using Robust.Shared.Audio;
using Robust.Shared.Map;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.Utility;
namespace Content.Server.Teleportation;
/// <summary>
/// Creates a map for a pocket dimension on spawn.
/// When activated by alt verb, spawns a portal to this dimension or closes it.
/// </summary>
[RegisterComponent]
[Access(typeof(PocketDimensionSystem))]
public sealed partial class PocketDimensionComponent : Component
{
/// <summary>
/// Whether this pocket dimension portal is enabled.
/// </summary>
[ViewVariables]
public bool PortalEnabled = false;
/// <summary>
/// The portal in the pocket dimension. Created when the entry portal is first opened.
/// </summary>
[ViewVariables]
public EntityUid? ExitPortal;
/// <summary>
/// The pocket dimension map. Created when the entry portal is first opened.
/// </summary>
[ViewVariables]
public EntityUid? PocketDimensionMap;
/// <summary>
/// Path to the pocket dimension's map file
/// </summary>
[DataField]
public ResPath PocketDimensionPath = new ResPath("/Maps/_Goobstation/Nonstations/pocket-dimension.yml");
/// <summary>
/// The prototype to spawn for the portal spawned in the pocket dimension.
/// </summary>
[DataField]
public EntProtoId ExitPortalPrototype = "PortalBlue";
[DataField]
public SoundSpecifier OpenPortalSound = new SoundPathSpecifier("/Audio/Machines/high_tech_confirm.ogg")
{
Params = AudioParams.Default.WithVolume(-2f)
};
[DataField]
public SoundSpecifier ClosePortalSound = new SoundPathSpecifier("/Audio/Machines/button.ogg");
}