Items are now dropped at the pointer location if the pointer is withing the interaction range. Previously the dropped item was always placed at the player entity location.
Resolves https://github.com/space-wizards/space-station-14/issues/235.
This commit is contained in:
@@ -109,7 +109,15 @@ namespace Content.Server.GameObjects.EntitySystems
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
handsComp.Drop(handsComp.ActiveIndex);
|
|
||||||
|
if (coords.InRange(_mapManager, ent.Transform.GridPosition, InteractionSystem.InteractionRange))
|
||||||
|
{
|
||||||
|
handsComp.Drop(handsComp.ActiveIndex, coords);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
handsComp.Drop(handsComp.ActiveIndex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void HandleActivateItem(ICommonSession session)
|
private static void HandleActivateItem(ICommonSession session)
|
||||||
|
|||||||
Reference in New Issue
Block a user