From 63c537e7c00e8a18ddf2d0c5fb64d848b6c22f30 Mon Sep 17 00:00:00 2001 From: Ryan Cloherty Date: Fri, 3 Sep 2021 08:41:23 -0400 Subject: [PATCH] Add amped hardpoint offsets (#61) * Add amped hardpoint offsets * Add stubs for remaining goals --- titanfall2-rp/Titanfall2Api.MpGameStats.cs | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/titanfall2-rp/Titanfall2Api.MpGameStats.cs b/titanfall2-rp/Titanfall2Api.MpGameStats.cs index da546ab..5fd36ab 100644 --- a/titanfall2-rp/Titanfall2Api.MpGameStats.cs +++ b/titanfall2-rp/Titanfall2Api.MpGameStats.cs @@ -137,6 +137,53 @@ public AmpedHardpoint(Titanfall2Api tf2Api) { this._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); + } + + /// + /// Get the assault score of the current user. + /// + /// the user's assault score + public int GetMyAssaultScore() + { + throw new NotImplementedException(HelpMeBruh); + } + + /// + /// Get the defense score of the current user. + /// + /// the user's defense score + public int GetMyDefenseScore() + { + throw new NotImplementedException(HelpMeBruh); + } + + /// + /// Get the kill count of the current user. + /// + /// the user's kill count + public int GetMyKills() + { + throw new NotImplementedException(HelpMeBruh); + } } public class BountyHunt