From 53b29be8c0d9a47a9f75f359638d809e8edb139f Mon Sep 17 00:00:00 2001 From: xNexus <83370388+xNexus-ACS@users.noreply.github.com> Date: Sat, 30 Apr 2022 17:48:17 -0400 Subject: [PATCH] Health When Reviving for 049 --- ExiledUtils_REMAKE/Config.cs | 3 +++ ExiledUtils_REMAKE/EventHandlers.cs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ExiledUtils_REMAKE/Config.cs b/ExiledUtils_REMAKE/Config.cs index a588ab6..44a9da9 100644 --- a/ExiledUtils_REMAKE/Config.cs +++ b/ExiledUtils_REMAKE/Config.cs @@ -34,5 +34,8 @@ public class Config : IConfig public string LastPlayerHint { get; set; } = string.Empty; [Description("Scp049 Features")] public bool Enable049BuffWhenReviving { get; set; } = true; + public bool EnableBringZombiesCommand { get; set; } = false; + public bool EnableHealthWhenReviving { get; set; } = true; + public float HealthWhenReviving { get; set; } = 50f; } } diff --git a/ExiledUtils_REMAKE/EventHandlers.cs b/ExiledUtils_REMAKE/EventHandlers.cs index 3b72fcf..f760efd 100644 --- a/ExiledUtils_REMAKE/EventHandlers.cs +++ b/ExiledUtils_REMAKE/EventHandlers.cs @@ -86,6 +86,9 @@ public void OnReviving(FinishingRecallEventArgs ev) { ev.Scp049.ArtificialHealth += 20; ev.Scp049.EnableEffect(EffectType.MovementBoost, 10); + + if (plugin.Config.EnableHealthWhenReviving) + ev.Scp049.Heal(plugin.Config.HealthWhenReviving); } } }