// SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com> // SPDX-FileCopyrightText: 2025 Aviu00 <93730715+Aviu00@users.noreply.github.com> // SPDX-FileCopyrightText: 2025 Misandry // SPDX-FileCopyrightText: 2025 gus // // SPDX-License-Identifier: AGPL-3.0-or-later using Robust.Shared.GameStates; namespace Content.Shared._Shitcode.Wizard.Projectiles; [RegisterComponent, NetworkedComponent, AutoGenerateComponentState] public sealed partial class HomingProjectileComponent : Component { [ViewVariables(VVAccess.ReadOnly), AutoNetworkedField] public EntityUid? Target; [DataField, AutoNetworkedField] public float? HomingSpeed = 720f; [DataField] public Angle Tolerance = Angle.FromDegrees(1); /// /// The less this value is, the smoother homing will be, but also more laggy. /// Changing this also changes homing speed, so you need to tweak datafield. /// [DataField] public float HomingTime = 0.1f; [ViewVariables(VVAccess.ReadOnly)] public float HomingAccumulator; }