-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent admin-frozen players from ghosting or suiciding, add "Freeze …
…And Mute" verb (#27813) * prevent admin-frozen players from ghosting or suiciding * Add "Freeze and Mute" admin verb * Allow "Freeze And Mute" admin verb when player is already frozen but not muted * Remove redundant scream handler (scream action just emotes, duh) * AdminFrozenSystem: clean imports * Update Content.Server/Chat/Commands/SuicideCommand.cs Co-authored-by: metalgearsloth <[email protected]> * Update Ghost.cs * retrigger ci (empty commit) --------- Co-authored-by: metalgearsloth <[email protected]>
- Loading branch information
1 parent
a17c28a
commit e061b5e
Showing
10 changed files
with
123 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using Content.Shared.Administration; | ||
|
||
namespace Content.Client.Administration.Systems; | ||
|
||
public sealed class AdminFrozenSystem : SharedAdminFrozenSystem | ||
{ | ||
} |
16 changes: 16 additions & 0 deletions
16
Content.Server/Administration/Systems/AdminFrozenSystem.cs
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,16 @@ | ||
using Content.Shared.Administration; | ||
|
||
namespace Content.Server.Administration.Systems; | ||
|
||
public sealed class AdminFrozenSystem : SharedAdminFrozenSystem | ||
{ | ||
/// <summary> | ||
/// Freezes and mutes the given entity. | ||
/// </summary> | ||
public void FreezeAndMute(EntityUid uid) | ||
{ | ||
var comp = EnsureComp<AdminFrozenComponent>(uid); | ||
comp.Muted = true; | ||
Dirty(uid, comp); | ||
} | ||
} |
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 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,5 @@ | ||
ghost-command-description = Give up on life and become a ghost. | ||
ghost-command-help-text = The ghost command turns you into a ghost and makes the character you played permanently catatonic. | ||
Please note that you cannot return to your character's body after ghosting. | ||
ghost-command-no-session = You have no session, you can't ghost. | ||
ghost-command-denied = You cannot ghost right now. |
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