Add alt click to hands (#12330)

This commit is contained in:
Jacob Tong
2022-11-03 18:36:45 -07:00
committed by GitHub
parent 88a4ee0ce1
commit 74b63e83fd
4 changed files with 43 additions and 4 deletions

View File

@@ -242,6 +242,16 @@ namespace Content.Client.Hands.Systems
_verbs.VerbMenu.OpenVerbMenu(entity);
}
public void UIHandAltActivateItem(string handName)
{
if (!TryGetPlayerHands(out var hands)
|| !hands.Hands.TryGetValue(handName, out var hand)
|| hand.HeldEntity is not { Valid: true } entity)
return;
EntityManager.RaisePredictiveEvent(new RequestHandAltInteractEvent(entity));
}
#region visuals