Code:
//These are the values to find the next player
const int BasicVal = 0x57F8;
const int HealthVal = 0x31C;
//These are the values for the Player 1.
const int B_PrimaryAmmo = 0x0224193C;
const int B_SecondaryAmmo = 0x02241934;
const int B_NadesAmmo = 0x02241938;
const int B_Score = 0x02246AD0;
const int B_Name = 0x02246A3C;
const int H_Health = 0x020C1468;
//These are the Functions that do our math operation.
int Basic(int BasicType, int Player)
{ return BasicType + (Player * BasicVal); }
int Health(int Player)
{ return H_Health + (Player * HealthVal); }
//Example Usage of the "class" provided.
void Usage()
{
Basic(B_PrimaryAmmo, 0);//Player 1 - Primary Ammo
}