CatStation/Content.Shared/Vehicle/Components/VehicleHandBlockerComponent.cs
AndrewFenriz d2472f82ed
Hand blocker for vehicles (and mechs) (#45045)
* add BlockHands

* and mechs

* move to another place

* small fix

* TrySpawnUnremoveableVirtualItemInHand

* upd

* fix docs

* VehicleHandBlockerComponent
2026-07-31 17:48:40 +00:00

18 lines
533 B
C#

using Content.Shared.Vehicle.Systems;
using Robust.Shared.GameStates;
namespace Content.Shared.Vehicle.Components;
/// <summary>
/// Occupies the operator's hands while they are operating a vehicle.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(VehicleSystem))]
public sealed partial class VehicleHandBlockerComponent : Component
{
/// <summary>
/// The number of hands to occupy.
/// </summary>
[DataField, AutoNetworkedField]
public int BlockedHands = 1;
}