Exemplo n.º 1
0
        private void On_EntSTSOnExit(On.EntityStates.SpawnTeleporterState.orig_OnExit orig, EntityStates.SpawnTeleporterState self)
        {
            orig(self);
            if (!NetworkServer.active)
            {
                return;
            }
            var cpt = self.outer.commonComponents.characterBody.GetComponent <LifeSavingsComponent>();

            if (cpt)
            {
                cpt.holdIt = false;
            }
        }
 private void SpawnTeleporterState_OnExit(On.EntityStates.SpawnTeleporterState.orig_OnExit orig, EntityStates.SpawnTeleporterState self)
 {
     orig(self);
     RoR2.Console.instance.SubmitCmd(null, "time_scale 1");
 }