internal void OnTeleporting(TeleportingEventArgs ev) { if (IsLobby) { ev.IsAllowed = false; } }
public async void OnTeleporting(TeleportingEventArgs ev) { if (Instance.Config.EventsToLog.Scp106Teleporting && (!ev.Player.DoNotTrack || !Instance.Config.ShouldRespectDoNotTrack)) { await Network.SendAsync(new RemoteCommand("log", "gameEvents", string.Format(Language.Scp106Teleported, ev.Player.Nickname, Instance.Config.ShouldLogUserIds ? ev.Player.UserId : Language.Redacted, ev.Player.Role))).ConfigureAwait(false); } }
private void OnTeleporting(TeleportingEventArgs ev) { if (Check(ev.Player)) { ev.IsAllowed = false; } }
private void OnTeleporting(TeleportingEventArgs ev) { if (effectedPlayers.Contains(ev.Player)) { ev.IsAllowed = false; } }
public void OnTeleporting(TeleportingEventArgs ev) { if (LockdownController.IsScp106LockedUp) { ev.IsAllowed = false; } }
internal void OnScp106UsePortal(TeleportingEventArgs ev) { if (!config.Scp.canScp106usePortal) { ev.IsAllowed = false; } }
private static bool Prefix(Scp106PlayerScript __instance) { if (!__instance._interactRateLimit.CanExecute(false) || !__instance.GetComponent <FallDamage>().isGrounded) { return(false); } var ev = new TeleportingEventArgs(API.Features.Player.Get(__instance.gameObject), __instance.portalPosition); Scp106.OnTeleporting(ev); __instance.portalPosition = ev.PortalPosition; if (!ev.IsAllowed) { return(false); } if (__instance.iAm106 && __instance.portalPosition != Vector3.zero && !__instance.goingViaThePortal) { Timing.RunCoroutine(__instance._DoTeleportAnimation(), Segment.Update); } return(true); }
private void OnTeleporting(TeleportingEventArgs ev) { if (ev.Player == null || effectedPlayers == null) { return; } if (effectedPlayers.Contains(ev.Player)) { ev.IsAllowed = false; } }
internal void Teleporting(TeleportingEventArgs ev) { if (Plugin.Instance.Config.Teleporting == "") { return; } string message = Plugin.Instance.Config.Teleporting.Replace("%player%", ev.Player.ToString()); if (Plugin.Instance.Config.debug_to_console) { Log.Debug(message: "[ " + Plugin.Instance.Config.scp106_name + "] " + message); } Plugin.sendWebHook(Plugin.Instance.Config.scp106_url, message, Plugin.Instance.Config.scp106_name); }
private void netcom_Teleporting(object sender, TeleportingEventArgs e) { if (InvokeRequired) { BeginInvoke(new MethodInvoker(() => netcom_Teleporting(sender, e))); return; } try { RefreshControls(); } catch { ; } }
/// <summary> /// Called before SCP-106 teleports using a portal. /// </summary> /// <param name="ev">The <see cref="TeleportingEventArgs"/> instance.</param> public static void OnTeleporting(TeleportingEventArgs ev) => Teleporting.InvokeSafely(ev);
/// <inheritdoc cref="Exiled.Events.Handlers.Scp106.OnTeleporting(TeleportingEventArgs)"/> public void OnTeleporting(TeleportingEventArgs ev) { Log.Info($"{ev.Player.Nickname} is teleporting to {ev.PortalPosition} as SCP-106!"); }