* 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 <31366439+metalgearsloth@users.noreply.github.com> * Update Ghost.cs * retrigger ci (empty commit) --------- Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
17 lines
408 B
C#
17 lines
408 B
C#
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);
|
|
}
|
|
}
|