Skip to content

Commit

Permalink
Add amped hardpoint offsets (#61)
Browse files Browse the repository at this point in the history
* Add amped hardpoint offsets

* Add stubs for remaining goals
  • Loading branch information
IncPlusPlus authored Sep 3, 2021
1 parent b11e8a5 commit 63c537e
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions titanfall2-rp/Titanfall2Api.MpGameStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,53 @@ public AmpedHardpoint(Titanfall2Api tf2Api)
{
this._tf2Api = tf2Api;
}

/// <summary>
/// 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.
/// </summary>
/// <returns>the score of team 1</returns>
public int GetTeam1Score()
{
return _tf2Api._sharp!.Memory.Read<int>(_tf2Api._engineDllBaseAddress + 0x1121814C);
}

/// <summary>
/// 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.
/// </summary>
/// <returns>the score of team 2</returns>
public int GetTeam2Score()
{
return _tf2Api._sharp!.Memory.Read<int>(_tf2Api._engineDllBaseAddress + 0x11218CA0);
}

/// <summary>
/// Get the assault score of the current user.
/// </summary>
/// <returns>the user's assault score</returns>
public int GetMyAssaultScore()
{
throw new NotImplementedException(HelpMeBruh);
}

/// <summary>
/// Get the defense score of the current user.
/// </summary>
/// <returns>the user's defense score</returns>
public int GetMyDefenseScore()
{
throw new NotImplementedException(HelpMeBruh);
}

/// <summary>
/// Get the kill count of the current user.
/// </summary>
/// <returns>the user's kill count</returns>
public int GetMyKills()
{
throw new NotImplementedException(HelpMeBruh);
}
}

public class BountyHunt
Expand Down

0 comments on commit 63c537e

Please sign in to comment.