-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into wall-locker-ops
Signed-off-by: boogiebogus <[email protected]>
- Loading branch information
Showing
503 changed files
with
10,999 additions
and
4,607 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// Credits: | ||
// This code was originally created by DebugOk, deltanedas, and NullWanderer for DeltaV. | ||
// Available at https://github.com/DebugOk/Delta-v/blob/master/Content.Server/DeltaV/RoundEnd/RoundEndSystem.Pacified.cs | ||
// Original PR: https://github.com/DeltaV-Station/Delta-v/pull/350 | ||
// Modified by FluffMe on 12.10.2024 with no major changes except the Namespaces and the CVar name. | ||
// Modified and moved by youtissoum on 04.01.2025 to turn into a command. | ||
using Content.Server.Administration; | ||
using Content.Server.Explosion.Components; // DeltaV | ||
using Content.Shared.Administration; | ||
using Content.Shared.CombatMode; | ||
using Content.Shared.CombatMode.Pacification; | ||
using Content.Shared.Explosion.Components; | ||
using Content.Shared.Flash.Components; | ||
using Content.Shared.Store.Components; | ||
using Robust.Shared.Console; | ||
|
||
namespace Content.Server._Harmony.RoundEnd; | ||
|
||
[AdminCommand(AdminFlags.Admin)] | ||
public sealed class PacifyAllCommand : IConsoleCommand | ||
{ | ||
[Dependency] private readonly IEntityManager _entityManager = default!; | ||
|
||
public string Command => "pacifyall"; | ||
public string Description => "Pacify all players permanently."; | ||
public string Help => string.Empty; | ||
|
||
public void Execute(IConsoleShell shell, string argStr, string[] args) | ||
{ | ||
var harmQuery = _entityManager.EntityQueryEnumerator<CombatModeComponent>(); | ||
while (harmQuery.MoveNext(out var uid, out _)) | ||
{ | ||
_entityManager.EnsureComponent<PacifiedComponent>(uid); | ||
} | ||
|
||
var explosiveQuery = _entityManager.EntityQueryEnumerator<ExplosiveComponent>(); | ||
while (explosiveQuery.MoveNext(out var uid, out _)) | ||
{ | ||
_entityManager.RemoveComponent<ExplosiveComponent>(uid); | ||
} | ||
|
||
var grenadeQuery = _entityManager.EntityQueryEnumerator<OnUseTimerTriggerComponent>(); | ||
while (grenadeQuery.MoveNext(out var uid, out _)) | ||
{ | ||
_entityManager.RemoveComponent<OnUseTimerTriggerComponent>(uid); | ||
} | ||
|
||
var flashQuery = _entityManager.EntityQueryEnumerator<FlashComponent>(); | ||
while (flashQuery.MoveNext(out var uid, out _)) | ||
{ | ||
_entityManager.RemoveComponent<FlashComponent>(uid); | ||
} | ||
|
||
var uplinkQuery = _entityManager.EntityQueryEnumerator<StoreComponent>(); | ||
while (uplinkQuery.MoveNext(out var uid, out _)) | ||
{ | ||
_entityManager.RemoveComponent<StoreComponent>(uid); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Robust.Shared.GameStates; | ||
|
||
namespace Content.Shared._DV.Surgery; | ||
|
||
/// <summary> | ||
/// Exists for use as a status effect. Allows surgical operations to not cause immense pain. | ||
/// </summary> | ||
[RegisterComponent, NetworkedComponent] | ||
public sealed partial class AnesthesiaComponent : Component; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Robust.Shared.GameStates; | ||
|
||
namespace Content.Shared._DV.Traits.Assorted; | ||
|
||
/// <summary> | ||
/// This is used for the unborgable trait, which blacklists a brain from MMIs. | ||
/// If this is added to a body, it gets moved to its brain if it has one. | ||
/// </summary> | ||
[RegisterComponent, NetworkedComponent] | ||
public sealed partial class UnborgableComponent : Component; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
using Content.Shared.Body.Components; | ||
using Content.Shared.Body.Organ; | ||
using Content.Shared.Body.Systems; | ||
using Content.Shared.Examine; | ||
using Content.Shared.Movement.Components; // TODO: use BrainComponent instead of InputMover when shitmed is merged | ||
using Robust.Shared.Utility; | ||
|
||
namespace Content.Shared._DV.Traits.Assorted; | ||
|
||
/// <summary> | ||
/// Adds a warning examine message to brains with <see cref="UnborgableComponent"/>. | ||
/// </summary> | ||
public sealed class UnborgableSystem : EntitySystem | ||
{ | ||
[Dependency] private readonly SharedBodySystem _body = default!; | ||
|
||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<UnborgableComponent, MapInitEvent>(OnMapInit); | ||
SubscribeLocalEvent<UnborgableComponent, ExaminedEvent>(OnExamined); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if a mob's brain has <see cref="UnborgableComponent"/>. | ||
/// </summary> | ||
public bool IsUnborgable(Entity<BodyComponent?> ent) | ||
{ | ||
// technically this will apply for any organ not just brain, but assume nobody will be evil and do that | ||
return _body.GetBodyOrganEntityComps<UnborgableComponent>(ent).Count > 0; | ||
} | ||
|
||
private void OnMapInit(Entity<UnborgableComponent> ent, ref MapInitEvent args) | ||
{ | ||
if (!TryComp<BodyComponent>(ent, out var body)) | ||
return; | ||
|
||
var brains = _body.GetBodyOrganEntityComps<InputMoverComponent>((ent.Owner, body)); | ||
foreach (var brain in brains) | ||
{ | ||
EnsureComp<UnborgableComponent>(brain); | ||
} | ||
} | ||
|
||
private void OnExamined(Entity<UnborgableComponent> ent, ref ExaminedEvent args) | ||
{ | ||
// need a health analyzer to see if someone can't be borged, can't just look at them and know | ||
if (!args.IsInDetailsRange || HasComp<BodyComponent>(ent)) | ||
return; | ||
|
||
args.PushMarkup(Loc.GetString("brain-cannot-be-borged-message")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- files: ["reptillian_hiss1.ogg"] | ||
license: "CC-BY-SA-3.0" | ||
copyright: "Taken from https://github.com/ss220-space/Paradise/commit/6572a5f522e32cb5e0af7fb3ca3e45a725e2e992. Downmixed to 1 channel, volume edited" | ||
source: "https://github.com/ss220-space/Paradise/blob/4bbfb9eb00771b3fae7108fca1a1ba5879926e3e/sound/effects/unathihiss.ogg" |
Binary file not shown.
Oops, something went wrong.