hands ECS (#7081)
This commit is contained in:
@@ -70,16 +70,8 @@ public sealed partial class GunSystem
|
||||
if (TakeAmmo(component) is not {Valid: true} ammo)
|
||||
return;
|
||||
|
||||
var itemComponent = EntityManager.GetComponent<SharedItemComponent>(ammo);
|
||||
if (!handsComponent.CanPutInHand(itemComponent))
|
||||
{
|
||||
Transform(ammo).Coordinates = Transform(args.User).Coordinates;
|
||||
EjectCasing(ammo);
|
||||
}
|
||||
else
|
||||
{
|
||||
handsComponent.PutInHand(itemComponent);
|
||||
}
|
||||
_handsSystem.PickupOrDrop(args.User, ammo, handsComp: handsComponent);
|
||||
EjectCasing(ammo);
|
||||
|
||||
args.Handled = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user