Post: Black Ops 2 ChangeHudGlow (C# code)
02-05-2014, 05:19 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hi NGU.

Here is the code to change the glow of your HUD(txt).


To use this code, you must first enter this 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)) * 0x8Cool Man (aka Tustin);
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);
}



When done, you can use the glow changer :

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


How to use ? It's simply :

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


Pastebin code :

You must login or register to view this content.


Credit to JibeMODz.
(adsbygoogle = window.adsbygoogle || []).push({});
02-07-2014, 02:53 PM #2
ItsLollo1000
Little One
Originally posted by JibeMODz View Post
Hi NGU.

Here is the code to change the glow of your HUD(txt).


To use this code, you must first enter this 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)) * 0x8Cool Man (aka Tustin);
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);
}



When done, you can use the glow changer :

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


How to use ? It's simply :

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


Pastebin code :

You must login or register to view this content.


Credit to JibeMODz.


u dont even have good hud elements your font is used fo fontsize and u dont have font and this functions is just copy and paste from the Text function :rofl:
02-07-2014, 06:35 PM #3
Oh, really ?

Then verification that what you just said, if you do not know the run, it's your problem Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo