mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Add a holy light effect to bible healing (#43189)
* save * remove unneeded event * Revert "remove unneeded event" This reverts commit 779ec783094144ca978a5e9d111235e29539e8a3. Revert "save" This reverts commit f88e0ab18b253915f5efde5886a4701a73ffa35a. * Use simple light effect entities with TimedDespawn
This commit is contained in:
parent
e49d36a88e
commit
fe8f5f2d41
3 changed files with 34 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ using Content.Shared.Popups;
|
|||
using Content.Shared.Timing;
|
||||
using Content.Shared.Verbs;
|
||||
using Robust.Shared.Audio.Systems;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Random;
|
||||
|
||||
|
|
@ -145,6 +146,9 @@ namespace Content.Server.Bible
|
|||
|
||||
_audio.PlayPvs(component.HealSoundPath, args.User);
|
||||
_delay.TryResetDelay((uid, useDelay));
|
||||
|
||||
if (component.HealingLightEffect.HasValue)
|
||||
Spawn(component.HealingLightEffect.Value, new EntityCoordinates(args.Target.Value, default));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -53,5 +53,11 @@ namespace Content.Server.Bible.Components
|
|||
|
||||
[DataField("locPrefix")]
|
||||
public string LocPrefix = "bible";
|
||||
|
||||
/// <summary>
|
||||
/// A short light effect to display when successfully healing someone
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public EntProtoId? HealingLightEffect = "HolyLightEffect";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@
|
|||
failChance: 0
|
||||
locPrefix: "necro"
|
||||
healSound: "/Audio/Effects/lightburn.ogg"
|
||||
healingLightEffect: EvilLightEffect
|
||||
- type: Summonable
|
||||
specialItem: SpawnPointGhostCerberus
|
||||
respawnTime: 300
|
||||
|
|
@ -168,3 +169,26 @@
|
|||
sprite: Objects/Specific/Chapel/ratvartablet.rsi
|
||||
- type: Item
|
||||
sprite: Objects/Specific/Chapel/ratvartablet.rsi
|
||||
|
||||
- type: entity
|
||||
id: HolyLightEffect
|
||||
categories: [ HideSpawnMenu ]
|
||||
components:
|
||||
- type: PointLight
|
||||
enabled: true
|
||||
radius: 1.5
|
||||
energy: 20
|
||||
color: lightgoldenrodyellow
|
||||
netsync: false
|
||||
- type: LightFade
|
||||
duration: 0.7
|
||||
- type: TimedDespawn
|
||||
lifetime: 0.7
|
||||
|
||||
- type: entity
|
||||
id: EvilLightEffect
|
||||
categories: [ HideSpawnMenu ]
|
||||
parent: HolyLightEffect
|
||||
components:
|
||||
- type: PointLight
|
||||
color: red
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue