Post: BO2 HudElems MoveShader Function
07-20-2013, 03:07 AM #1
Kurt
Banned
(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 Happy

Credits:
BLB - HudElems Code for mw3
xSonoro - HudElems Code for mw3
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to Kurt for this useful post:

Ansity., Mango_Knife, xPreeks

The following 2 users groaned at Kurt for this awful post:

smashedya
07-20-2013, 05:45 AM #2
Asian
Banned
hha giiiiiiiiiiiiiiiii nice work !
07-20-2013, 07:45 AM #3
Mango_Knife
In my man cave
Originally posted by DexModderFTW View Post
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 Happy

Credits:
BLB - HudElems Code for mw3
xSonoro - HudElems Code for mw3


Nice Post man

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo