Move cuffs to users hand when removed (#8862)
* move cuffs to users hand when removed * review Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -245,9 +245,7 @@ namespace Content.Server.Cuffs.Components
|
||||
SoundSystem.Play(cuff.EndUncuffSound.GetSound(), Filter.Pvs(Owner), Owner);
|
||||
|
||||
Container.ForceRemove(cuffsToRemove.Value);
|
||||
var transform = _entMan.GetComponent<TransformComponent>(cuffsToRemove.Value);
|
||||
transform.AttachToGridOrMap();
|
||||
transform.WorldPosition = _entMan.GetComponent<TransformComponent>(Owner).WorldPosition;
|
||||
_entMan.EntitySysManager.GetEntitySystem<SharedHandsSystem>().PickupOrDrop(user, cuffsToRemove.Value);
|
||||
|
||||
if (cuff.BreakOnRemove)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user