public static bool Prefix(Scp096 __instance, GameObject target)
        {
            ReferenceHub hub = ReferenceHub.GetHub(target);

            if (__instance.CanReceiveTargets && hub != null && !__instance._targets.Contains(hub))
            {
                if (!__instance._targets.IsEmpty <ReferenceHub>())
                {
                    __instance.EnrageTimeLeft += __instance.EnrageTimePerReset;
                }
                __instance._targets.Add(hub);
                if (CreativeToolbox.ConfigRef.Config.EnableCustomScp096Shield)
                {
                    __instance.AdjustShield(CreativeToolbox.ConfigRef.Config.Scp096Ahp);
                }
                else
                {
                    __instance.AdjustShield(250);
                }
            }
            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);
        }
Example #3
0
        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.EnrageTimeLeft += SCP096Re.instance.Config.re096_target_enrage_add;
            }
            hub.hints.Show(new TextHint(SCP096Re.instance.Config.re096_target_hint, new HintParameter[]
            {
                new StringHintParameter("")
            }, HintEffectPresets.FadeInAndOut(0.25f, 1f, 0f), 5f));
            __instance._targets.Add(hub);
            __instance.AdjustShield(SCP096Re.instance.Config.re096_shield_per_target);
            return(false);
        }
Example #4
0
        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);
        }