Files
OldThink/Content.Server/_White/Trail/TrailComponent.cs
Aviu00 9d1c014938 Вернуть трейлы от пуль (#270)
* - add: Bring back bullet trails.

* - add: Cvar, thinner trails.

* - add: Add option.
2024-06-04 14:00:48 +03:00

55 lines
1.8 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.Numerics;
using Content.Shared._White.Spline;
using Content.Shared._White.Trail;
using Vector4 = Robust.Shared.Maths.Vector4;
namespace Content.Server._White.Trail;
[RegisterComponent]
public sealed partial class TrailComponent : SharedTrailComponent
{
public TrailComponent()
{
var defaultTrail = TrailSettings.Default;
Scale = defaultTrail.Scale;
СreationDistanceThresholdSquared = defaultTrail.СreationDistanceThresholdSquared;
СreationMethod = defaultTrail.СreationMethod;
CreationOffset = defaultTrail.CreationOffset;
Gravity = defaultTrail.Gravity;
MaxRandomWalk = defaultTrail.MaxRandomWalk;
Lifetime = defaultTrail.Lifetime;
TexurePath = defaultTrail.TexurePath;
Gradient = defaultTrail.Gradient;
GradientIteratorType = defaultTrail.GradientIteratorType;
OptionsConcealable = defaultTrail.OptionsConcealable;
}
public override Vector2 Gravity { get; set; }
public override float Lifetime { get; set; }
public override Vector2 MaxRandomWalk { get; set; }
public override Vector2 Scale { get; set; }
public override string? TexurePath { get; set; }
public override Vector2 CreationOffset { get; set; }
public override float СreationDistanceThresholdSquared { get; set; }
public override SegmentCreationMethod СreationMethod { get; set; }
public override Vector4[] Gradient { get; set; }
public override float LengthStep { get; set; }
public override Spline2DType SplineIteratorType { get; set; }
public override TrailSplineRendererType SplineRendererType { get; set; }
public override Spline4DType GradientIteratorType { get; set; }
public override bool OptionsConcealable { get; set; }
}