Пример #1
0
        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);
        }
Пример #2
0
 public static bool Prefix(Scp096 __instance)
 {
     __instance.EndCharge();
     __instance.SetMovementSpeed(0f);
     __instance.SetJumpHeight(4f);
     __instance.ResetShield();
     __instance.PlayerState  = Scp096PlayerState.Calming;
     __instance._calmingTime = SCP096Re.instance.Config.re096_calm_time;
     __instance._targets.Clear();
     return(false);
 }
Пример #3
0
 public static bool Prefix(Scp096 __instance, bool force)
 {
     if (!force && (__instance.IsPreWindup || !__instance.CanEnrage))
     {
         return(false);
     }
     __instance.SetMovementSpeed(0f);
     __instance.SetJumpHeight(4f);
     __instance.PlayerState            = Scp096PlayerState.Enraging;
     __instance._enrageWindupRemaining = SCP096Re.instance.Config.re096_enrage_windup_time;
     return(false);
 }
Пример #4
0
 public static bool Prefix(Scp096 __instance)
 {
     if (!__instance.CanCharge)
     {
         return(false);
     }
     __instance.SetMovementSpeed(25f);
     __instance._chargeTimeRemaining            = SCP096Re.instance.Config.re096_charge_time;
     __instance._chargeCooldown                 = SCP096Re.instance.Config.re096_charge_cooldown;
     __instance.PlayerState                     = Scp096PlayerState.Charging;
     __instance.Hub.fpc.NetworkmovementOverride = new Vector2(1f, 0f);
     return(false);
 }