public void OnCheckEscape(CheckEscapeEvent ev) { if (!Sitrep.Events.Contains("checkescapeevent")) { return; } if (!Sitrep.CustomChannelIds.TryGetValue("checkescapeevent", out ulong channel)) { channel = Sitrep.EventsId; } Send($":arrow_upper_lift: [{ev.Player.Role.AsString()}] {ev.Player.Nick.DiscordSanitize()} ({ev.Player.ParsedUserId}) utekl.", channel); }
public void OnCheckEscape(CheckEscapeEvent ev) { if (ev.Player.IsCuffed) { if (BetterDisarming.AnnounceCuffedEscape.Contains(ev.Player.Role)) { BetterDisarming.Announce(ev.Player.Role); } } else { if (BetterDisarming.AnnounceEscape.Contains(ev.Player.Role)) { BetterDisarming.Announce(ev.Player.Role); } } }
internal void PlayerEscape(ref CheckEscapeEvent ev) { if (plugin.curMod.HasFlag(ModType.NONE) && plugin.enabledTypes.Contains(ModType.NONE)) { return; // cuz none means none } if (plugin.curMod.HasFlag(ModType.PLAYERSIZE) && plugin.enabledTypes.Contains(ModType.PLAYERSIZE)) { Timing.RunCoroutine(ChangeSizeLate(ev.Player, 1f)); } if (plugin.curMod.HasFlag(ModType.UPSIDEDOWN) && plugin.enabledTypes.Contains(ModType.UPSIDEDOWN)) { if (ev.Player.GetRole() == RoleType.Scp106) { Timing.RunCoroutine(ChangeSizeLate(ev.Player, -1f, -1f, -1f, 1f, client: false)); } else { Timing.RunCoroutine(ChangeSizeLate(ev.Player, 1f, -1f, 1f, 1f, client: false)); } } }