Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Health When Reviving for 049
Browse files Browse the repository at this point in the history
  • Loading branch information
xNexusACS authored Apr 30, 2022
1 parent ac780b8 commit 53b29be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ExiledUtils_REMAKE/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
3 changes: 3 additions & 0 deletions ExiledUtils_REMAKE/EventHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 53b29be

Please sign in to comment.