Files
Delta-v/Content.Server/_DV/StationEvents/Components/AntiMeteorZoneStandardRateComponent.cs
T
Charlie Morleyandpre-commit-ci[bot] 14f6ebbd14 Protect arrivals and evac from meteors (slightly) (#4820)
* Protect arrivals and evac from meteors (slightly)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* change meteor protection zone to a MarkerBase

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-12-08 08:41:56 -06:00

25 lines
905 B
C#

using Content.Server.StationEvents.Events;
namespace Content.Server.StationEvents.Components;
/// <summary>
/// DeltaV - Prohibits meteor swarms from targeting their impact near this component.
/// Standardized avoidance rate; cannot be changed in View Variables.
/// </summary>
[RegisterComponent]
public sealed partial class AntiMeteorZoneStandardRateComponent : Component
{
/// <summary>
/// The size of the area around this entity to avoid.
/// </summary>
[DataField]
public float ZoneRadius = 5f;
/// <summary>
/// Percentage (roughly) of meteors that are BLOCKED from hitting near this component.
/// Standardized avoidance rate; cannot be changed in View Variables.
/// </summary>
[DataField, ViewVariables(VVAccess.ReadOnly)] // I tried to inherit AntiMeteorZoneComponent, but this VVAccess wouldn't take effect
public float AvoidanceRate = 0.75f;
}