Пример #1
0
        static bool Prefix(Scp096PlayerScript __instance, ref Scp096PlayerScript.RageState b)
        {
            Player096EnrageEvent ev = new Player096EnrageEvent();

            ev.Player       = new SmodPlayer(__instance.gameObject);
            ev.RageProgress = 1f;
            ev.Script       = __instance;
            ev.EnrageState  = (EnrageState)((int)b);
            EventManager.Manager.HandleEvent <IEventHandler096Enrage>(ev);
            __instance.rageProgress = ev.RageProgress;
            b = (Scp096PlayerScript.RageState)((int)ev.EnrageState);

            return(ev.AllowEnrage);
        }
Пример #2
0
 private void SetRage(Scp096PlayerScript.RageState b)
 {
     this.Networkenraged = b;
 }