mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 16:47:26 +00:00
* 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>
25 lines
905 B
C#
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;
|
|
}
|