2024-01-04 14:25:32 +11:00
|
|
|
namespace Content.Server.Salvage.Magnet;
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
public sealed partial class SalvageMagnetComponent : Component
|
|
|
|
|
{
|
2024-08-22 15:29:56 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// The max distance at which the magnet will pull in wrecks.
|
|
|
|
|
/// Scales from 50% to 100%.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
2024-09-02 00:36:28 -04:00
|
|
|
public float MagnetSpawnDistance = 64f;
|
2024-01-04 14:25:32 +11:00
|
|
|
|
2024-08-22 15:29:56 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// How far offset to either side will the magnet wreck spawn.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
2024-09-02 00:36:28 -04:00
|
|
|
public float LateralOffset = 16f;
|
2024-01-04 14:25:32 +11:00
|
|
|
}
|