* Implement crucial chef's hat functionality * Unified stopping code and added events. * Added documentation to events * Rerun tests * Made review changes, and fixed potential desync bug. * Update whitelist
20 lines
526 B
C#
20 lines
526 B
C#
using Content.Shared.Clothing.Components;
|
|
using Robust.Client.Physics;
|
|
|
|
namespace Content.Client.Clothing.Systems;
|
|
|
|
public sealed partial class PilotedByClothingSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<PilotedByClothingComponent, UpdateIsPredictedEvent>(OnUpdatePredicted);
|
|
}
|
|
|
|
private void OnUpdatePredicted(Entity<PilotedByClothingComponent> entity, ref UpdateIsPredictedEvent args)
|
|
{
|
|
args.BlockPrediction = true;
|
|
}
|
|
}
|