public void OnScp096Panic(Scp096PanicEvent ev) { send(ev, new IdMapping() .appendId(Lib.PLAYER_ID, ev.Player) .appendId(Lib.PLAYER_EVENT_SCPDATA_ID, ev.Player.Scp079Data) .appendId(Lib.PLAYER_EVENT_TEAM_ROLE_ID, ev.Player.TeamRole) ); }
void IEventHandlerScp096Panic.OnScp096Panic(Scp096PanicEvent ev) { panic = true; /*try * { * if (Scp096PlayerScript.instance != null && Scp096PlayerScript.instance.iAm096) * { * GameObject[] plys = PlayerManager.singleton.players; * int watchingPlayers = 0; * List<GameObject> watching = new List<GameObject>(); * bool found = false; * GameObject[] array = plys; * int i = 0; * while (i < array.Length) * { * GameObject gameObject = array[i]; * if (!(gameObject != null) || !gameObject.GetComponent<CharacterClassManager>().IsHuman() || gameObject.GetComponent<FlashEffect>().sync_blind) * { * goto IL_221; * } * if (Scp096PlayerScript.instance.sm096Ignored.Count <= 0 || !Scp096PlayerScript.instance.sm096Ignored.Contains(gameObject.GetComponent<CharacterClassManager>().curClass)) * { * Transform transform = gameObject.GetComponent<Scp096PlayerScript>().camera.transform; * float num = Scp096PlayerScript.instance.lookingTolerance.Evaluate(Vector3.Distance(transform.position, Scp096PlayerScript.instance.camera.transform.position)); * RaycastHit raycastHit; * if (((double)num >= 0.75 && Vector3.Dot(transform.forward, (transform.position - Scp096PlayerScript.instance.camera.transform.position).normalized) >= -num) || !Physics.Raycast(transform.transform.position, (Scp096PlayerScript.instance.camera.transform.position - transform.position).normalized, out raycastHit, 9999, Scp096PlayerScript.instance.layerMask) || raycastHit.collider.gameObject.layer != 24 || !(raycastHit.collider.GetComponentInParent<Scp096PlayerScript>() == Scp096PlayerScript.instance)) * { * goto IL_221; * } * found = true; * int num2 = watchingPlayers; * watchingPlayers = num2 + 1; * watching.Add(gameObject); * goto IL_221; * } * IL_23C: * i++; * continue; * IL_221: * //yield return 0f; * goto IL_23C; * } * array = null; * if (watching.Count > 0) * { * panic = true; * foreach (var plr in watching) * { * if (toBeKilled.Contains(plr.GetComponent<CharacterClassManager>().NetworkSteamId)) continue; * toBeKilled.Add(plr.GetComponent<CharacterClassManager>().NetworkSteamId); * plugin.Info(plr.GetComponent<CharacterClassManager>().NetworkSteamId); * } * } * plys = null; * } * } * catch (NullReferenceException e) * { * plugin.Info(e.ToString()); * }*/ }
public void OnScp096Panic(Scp096PanicEvent ev) { // cuando scp 096 se enfada se cura 25 por el numero de bajas en el rage anterior ev.Player.AddHealth(30 * bajasllorona); bajasllorona = 0; }