mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-02 17:17:25 +00:00
* or your debil * Woop * Whoops, Missed this * Whoops, Suicide System * Hush... Extended tests... Hush * AAAAAA * No-longer jaunt whilst dead * :) * Update Content.Shared/_Lavaland/Chasm/PreventChasmFallingSystem.cs Co-authored-by: Tobias Berger <toby@tobot.dev> Signed-off-by: William Lemon <William.Lemon2@gmail.com> * Update Content.Server/_Goobstation/Possession/PossessionSystem.cs Co-authored-by: Tobias Berger <toby@tobot.dev> Signed-off-by: William Lemon <William.Lemon2@gmail.com> * Please tobysenpai forgive me --------- Signed-off-by: William Lemon <William.Lemon2@gmail.com> Co-authored-by: Tobias Berger <toby@tobot.dev>
69 lines
1.7 KiB
C#
69 lines
1.7 KiB
C#
// SPDX-FileCopyrightText: 2025 GoobBot <uristmchands@proton.me>
|
|
// SPDX-FileCopyrightText: 2025 Solstice <solsticeofthewinter@gmail.com>
|
|
// SPDX-FileCopyrightText: 2025 SolsticeOfTheWinter <solsticeofthewinter@gmail.com>
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
using Content.Shared.Actions;
|
|
using Content.Shared.Actions.Components;
|
|
using Content.Shared.Mind;
|
|
using Content.Shared.Polymorph;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.Containers;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server._Goobstation.Possession;
|
|
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class PossessedComponent : Component
|
|
{
|
|
[ViewVariables]
|
|
public EntityUid OriginalMindId;
|
|
|
|
[ViewVariables]
|
|
public EntityUid OriginalEntity;
|
|
|
|
[ViewVariables]
|
|
public EntityUid PossessorMindId;
|
|
|
|
[ViewVariables]
|
|
public EntityUid PossessorOriginalEntity;
|
|
|
|
[ViewVariables]
|
|
public TimeSpan PossessionEndTime;
|
|
|
|
[ViewVariables]
|
|
public TimeSpan PossessionTimeRemaining;
|
|
|
|
[ViewVariables]
|
|
public bool WasPacified;
|
|
|
|
[ViewVariables]
|
|
public bool WasWeakToHoly;
|
|
|
|
[ViewVariables]
|
|
public Container PossessedContainer;
|
|
|
|
[DataField]
|
|
public EntProtoId<ActionComponent> EndPossessionAction = "ActionEndPossession";
|
|
|
|
[DataField]
|
|
public bool HideActions = true;
|
|
|
|
[ViewVariables]
|
|
public EntityUid? ActionEntity = null;
|
|
|
|
[ViewVariables]
|
|
public EntityUid[] HiddenActions;
|
|
|
|
[DataField]
|
|
public bool PolymorphEntity = true;
|
|
|
|
[DataField]
|
|
public ProtoId<PolymorphPrototype> Polymorph = new ("ShadowJauntPermanent");
|
|
|
|
[ViewVariables]
|
|
public readonly SoundPathSpecifier PossessionSoundPath = new ("/Audio/_Goobstation/Effects/bone_crack.ogg");
|
|
}
|