Skip to content

Commit 047e905

Browse files
committed
2.0.1
* Added configuration for giving Ghostly effect to the NPC
1 parent ffea3d5 commit 047e905

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

SCP575/API/Extensions/BlackoutExtensions.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Interactables.Interobjects.DoorUtils;
1+
using CustomPlayerEffects;
2+
using Interactables.Interobjects.DoorUtils;
23
using MapGeneration;
34
using MEC;
45
using PluginAPI.Core;
@@ -168,6 +169,10 @@ public static void SpawnScp575(Player victim, float duration)
168169

169170
scp575.IsGodModeEnabled = true;
170171

172+
if (EntryPoint.Instance.Config.Scp575.RoleType != PlayerRoles.RoleTypeId.Scp106 && EntryPoint.Instance.Config.Scp575.GiveGhostlyEffect)
173+
scp575.ReferenceHub.playerEffectsController.EnableEffect<Ghostly>();
174+
175+
171176
Timing.CallDelayed(0.3f, () =>
172177
{
173178
Log.Debug("Moving dummy to the victim's room", EntryPoint.Instance.Config.DebugMode, EntryPoint.Prefix);

SCP575/Config.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ public class Scp575Config
208208
[Description("Set the SCP-575 role, by default, it is SCP-106.")]
209209
public RoleTypeId RoleType { get; set; } = RoleTypeId.Scp106;
210210

211+
[Description("If the roletype is not Scp106 i will give him the Ghostly effect for go throw the doors")]
212+
public bool GiveGhostlyEffect { get; set; } = true;
213+
211214
/// <summary>
212215
/// The death message that will appear when players are killed by SCP-575.
213216
/// </summary>

SCP575/EntryPoint.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class EntryPoint
3636
/// <summary>
3737
/// Gets the plugin version.
3838
/// </summary>
39-
public const string Version = "2.0.0";
39+
public const string Version = "2.0.1";
4040

4141
/// <summary>
4242
/// Private HarmonyID for unpatching assembly patches.

0 commit comments

Comments
 (0)