diff --git a/titanfall2-rp/Titanfall2Api.MpGameStats.cs b/titanfall2-rp/Titanfall2Api.MpGameStats.cs index d8f3231..450d4a2 100644 --- a/titanfall2-rp/Titanfall2Api.MpGameStats.cs +++ b/titanfall2-rp/Titanfall2Api.MpGameStats.cs @@ -254,6 +254,26 @@ public CaptureTheFlag(Titanfall2Api tf2Api) { _tf2Api = tf2Api; } + + /// + /// Get the score of team 1. Whether this is your team or the enemy's doesn't always stay the same. + /// I'm not sure why. This is something that I need some help figuring out. + /// + /// the score of team 1 + public int GetTeam1Score() + { + return _tf2Api._sharp!.Memory.Read(_tf2Api._engineDllBaseAddress + 0x1121814C); + } + + /// + /// Get the score of team 2. Whether this is your team or the enemy's doesn't always stay the same. + /// I'm not sure why. This is something that I need some help figuring out. + /// + /// the score of team 2 + public int GetTeam2Score() + { + return _tf2Api._sharp!.Memory.Read(_tf2Api._engineDllBaseAddress + 0x11218CA0); + } } public class LastTitanStanding