private static bool Prefix(Scp096 __instance) { var ev = new EnragingEventArgs(__instance, API.Features.Player.Get(__instance.Hub.gameObject)); Handlers.Scp096.OnEnraging(ev); if (!ev.IsAllowed) { return(false); } if (__instance.Enraged) { __instance.AddReset(); } else { __instance.SetMovementSpeed(12f); __instance.SetJumpHeight(10f); __instance.PlayerState = Scp096PlayerState.Enraged; __instance.EnrageTimeLeft = __instance.EnrageTime; } return(false); }
private static bool Prefix(Scp096 __instance, GameObject target) { ReferenceHub hub = ReferenceHub.GetHub(target); if (!__instance.CanReceiveTargets || hub == null || __instance._targets.Contains(hub)) { return(false); } if (!__instance._targets.IsEmpty()) { __instance.AddReset(); } __instance._targets.Add(hub); __instance.AdjustShield(Instance.Config.EnableCustomScp096Shield ? Instance.Config.Scp096Ahp : 200); return(false); }
public static bool Prefix(Scp096 __instance, GameObject target) { ReferenceHub hub = ReferenceHub.GetHub(target); if (!__instance.CanReceiveTargets || hub == null || __instance._targets.Contains(hub)) { return(false); } if (!__instance._targets.IsEmpty <ReferenceHub>()) { __instance.AddReset(); } __instance._targets.Add(hub); if (CreativeToolbox.ConfigRef.Config.EnableCustomScp096Shield) { __instance.AdjustShield(CreativeToolbox.ConfigRef.Config.Scp096Ahp); } else { __instance.AdjustShield(200); } return(false); }