diff --git a/Content.Client/AI/ClientAiDebugSystem.cs b/Content.Client/AI/ClientAiDebugSystem.cs index 81a81b4fe9..74a5e20d96 100644 --- a/Content.Client/AI/ClientAiDebugSystem.cs +++ b/Content.Client/AI/ClientAiDebugSystem.cs @@ -68,6 +68,7 @@ namespace Content.Client.AI public override void Initialize() { base.Initialize(); + UpdatesOutsidePrediction = true; SubscribeNetworkEvent(HandleUtilityAiDebugMessage); SubscribeNetworkEvent(HandleAStarRouteMessage); SubscribeNetworkEvent(HandleJpsRouteMessage); diff --git a/Content.Client/Audio/AmbientSoundSystem.cs b/Content.Client/Audio/AmbientSoundSystem.cs index f524b7b020..de275387d9 100644 --- a/Content.Client/Audio/AmbientSoundSystem.cs +++ b/Content.Client/Audio/AmbientSoundSystem.cs @@ -42,6 +42,7 @@ namespace Content.Client.Audio public override void Initialize() { base.Initialize(); + UpdatesOutsidePrediction = true; var configManager = IoCManager.Resolve(); configManager.OnValueChanged(CCVars.AmbientCooldown, SetCooldown, true); configManager.OnValueChanged(CCVars.MaxAmbientSources, SetAmbientCount, true); diff --git a/Content.Client/ContextMenu/UI/EntityMenuPresenter.cs b/Content.Client/ContextMenu/UI/EntityMenuPresenter.cs index f3cf7c3e88..cc2f22831a 100644 --- a/Content.Client/ContextMenu/UI/EntityMenuPresenter.cs +++ b/Content.Client/ContextMenu/UI/EntityMenuPresenter.cs @@ -63,7 +63,7 @@ namespace Content.Client.ContextMenu.UI _cfg.OnValueChanged(CCVars.EntityMenuGroupingType, OnGroupingChanged, true); CommandBinds.Builder - .Bind(ContentKeyFunctions.OpenContextMenu, new PointerInputCmdHandler(HandleOpenEntityMenu)) + .Bind(ContentKeyFunctions.OpenContextMenu, new PointerInputCmdHandler(HandleOpenEntityMenu, outsidePrediction: true)) .Register(); } diff --git a/Content.Client/DoAfter/DoAfterSystem.cs b/Content.Client/DoAfter/DoAfterSystem.cs index f8c4156aef..76a6e6bafe 100644 --- a/Content.Client/DoAfter/DoAfterSystem.cs +++ b/Content.Client/DoAfter/DoAfterSystem.cs @@ -37,6 +37,7 @@ namespace Content.Client.DoAfter public override void Initialize() { base.Initialize(); + UpdatesOutsidePrediction = true; SubscribeLocalEvent(HandlePlayerAttached); } diff --git a/Content.Client/Doors/DoorSystem.cs b/Content.Client/Doors/DoorSystem.cs index a0a1e20423..57888b194b 100644 --- a/Content.Client/Doors/DoorSystem.cs +++ b/Content.Client/Doors/DoorSystem.cs @@ -21,6 +21,8 @@ namespace Content.Client.Doors { base.Initialize(); + UpdatesOutsidePrediction = true; + SubscribeLocalEvent(OnDoorStateChanged); } diff --git a/Content.Client/DragDrop/DragDropSystem.cs b/Content.Client/DragDrop/DragDropSystem.cs index 3ebef14401..1809f6438c 100644 --- a/Content.Client/DragDrop/DragDropSystem.cs +++ b/Content.Client/DragDrop/DragDropSystem.cs @@ -77,6 +77,8 @@ namespace Content.Client.DragDrop public override void Initialize() { + UpdatesOutsidePrediction = true; + _dragDropHelper = new DragDropHelper(OnBeginDrag, OnContinueDrag, OnEndDrag); _dropTargetInRangeShader = _prototypeManager.Index(ShaderDropTargetInRange).Instance(); diff --git a/Content.Client/Examine/ExamineSystem.cs b/Content.Client/Examine/ExamineSystem.cs index d3c3c90eaa..564a901769 100644 --- a/Content.Client/Examine/ExamineSystem.cs +++ b/Content.Client/Examine/ExamineSystem.cs @@ -41,10 +41,12 @@ namespace Content.Client.Examine { IoCManager.InjectDependencies(this); + UpdatesOutsidePrediction = true; + SubscribeLocalEvent(AddExamineVerb); CommandBinds.Builder - .Bind(ContentKeyFunctions.ExamineEntity, new PointerInputCmdHandler(HandleExamine)) + .Bind(ContentKeyFunctions.ExamineEntity, new PointerInputCmdHandler(HandleExamine, outsidePrediction: true)) .Register(); } @@ -72,21 +74,21 @@ namespace Content.Client.Examine return base.CanExamine(examiner, target, predicate); } - private bool HandleExamine(ICommonSession? session, EntityCoordinates coords, EntityUid entity) + private bool HandleExamine(in PointerInputCmdHandler.PointerInputCmdArgs args) { - if (!entity.IsValid() || !EntityManager.EntityExists(entity)) + if (!args.EntityUid.IsValid() || !EntityManager.EntityExists(args.EntityUid)) { return false; } _playerEntity = _playerManager.LocalPlayer?.ControlledEntity ?? default; - if (_playerEntity == default || !CanExamine(_playerEntity, entity)) + if (_playerEntity == default || !CanExamine(_playerEntity, args.EntityUid)) { return false; } - DoExamine(entity); + DoExamine(args.EntityUid); return true; } diff --git a/Content.Client/Instruments/InstrumentSystem.cs b/Content.Client/Instruments/InstrumentSystem.cs index 13f8c982f2..3d58408484 100644 --- a/Content.Client/Instruments/InstrumentSystem.cs +++ b/Content.Client/Instruments/InstrumentSystem.cs @@ -38,6 +38,8 @@ namespace Content.Client.Instruments { base.Initialize(); + UpdatesOutsidePrediction = true; + _cfg.OnValueChanged(CCVars.MaxMidiEventsPerBatch, OnMaxMidiEventsPerBatchChanged, true); _cfg.OnValueChanged(CCVars.MaxMidiEventsPerSecond, OnMaxMidiEventsPerSecondChanged, true); diff --git a/Content.Client/Light/RgbLightControllerSystem.cs b/Content.Client/Light/RgbLightControllerSystem.cs index 59fbfe62b9..55dd5ab7aa 100644 --- a/Content.Client/Light/RgbLightControllerSystem.cs +++ b/Content.Client/Light/RgbLightControllerSystem.cs @@ -13,6 +13,13 @@ namespace Content.Client.Light { [Dependency] private IGameTiming _gameTiming = default!; + public override void Initialize() + { + base.Initialize(); + + UpdatesOutsidePrediction = true; + } + public override void Update(float frameTime) { base.Update(frameTime); diff --git a/Content.Client/SubFloor/TrayScannerSystem.cs b/Content.Client/SubFloor/TrayScannerSystem.cs index d350585af1..061533d15e 100644 --- a/Content.Client/SubFloor/TrayScannerSystem.cs +++ b/Content.Client/SubFloor/TrayScannerSystem.cs @@ -21,6 +21,8 @@ public class TrayScannerSystem : SharedTrayScannerSystem { base.Initialize(); + UpdatesOutsidePrediction = true; + SubscribeLocalEvent(OnComponentShutdown); } diff --git a/Content.Client/Tabletop/TabletopSystem.cs b/Content.Client/Tabletop/TabletopSystem.cs index bf400df408..0a979ede9c 100644 --- a/Content.Client/Tabletop/TabletopSystem.cs +++ b/Content.Client/Tabletop/TabletopSystem.cs @@ -43,6 +43,8 @@ namespace Content.Client.Tabletop public override void Initialize() { + UpdatesOutsidePrediction = true; + CommandBinds.Builder .Bind(EngineKeyFunctions.Use, new PointerInputCmdHandler(OnUse, false)) .Register(); diff --git a/Content.Client/Verbs/VerbSystem.cs b/Content.Client/Verbs/VerbSystem.cs index 5ba5a07571..a557078d7e 100644 --- a/Content.Client/Verbs/VerbSystem.cs +++ b/Content.Client/Verbs/VerbSystem.cs @@ -51,6 +51,8 @@ namespace Content.Client.Verbs { base.Initialize(); + UpdatesOutsidePrediction = true; + SubscribeNetworkEvent(Reset); SubscribeNetworkEvent(HandleVerbResponse); diff --git a/Content.Client/Weapons/Ranged/RangedWeaponSystem.cs b/Content.Client/Weapons/Ranged/RangedWeaponSystem.cs index 542ccadaae..4728dbc3a1 100644 --- a/Content.Client/Weapons/Ranged/RangedWeaponSystem.cs +++ b/Content.Client/Weapons/Ranged/RangedWeaponSystem.cs @@ -29,6 +29,13 @@ namespace Content.Client.Weapons.Ranged private bool _blocked; private int _shotCounter; + public override void Initialize() + { + base.Initialize(); + + UpdatesOutsidePrediction = true; + } + public override void Update(float frameTime) { base.Update(frameTime); diff --git a/Content.Shared/Actions/SharedActionSystem.cs b/Content.Shared/Actions/SharedActionSystem.cs index 114907c12f..b03c17d38d 100644 --- a/Content.Shared/Actions/SharedActionSystem.cs +++ b/Content.Shared/Actions/SharedActionSystem.cs @@ -11,6 +11,12 @@ namespace Content.Shared.Actions private const float CooldownCheckIntervalSeconds = 10; private float _timeSinceCooldownCheck; + public override void Initialize() + { + base.Initialize(); + + UpdatesOutsidePrediction = true; + } public override void Update(float frameTime) { diff --git a/Content.Shared/Chemistry/MetabolismMovespeedModifierSystem.cs b/Content.Shared/Chemistry/MetabolismMovespeedModifierSystem.cs index 7ad749954f..7f76bde473 100644 --- a/Content.Shared/Chemistry/MetabolismMovespeedModifierSystem.cs +++ b/Content.Shared/Chemistry/MetabolismMovespeedModifierSystem.cs @@ -23,6 +23,8 @@ namespace Content.Shared.Chemistry { base.Initialize(); + UpdatesOutsidePrediction = true; + SubscribeLocalEvent(OnMovespeedHandleState); SubscribeLocalEvent(AddComponent); SubscribeLocalEvent(OnRefreshMovespeed); diff --git a/Content.Shared/Movement/EntitySystems/MovementSpeedModifierSystem.cs b/Content.Shared/Movement/EntitySystems/MovementSpeedModifierSystem.cs index 856a58cb4c..d781f1a625 100644 --- a/Content.Shared/Movement/EntitySystems/MovementSpeedModifierSystem.cs +++ b/Content.Shared/Movement/EntitySystems/MovementSpeedModifierSystem.cs @@ -25,6 +25,7 @@ namespace Content.Shared.Movement.EntitySystems public override void Initialize() { base.Initialize(); + UpdatesOutsidePrediction = true; SubscribeLocalEvent(OnGetState); SubscribeLocalEvent(OnHandleState); } diff --git a/Content.Shared/Pulling/Systems/SharedPullingSystem.cs b/Content.Shared/Pulling/Systems/SharedPullingSystem.cs index 1ed7422f75..5223200464 100644 --- a/Content.Shared/Pulling/Systems/SharedPullingSystem.cs +++ b/Content.Shared/Pulling/Systems/SharedPullingSystem.cs @@ -56,6 +56,8 @@ namespace Content.Shared.Pulling { base.Initialize(); + UpdatesOutsidePrediction = true; + SubscribeLocalEvent(Reset); SubscribeLocalEvent(OnPullStarted); SubscribeLocalEvent(OnPullStopped); diff --git a/Content.Shared/Slippery/SharedSlipperySystem.cs b/Content.Shared/Slippery/SharedSlipperySystem.cs index cf8d4240ff..7d8046e5fe 100644 --- a/Content.Shared/Slippery/SharedSlipperySystem.cs +++ b/Content.Shared/Slippery/SharedSlipperySystem.cs @@ -26,6 +26,9 @@ namespace Content.Shared.Slippery public override void Initialize() { base.Initialize(); + + UpdatesOutsidePrediction = true; + SubscribeLocalEvent(HandleCollide); SubscribeLocalEvent(OnNoSlipAttempt); } diff --git a/Content.Shared/StatusEffect/StatusEffectsSystem.cs b/Content.Shared/StatusEffect/StatusEffectsSystem.cs index d724056d5c..db296706c1 100644 --- a/Content.Shared/StatusEffect/StatusEffectsSystem.cs +++ b/Content.Shared/StatusEffect/StatusEffectsSystem.cs @@ -20,6 +20,8 @@ namespace Content.Shared.StatusEffect { base.Initialize(); + UpdatesOutsidePrediction = true; + SubscribeLocalEvent(OnGetState); SubscribeLocalEvent(OnHandleState); }