Skip to content

Commit

Permalink
react to revenants/AI eye
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya246 committed Sep 20, 2024
1 parent cd2d67d commit c55bbea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Content.Shared/Ghost/SpectralComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Robust.Shared.Prototypes;

namespace Content.Shared.Ghost;

/// <summary>
/// Marker component to identify "ghostly" entities.
/// </summary>
[RegisterComponent]
public sealed partial class SpectralComponent : Component {}
1 change: 1 addition & 0 deletions Resources/Prototypes/Entities/Mobs/Player/observer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
range: 8
criteria:
components:
- Ghost
- Spectral # reacts to AI eye, intentional
- type: Beeper
isMuted: true
minBeepInterval: 0.1
Expand Down

0 comments on commit c55bbea

Please sign in to comment.