Black Ops 2 ChangeHudGlow (C# code)

JibeMODz

C# Dev
Premium
Inscription
20 Février 2013
Messages
358
Réactions
81
Points
3 833
Yo :RG: !

Voici le code pour changer le " glow " du HUD(texte).

Pour utiliser le code, vous devez d'abord déclarer ce code :

Code:
public void SetGlow(int elemIndex, int client, string text, int font, int fontScale, int x, int y, uint align, int sort, int R, int V, int B, int a, int GlowR, int GlowG, int GlowB, int GlowA)
{
string setText = text + "\0";
byte[] TextIndex = SetText(setText);
uint elem = 0x15D8400 + ((Convert.ToUInt32(elemIndex)) * 0x88);
byte[] ClientID = ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(client)));
PS3.SetMemory(elem, new byte[0x88]);
PS3.SetMemory(elem + Hudelem.type, ReverseBytes(BitConverter.GetBytes(1)));


PS3.SetMemory(elem + 0x79, new byte[] { 0xFF });
PS3.SetMemory(elem + 0xC, new byte[] { 0x3f, 0xc0 });
PS3.SetMemory(elem + Hudelem.textOffset, TextIndex);
PS3.SetMemory(elem + Hudelem.fontSizeOffset,
ReverseBytes(BitConverter.GetBytes(Convert.ToSingle(font))));
PS3.SetMemory(elem + Hudelem.xOffset, ToHexFloat(x));
PS3.SetMemory(elem + Hudelem.yOffset, ToHexFloat(y));
PS3.SetMemory(elem + Hudelem.colorOffset, RGBA(R, V, B, a));
PS3.SetMemory(elem + Hudelem.GlowColor,
new byte[]
{
BitConverter.GetBytes(GlowR)[0], BitConverter.GetBytes (GlowG)[0],
BitConverter.GetBytes(GlowB)[0], BitConverter.GetBytes (GlowA)[0]
});
PS3.SetMemory(elem + Hudelem.clientOffset, ClientID);
System.Threading.Thread.Sleep(20);
}

Quand c'est fait, vous pouvez utiliser le " glow changer " :

Code:
public void ChangeHudGlow(int elemIndex, int GlowR, int GlowG, int GlowB, int GlowA)
{
uint elem = 0x15D8400 + ((Convert.ToUInt32(elemIndex)) * 0x88);
PS3.SetMemory(elem + Hudelem.GlowColor,
new byte[]
{
BitConverter.GetBytes(GlowR)[0], BitConverter.GetBytes (GlowG)[0],
BitConverter.GetBytes(GlowB)[0], BitConverter.GetBytes (GlowA)[0]
});
}

Comment l'utiliser ? C'est très simple :

Code:
ChangeHudGlow(600, 255, 0, 0, 255); //Change glow in red

Pastebin code :




Credit to JibeMODz.
 
Haut