(adsbygoogle = window.adsbygoogle || []).push({});
Heys guys, i just updated this function from mw3 (credits to BLB and Sonoro)
public static void MoveShader(uint index, int X_, int Y_)
{
byte[] X = new byte[4];
byte[] Y = new byte[4];
X = BitConverter.GetBytes(Convert.ToSingle(X_));
Y = BitConverter.GetBytes(Convert.ToSingle(Y_));
byte[] Width = new byte[4];
byte[] Height = new byte[4];
Array.Reverse(X);
Array.Reverse(Y);
PS3.SetMemory(0x15df280 + (index * 0x88 ) + 0, X);
PS3.SetMemory(0x15df280 + (index * 0x88 ) + 4, Y);
}
With this you can animate your HudElems
For Example: If you have these 2 elems HUDS.StoreTextElem(120, 0, "Made By DexModderFTW", 1, 1, -400, 150, 0, 0, 0, 200, 0, 255);
HUDS.StoreIcon(121, 0, 1, 100, 100, 775, 100, 0, 0, 255, 255, 255, 255);
Then in another button you would put this: for (int i = -400; i < 200; i++)
{
HUDS.MoveShader(120, i, 150);
HUDS.MoveShader(121, 480 - i, 70);
}
System.Threading.Thread.Sleep(3000);
for (int i = 0; i < 775; i++)
{
HUDS.MoveShader(120, 180 + i, 150);
HUDS.MoveShader(121, 220 - i, 70);
}
this will make a variable i that stands for -400 to 200 and 0 to 775
Enjoy
Credits:
BLB - HudElems Code for mw3
xSonoro - HudElems Code for mw3