From c55bbea9583a77e2e4376c0141fe4f35fa123ed1 Mon Sep 17 00:00:00 2001 From: Ilya246 Date: Fri, 20 Sep 2024 13:55:26 +0400 Subject: [PATCH] react to revenants/AI eye --- Content.Shared/Ghost/SpectralComponent.cs | 9 +++++++++ Resources/Prototypes/Entities/Mobs/Player/observer.yml | 1 + .../Prototypes/Entities/Objects/Fun/spectral_locator.yml | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Content.Shared/Ghost/SpectralComponent.cs diff --git a/Content.Shared/Ghost/SpectralComponent.cs b/Content.Shared/Ghost/SpectralComponent.cs new file mode 100644 index 00000000000000..78729723618310 --- /dev/null +++ b/Content.Shared/Ghost/SpectralComponent.cs @@ -0,0 +1,9 @@ +using Robust.Shared.Prototypes; + +namespace Content.Shared.Ghost; + +/// +/// Marker component to identify "ghostly" entities. +/// +[RegisterComponent] +public sealed partial class SpectralComponent : Component {} diff --git a/Resources/Prototypes/Entities/Mobs/Player/observer.yml b/Resources/Prototypes/Entities/Mobs/Player/observer.yml index c02629c4d6fd81..291af09056726f 100644 --- a/Resources/Prototypes/Entities/Mobs/Player/observer.yml +++ b/Resources/Prototypes/Entities/Mobs/Player/observer.yml @@ -4,6 +4,7 @@ abstract: true description: Mobs without physical bodies components: + - type: Spectral - type: Sprite noRot: true overrideContainerOcclusion: true # Always show up regardless of where they're contained. diff --git a/Resources/Prototypes/Entities/Objects/Fun/spectral_locator.yml b/Resources/Prototypes/Entities/Objects/Fun/spectral_locator.yml index ff309958bbc361..cbc8d0e0f0e9a9 100644 --- a/Resources/Prototypes/Entities/Objects/Fun/spectral_locator.yml +++ b/Resources/Prototypes/Entities/Objects/Fun/spectral_locator.yml @@ -26,7 +26,7 @@ range: 8 criteria: components: - - Ghost + - Spectral # reacts to AI eye, intentional - type: Beeper isMuted: true minBeepInterval: 0.1