private void PlayerEvents_Died(Exiled.Events.EventArgs.DiedEventArgs ev) { var player = ev.Target; if (player.Team == Team.SCP && player.Role != RoleType.Scp079) { deadScp.Add(player.Id); } }
private void Player_Died(Exiled.Events.EventArgs.DiedEventArgs ev) { if (!RecorderCore.isRecording) { return; } RecorderCore.OnReceiveEvent(new UpdateRoleData() { PlayerID = (sbyte)ev.Target.Id, RoleID = (sbyte)RoleType.Spectator }); }
/// <summary> /// Save a player killed by SCP 049. /// </summary> private void Player_Died(Exiled.Events.EventArgs.DiedEventArgs ev) { var killer = ev.Killer; if (killer.Role != RoleType.Scp049) { return; } var player = ev.Target; _infectedPlayers.Add((byte)player.Id, VictimOf049.SetNewVictim(player, killer, this)); }