Beispiel #1
0
 internal void OnScp096PryGate(StartPryingGateEventArgs ev)
 {
     if (!config.Scp.canScp096pryGate)
     {
         ev.IsAllowed = false;
     }
 }
Beispiel #2
0
        private static bool Prefix(PlayableScps.Scp096 __instance, PryableDoor gate)
        {
            if (__instance.Charging && __instance.Enraged && (!gate.TargetState /* && gate.doorType == Door.DoorTypes.HeavyGate */))
            {
                var ev = new StartPryingGateEventArgs(API.Features.Player.Get(__instance.Hub.gameObject), gate);
                Exiled.Events.Handlers.Scp096.OnStartPryingGate(ev);
                return(ev.IsAllowed);
            }

            return(false);
        }
Beispiel #3
0
 /// <summary>
 /// Called before SCP-096 begins prying open a gate.
 /// </summary>
 /// <param name="ev">The <see cref="StartPryingGateEventArgs"/> instance.</param>
 public static void OnStartPryingGate(StartPryingGateEventArgs ev) => StartPryingGate.InvokeSafely(ev);