mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-16 22:01:12 +03:00
* save station * save * save station * free howdoicode working 2026 * final push before presentation * comments addressed, but need to fix PredictedSpawn * save * kill me again, im beggin on my knees * ok wait i apparently forgot half of these reviews * actually made everything work now * this has been a learning experience * formatting, removed unused namespace * dehardcode man * fixed it fr * no more null, only default * dollar store port, holy * error error go away * i removed these from being null, i swear * formatting and minor fixes * fixes 2 * Update guardian_activators.yml * comm * oops * oops 2 * Update GuardianSystem.cs --------- Co-authored-by: Pok245 <113675512+Pok27@users.noreply.github.com>
53 lines
1.6 KiB
C#
53 lines
1.6 KiB
C#
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Guardian.Components;
|
|
|
|
/// <summary>
|
|
/// Given to guardians to monitor their link with the host.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class GuardianComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The guardian host entity.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public EntityUid? Host;
|
|
|
|
/// <summary>
|
|
/// Percentage of damage reflected from the guardian to the host.
|
|
/// </summary>
|
|
[DataField]
|
|
public float DamageShare { get; set; } = 0.65f;
|
|
|
|
/// <summary>
|
|
/// Maximum distance the guardian can travel before it's forced to recall, use YAML to set.
|
|
/// </summary>
|
|
[DataField]
|
|
public float DistanceAllowed { get; set; } = 5f;
|
|
|
|
/// <summary>
|
|
/// If the guardian is currently manifested.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public bool GuardianLoose;
|
|
|
|
/// <summary>
|
|
/// Popup shown to the host when their guardian takes damage.
|
|
/// </summary>
|
|
[DataField]
|
|
public LocId GuardianDamagePopup = "guardian-entity-taking-damage";
|
|
|
|
/// <summary>
|
|
/// Sound played when the guardian enters critical state.
|
|
/// </summary>
|
|
[DataField]
|
|
public SoundSpecifier CriticalSound = new SoundPathSpecifier("/Audio/Effects/guardian_warn.ogg");
|
|
|
|
/// <summary>
|
|
/// Sound played when the guardian dies.
|
|
/// </summary>
|
|
[DataField]
|
|
public SoundSpecifier DeathSound = new SoundPathSpecifier("/Audio/Voice/Human/malescream_guardian.ogg", AudioParams.Default.WithVariation(0.2f));
|
|
}
|