Voice mask fixes (#11638)
This commit is contained in:
@@ -103,7 +103,7 @@ namespace Content.Server.Clothing
|
||||
identity.Enabled = !mask.IsToggled;
|
||||
|
||||
// toggle voice masking
|
||||
if (TryComp<VoiceMaskComponent>(uid, out var voiceMask))
|
||||
if (TryComp<VoiceMaskComponent>(wearer, out var voiceMask))
|
||||
voiceMask.Enabled = !mask.IsToggled;
|
||||
|
||||
// toggle breath tool connection (skip during equip since that is handled in LungSystem)
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace Content.Server.Headset
|
||||
|
||||
if (_entMan.TryGetComponent(source, out VoiceMaskComponent? mask) && mask.Enabled)
|
||||
{
|
||||
name = Identity.Name(source, _entMan);
|
||||
name = mask.VoiceName;
|
||||
}
|
||||
|
||||
message = _chatSystem.TransformSpeech(source, message);
|
||||
|
||||
Reference in New Issue
Block a user