Skip to content

Commit

Permalink
Add Gun Game Implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
IncPlusPlus committed Jan 8, 2022
1 parent 96caaef commit bafb4ca
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion titanfall2-rp/MpGameStats/GunGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@ public GunGame(Titanfall2Api tf2Api, ProcessSharp processSharp) : base(tf2Api, p
{
}

// TODO: Figure out how to show Gun Game scores
/// <summary>
/// The score of "my team" is actually just the current user's score
/// </summary>
/// <returns>the current user's score</returns>
protected override int GetMyTeamScore()
{
return GetScore();
}

/// <summary>
/// The score of the "enemy team" is actually the score of the player with the highest score that isn't myself
/// </summary>
/// <returns>the score of the player with the highest score that isn't myself</returns>
protected override int GetEnemyTeamScore()
{
return GetHighestScoreInGame(GetMyIdOnServer());
}
}
}

0 comments on commit bafb4ca

Please sign in to comment.