Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RoundEnd event should have info on how the round ended #58

Closed
KarlOfDuty opened this issue Dec 4, 2022 · 1 comment · Fixed by #69
Closed

RoundEnd event should have info on how the round ended #58

KarlOfDuty opened this issue Dec 4, 2022 · 1 comment · Fixed by #69
Milestone

Comments

@KarlOfDuty
Copy link

I would like these things for scpdiscord, and an enum saying who won would also be nice.

image

@Killers0992 Killers0992 added this to the 12.0.0-beta10 milestone Dec 11, 2022
@Killers0992
Copy link
Contributor

Killers0992 commented Dec 13, 2022

Statistics.CurrentRound

public class Round
{
/// <summary>
/// Gets the duration of the current round.
/// </summary>
public static TimeSpan Duration => RoundStart.RoundLength;
/// <summary>
/// Gets the current round's starting timestamp.
/// </summary>
public DateTime StartTimestamp => DateTime.Now - Duration;
/// <summary>
/// Gets the total amount of players deaths.
/// </summary>
public int TotalKilledPlayers => Kills;
public int ClassDStart => RoundSummary.singleton.classlistStart.class_ds;
public int ClassDDead => Mathf.Clamp(ClassDStart - (ClassDAlive + ClassDEscaped), 0, int.MaxValue);
/// <summary>
/// Gets the total amount Class-Ds who have escaped.
/// </summary>
public int ClassDEscaped => EscapedClassD;
public int ClassDAlive { get; set; }
public int ScientistsStart => RoundSummary.singleton.classlistStart.scientists;
public int ScientistsDead => Mathf.Clamp(ScientistsStart - (ScientistsAlive + ScientistsEscaped), 0, int.MaxValue);
/// <summary>
/// Gets the total amount Scientists who have escaped.
/// </summary>
public int ScientistsEscaped => EscapedScientists;
public int ScientistsAlive { get; set; }
public int ChaosInsurgencyStart => RoundSummary.singleton.classlistStart.chaos_insurgents;
public int ChaosInsurgencyDead => Mathf.Clamp(ChaosInsurgencyStart - ChaosInsurgencyAlive, 0, int.MaxValue);
public int ChaosInsurgencyAlive { get; set; }
public int MtfAndGuardsStart => RoundSummary.singleton.classlistStart.mtf_and_guards;
public int MtfAndGuardsDead => Mathf.Clamp(MtfAndGuardsAlive - MtfAndGuardsStart, 0, int.MaxValue);
public int MtfAndGuardsAlive { get; set; }
public int ScpsStart => RoundSummary.singleton.classlistStart.scps_except_zombies;
public int ScpsDead => Mathf.Clamp(ScpsStart - ScpsAlive, 0, int.MaxValue);
/// <summary>
/// Gets the total amount of kills made by SCPs.
/// </summary>
public int TotalScpKills => KilledBySCPs;
/// <summary>
/// Gets the total amount of SCPs alive.
/// </summary>
public int ScpsAlive { get; set; }
public int ZombiesAlive { get; set; }
/// <summary>
/// Gets the total amount Scp049-2s created.
/// </summary>
public int ZombiesChanged => ChangedIntoZombies;
public int WarheadKills { get; set; }
}

@zabszk zabszk linked a pull request Dec 13, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants