PilotedByClothingSystem.cs 526 B

12345678910111213141516171819
  1. using Content.Shared.Clothing.Components;
  2. using Robust.Client.Physics;
  3. namespace Content.Client.Clothing.Systems;
  4. public sealed partial class PilotedByClothingSystem : EntitySystem
  5. {
  6. public override void Initialize()
  7. {
  8. base.Initialize();
  9. SubscribeLocalEvent<PilotedByClothingComponent, UpdateIsPredictedEvent>(OnUpdatePredicted);
  10. }
  11. private void OnUpdatePredicted(Entity<PilotedByClothingComponent> entity, ref UpdateIsPredictedEvent args)
  12. {
  13. args.BlockPrediction = true;
  14. }
  15. }